Searched refs:iphlen (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/selftests/net/ |
H A D | psock_snd.sh | 9 readonly iphlen=20 15 readonly mss="$((${mtu} - ${iphlen} - ${udphlen}))" 19 readonly max_mss="$((${max_mtu} - ${iphlen} - ${udphlen}))"
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_cls_redirect.c | 622 uint64_t iphlen, uint16_t sport, uint16_t dport) in fill_tuple() argument 624 switch (iphlen) { in fill_tuple() 667 uint64_t iphlen = sizeof(struct iphdr); in classify_tcp() local 669 iphlen = sizeof(struct ipv6hdr); in classify_tcp() 672 if (bpf_tcp_check_syncookie(sk, iph, iphlen, tcp, in classify_tcp() 817 static INLINING verdict_t process_tcp(buf_t *pkt, void *iph, uint64_t iphlen, in process_tcp() argument 835 fill_tuple(&tuple, iph, iphlen, tcp->source, tcp->dest); in process_tcp() 839 static INLINING verdict_t process_udp(buf_t *pkt, void *iph, uint64_t iphlen, in process_udp() argument 853 fill_tuple(&tuple, iph, iphlen, udph->source, udph->dest); in process_udp()
|
H A D | test_cls_redirect_dynptr.c | 512 uint64_t iphlen, uint16_t sport, uint16_t dport) in fill_tuple() argument 514 switch (iphlen) { in fill_tuple() 556 uint64_t iphlen = sizeof(struct iphdr); in classify_tcp() local 559 iphlen = sizeof(struct ipv6hdr); in classify_tcp() 561 if (bpf_tcp_check_syncookie(sk, iph, iphlen, tcp, in classify_tcp()
|
/linux/drivers/net/ethernet/ibm/ |
H A D | ibmveth.c | 1245 u16 iphlen = 0; in ibmveth_rx_csum_helper() local 1263 iphlen = iph->ihl * 4; in ibmveth_rx_csum_helper() 1267 iphlen = sizeof(struct ipv6hdr); in ibmveth_rx_csum_helper() 1287 struct tcphdr *tcph = (struct tcphdr *)(skb->data + iphlen); in ibmveth_rx_csum_helper() 1291 tcphdrlen = skb->len - iphlen; in ibmveth_rx_csum_helper() 1301 skb_partial_csum_set(skb, iphlen, in ibmveth_rx_csum_helper()
|