Searched refs:pckt (Results 1 – 4 of 4) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_l4lb_noinline.c | 203 static __u32 get_packet_hash(struct packet_description *pckt, in get_packet_hash() argument 207 return jhash_2words(jhash(pckt->srcv6, 16, MAX_VIPS), in get_packet_hash() 208 pckt->ports, CH_RINGS_SIZE); in get_packet_hash() 210 return jhash_2words(pckt->src, pckt->ports, CH_RINGS_SIZE); in get_packet_hash() 214 struct packet_description *pckt, in get_packet_dst() argument 218 __u32 hash = get_packet_hash(pckt, is_ipv6); in get_packet_dst() 237 struct packet_description *pckt) in parse_icmpv6() argument 251 pckt->proto = ip6h->nexthdr; in parse_icmpv6() 252 pckt->flags |= F_ICMP; in parse_icmpv6() 253 memcpy(pckt->srcv6, ip6h->daddr.s6_addr32, 16); in parse_icmpv6() [all …]
|
D | test_l4lb.c | 207 static __always_inline __u32 get_packet_hash(struct packet_description *pckt, in get_packet_hash() argument 211 return jhash_2words(jhash(pckt->srcv6, 16, MAX_VIPS), in get_packet_hash() 212 pckt->ports, CH_RINGS_SIZE); in get_packet_hash() 214 return jhash_2words(pckt->src, pckt->ports, CH_RINGS_SIZE); in get_packet_hash() 218 struct packet_description *pckt, in get_packet_dst() argument 222 __u32 hash = get_packet_hash(pckt, is_ipv6) % RING_SIZE; in get_packet_dst() 237 struct packet_description *pckt) in parse_icmpv6() argument 251 pckt->proto = ip6h->nexthdr; in parse_icmpv6() 252 pckt->flags |= F_ICMP; in parse_icmpv6() 253 memcpy(pckt->srcv6, ip6h->daddr.s6_addr32, 16); in parse_icmpv6() [all …]
|
D | test_xdp_noinline.c | 244 bool is_ipv6, struct packet_description *pckt) in parse_udp() argument 247 bool is_icmp = !((pckt->flags & (1 << 0)) == 0); in parse_udp() 255 pckt->flow.port16[0] = udp->source; in parse_udp() 256 pckt->flow.port16[1] = udp->dest; in parse_udp() 258 pckt->flow.port16[0] = udp->dest; in parse_udp() 259 pckt->flow.port16[1] = udp->source; in parse_udp() 266 bool is_ipv6, struct packet_description *pckt) in parse_tcp() argument 269 bool is_icmp = !((pckt->flags & (1 << 0)) == 0); in parse_tcp() 277 pckt->flags |= (1 << 1); in parse_tcp() 279 pckt->flow.port16[0] = tcp->source; in parse_tcp() [all …]
|
/external/ppp/pppd/ |
D | cbcp.c | 97 static void cbcp_recvreq __P((cbcp_state *us, u_char *pckt, int len)); 100 static void cbcp_recvack __P((cbcp_state *us, u_char *pckt, int len)); 305 cbcp_recvreq(us, pckt, pcktlen) in cbcp_recvreq() argument 307 u_char *pckt; 319 GETCHAR(type, pckt); 320 GETCHAR(opt_len, pckt); 325 GETCHAR(delay, pckt); 337 GETCHAR(addr_type, pckt); 338 memcpy(address, pckt, opt_len - 4); 446 cbcp_recvack(us, pckt, len) in cbcp_recvack() argument [all …]
|