Searched refs:off_dport (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/tools/testing/selftests/net/ |
D | toeplitz.c | 287 static void __set_filter(int fd, int off_proto, uint8_t proto, int off_dport) in __set_filter() argument 294 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, off_dport), in __set_filter() 310 const int off_dport = offsetof(struct tcphdr, dest); /* same for udp */ in set_filter() local 316 sizeof(struct iphdr) + off_dport); in set_filter() 319 sizeof(struct ip6_hdr) + off_dport); in set_filter()
|
/linux-6.12.1/tools/testing/selftests/net/lib/ |
D | csum.c | 495 static void __recv_prepare_packet_filter(int fd, int off_nexthdr, int off_dport) in __recv_prepare_packet_filter() argument 502 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, off_dport), in __recv_prepare_packet_filter() 517 const int off_dport = offsetof(struct tcphdr, dest); /* same for udp */ in recv_prepare_packet_filter() local 521 sizeof(struct iphdr) + off_dport); in recv_prepare_packet_filter() 524 sizeof(struct ipv6hdr) + off_dport); in recv_prepare_packet_filter()
|