Searched refs:iphlen (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/tools/testing/selftests/net/ |
D | psock_snd.sh | 9 readonly iphlen=20 15 readonly mss="$((${mtu} - ${iphlen} - ${udphlen}))" 19 readonly max_mss="$((${max_mtu} - ${iphlen} - ${udphlen}))"
|
/linux-6.6.21/net/ipv4/ |
D | xfrm4_input.c | 87 int iphlen, len; in xfrm4_udp_encap_rcv() local 146 iphlen = iph->ihl << 2; in xfrm4_udp_encap_rcv() 148 if (skb->len < iphlen + len) { in xfrm4_udp_encap_rcv()
|
D | raw.c | 328 unsigned int iphlen; in raw_send_hdrinc() local 375 iphlen = iph->ihl * 4; in raw_send_hdrinc() 385 if (iphlen > length) in raw_send_hdrinc() 388 if (iphlen >= sizeof(*iph)) { in raw_send_hdrinc() 397 skb->transport_header += iphlen; in raw_send_hdrinc() 399 length >= iphlen + sizeof(struct icmphdr)) in raw_send_hdrinc()
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | test_cls_redirect.c | 619 uint64_t iphlen, uint16_t sport, uint16_t dport) in fill_tuple() argument 621 switch (iphlen) { in fill_tuple() 664 uint64_t iphlen = sizeof(struct iphdr); in classify_tcp() local 666 iphlen = sizeof(struct ipv6hdr); in classify_tcp() 669 if (bpf_tcp_check_syncookie(sk, iph, iphlen, tcp, in classify_tcp() 814 static INLINING verdict_t process_tcp(buf_t *pkt, void *iph, uint64_t iphlen, in process_tcp() argument 832 fill_tuple(&tuple, iph, iphlen, tcp->source, tcp->dest); in process_tcp() 836 static INLINING verdict_t process_udp(buf_t *pkt, void *iph, uint64_t iphlen, in process_udp() argument 850 fill_tuple(&tuple, iph, iphlen, udph->source, udph->dest); in process_udp()
|
D | test_cls_redirect_dynptr.c | 510 uint64_t iphlen, uint16_t sport, uint16_t dport) in fill_tuple() argument 512 switch (iphlen) { in fill_tuple() 554 uint64_t iphlen = sizeof(struct iphdr); in classify_tcp() local 557 iphlen = sizeof(struct ipv6hdr); in classify_tcp() 559 if (bpf_tcp_check_syncookie(sk, iph, iphlen, tcp, in classify_tcp()
|
/linux-6.6.21/drivers/infiniband/hw/irdma/ |
D | utils.c | 1520 u16 iphlen; in irdma_gen1_ieq_update_tcpip_info() local 1524 iphlen = (buf->ipv4) ? 20 : 40; in irdma_gen1_ieq_update_tcpip_info() 1526 tcph = (struct tcphdr *)(addr + buf->maclen + iphlen); in irdma_gen1_ieq_update_tcpip_info() 1527 pktsize = len + buf->tcphlen + iphlen; in irdma_gen1_ieq_update_tcpip_info() 1564 u16 iphlen; in irdma_gen1_puda_get_tcpip_info() local 1576 iphlen = (info->l3proto) ? 40 : 20; in irdma_gen1_puda_get_tcpip_info() 1580 buf->tcph = buf->iph + iphlen; in irdma_gen1_puda_get_tcpip_info() 1587 pkt_len = ntohs(ip6h->payload_len) + iphlen; in irdma_gen1_puda_get_tcpip_info() 1600 buf->datalen = pkt_len - iphlen - buf->tcphlen; in irdma_gen1_puda_get_tcpip_info() 1602 buf->hdrlen = buf->maclen + iphlen + buf->tcphlen; in irdma_gen1_puda_get_tcpip_info()
|
/linux-6.6.21/drivers/net/ethernet/ibm/ |
D | ibmveth.c | 1268 u16 iphlen = 0; in ibmveth_rx_csum_helper() local 1286 iphlen = iph->ihl * 4; in ibmveth_rx_csum_helper() 1290 iphlen = sizeof(struct ipv6hdr); in ibmveth_rx_csum_helper() 1310 struct tcphdr *tcph = (struct tcphdr *)(skb->data + iphlen); in ibmveth_rx_csum_helper() 1314 tcphdrlen = skb->len - iphlen; in ibmveth_rx_csum_helper() 1324 skb_partial_csum_set(skb, iphlen, in ibmveth_rx_csum_helper()
|