Searched refs:iphlen (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/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}))"
|
/kernel/linux/linux-5.10/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 | 353 unsigned int iphlen; in raw_send_hdrinc() local 400 iphlen = iph->ihl * 4; in raw_send_hdrinc() 410 if (iphlen > length) in raw_send_hdrinc() 413 if (iphlen >= sizeof(*iph)) { in raw_send_hdrinc() 422 skb->transport_header += iphlen; in raw_send_hdrinc() 424 length >= iphlen + sizeof(struct icmphdr)) in raw_send_hdrinc()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | test_cls_redirect.c | 612 uint64_t iphlen, uint16_t sport, uint16_t dport) in fill_tuple() argument 614 switch (iphlen) { in fill_tuple() 657 uint64_t iphlen = sizeof(struct iphdr); in classify_tcp() local 659 iphlen = sizeof(struct ipv6hdr); in classify_tcp() 662 if (bpf_tcp_check_syncookie(sk, iph, iphlen, tcp, in classify_tcp() 807 static INLINING verdict_t process_tcp(buf_t *pkt, void *iph, uint64_t iphlen, in process_tcp() argument 825 fill_tuple(&tuple, iph, iphlen, tcp->source, tcp->dest); in process_tcp() 829 static INLINING verdict_t process_udp(buf_t *pkt, void *iph, uint64_t iphlen, in process_udp() argument 843 fill_tuple(&tuple, iph, iphlen, udph->source, udph->dest); in process_udp()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/ |
D | i40iw_utils.c | 1397 u16 iphlen; in i40iw_ieq_update_tcpip_info() local 1401 iphlen = (buf->ipv4) ? 20 : 40; in i40iw_ieq_update_tcpip_info() 1403 tcph = (struct tcphdr *)(addr + buf->maclen + iphlen); in i40iw_ieq_update_tcpip_info() 1404 packetsize = length + buf->tcphlen + iphlen; in i40iw_ieq_update_tcpip_info() 1421 u16 iphlen; in i40iw_puda_get_tcpip_info() local 1431 iphlen = (info->l3proto) ? 40 : 20; in i40iw_puda_get_tcpip_info() 1436 buf->tcph = buf->iph + iphlen; in i40iw_puda_get_tcpip_info() 1443 pkt_len = ntohs(ip6h->payload_len) + iphlen; in i40iw_puda_get_tcpip_info() 1455 buf->datalen = pkt_len - iphlen - buf->tcphlen; in i40iw_puda_get_tcpip_info() 1457 buf->hdrlen = buf->maclen + iphlen + buf->tcphlen; in i40iw_puda_get_tcpip_info()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/ |
D | ibmveth.c | 1262 u16 iphlen = 0; in ibmveth_rx_csum_helper() local 1280 iphlen = iph->ihl * 4; in ibmveth_rx_csum_helper() 1284 iphlen = sizeof(struct ipv6hdr); in ibmveth_rx_csum_helper() 1302 struct tcphdr *tcph = (struct tcphdr *)(skb->data + iphlen); in ibmveth_rx_csum_helper() 1304 tcphdrlen = skb->len - iphlen; in ibmveth_rx_csum_helper() 1315 skb_partial_csum_set(skb, iphlen, in ibmveth_rx_csum_helper()
|