Home
last modified time | relevance | path

Searched refs:iphlen (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/tools/testing/selftests/net/
Dpsock_snd.sh9 readonly iphlen=20
15 readonly mss="$((${mtu} - ${iphlen} - ${udphlen}))"
19 readonly max_mss="$((${max_mtu} - ${iphlen} - ${udphlen}))"
/linux-6.1.9/net/ipv4/
Dxfrm4_input.c87 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()
Draw.c325 unsigned int iphlen; in raw_send_hdrinc() local
372 iphlen = iph->ihl * 4; in raw_send_hdrinc()
382 if (iphlen > length) in raw_send_hdrinc()
385 if (iphlen >= sizeof(*iph)) { in raw_send_hdrinc()
394 skb->transport_header += iphlen; in raw_send_hdrinc()
396 length >= iphlen + sizeof(struct icmphdr)) in raw_send_hdrinc()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.c619 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()
/linux-6.1.9/drivers/infiniband/hw/irdma/
Dutils.c1495 u16 iphlen; in irdma_gen1_ieq_update_tcpip_info() local
1499 iphlen = (buf->ipv4) ? 20 : 40; in irdma_gen1_ieq_update_tcpip_info()
1501 tcph = (struct tcphdr *)(addr + buf->maclen + iphlen); in irdma_gen1_ieq_update_tcpip_info()
1502 pktsize = len + buf->tcphlen + iphlen; in irdma_gen1_ieq_update_tcpip_info()
1539 u16 iphlen; in irdma_gen1_puda_get_tcpip_info() local
1551 iphlen = (info->l3proto) ? 40 : 20; in irdma_gen1_puda_get_tcpip_info()
1555 buf->tcph = buf->iph + iphlen; in irdma_gen1_puda_get_tcpip_info()
1562 pkt_len = ntohs(ip6h->payload_len) + iphlen; in irdma_gen1_puda_get_tcpip_info()
1575 buf->datalen = pkt_len - iphlen - buf->tcphlen; in irdma_gen1_puda_get_tcpip_info()
1577 buf->hdrlen = buf->maclen + iphlen + buf->tcphlen; in irdma_gen1_puda_get_tcpip_info()
/linux-6.1.9/drivers/net/ethernet/ibm/
Dibmveth.c1273 u16 iphlen = 0; in ibmveth_rx_csum_helper() local
1291 iphlen = iph->ihl * 4; in ibmveth_rx_csum_helper()
1295 iphlen = sizeof(struct ipv6hdr); in ibmveth_rx_csum_helper()
1315 struct tcphdr *tcph = (struct tcphdr *)(skb->data + iphlen); in ibmveth_rx_csum_helper()
1319 tcphdrlen = skb->len - iphlen; in ibmveth_rx_csum_helper()
1330 skb_partial_csum_set(skb, iphlen, in ibmveth_rx_csum_helper()