/linux-4.4.14/net/sched/ |
D | act_csum.c | 101 unsigned int ihl, unsigned int ipl, in tcf_csum_skb_nextlayer() argument 105 int hl = ihl + jhl; in tcf_csum_skb_nextlayer() 113 return (void *)(skb_network_header(skb) + ihl); in tcf_csum_skb_nextlayer() 117 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv4_icmp() argument 121 icmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmph)); in tcf_csum_ipv4_icmp() 126 skb->csum = csum_partial(icmph, ipl - ihl, 0); in tcf_csum_ipv4_icmp() 135 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv4_igmp() argument 139 igmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*igmph)); in tcf_csum_ipv4_igmp() 144 skb->csum = csum_partial(igmph, ipl - ihl, 0); in tcf_csum_ipv4_igmp() 153 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv6_icmp() argument [all …]
|
D | act_nat.c | 98 int ihl; in tcf_nat() local 150 ihl = iph->ihl * 4; in tcf_nat() 158 if (!pskb_may_pull(skb, ihl + sizeof(*tcph) + noff) || in tcf_nat() 160 !skb_clone_writable(skb, ihl + sizeof(*tcph) + noff) && in tcf_nat() 164 tcph = (void *)(skb_network_header(skb) + ihl); in tcf_nat() 173 if (!pskb_may_pull(skb, ihl + sizeof(*udph) + noff) || in tcf_nat() 175 !skb_clone_writable(skb, ihl + sizeof(*udph) + noff) && in tcf_nat() 179 udph = (void *)(skb_network_header(skb) + ihl); in tcf_nat() 192 if (!pskb_may_pull(skb, ihl + sizeof(*icmph) + noff)) in tcf_nat() 195 icmph = (void *)(skb_network_header(skb) + ihl); in tcf_nat() [all …]
|
D | cls_rsvp.h | 167 xprt = ((u8 *)nhptr) + (nhptr->ihl<<2); in rsvp_classify()
|
/linux-4.4.14/net/ipv4/ |
D | xfrm4_mode_transport.c | 24 int ihl = iph->ihl * 4; in xfrm4_transport_output() local 29 skb->transport_header = skb->network_header + ihl; in xfrm4_transport_output() 30 __skb_pull(skb, ihl); in xfrm4_transport_output() 31 memmove(skb_network_header(skb), iph, ihl); in xfrm4_transport_output() 45 int ihl = skb->data - skb_transport_header(skb); in xfrm4_transport_input() local 49 skb_network_header(skb), ihl); in xfrm4_transport_input() 52 ip_hdr(skb)->tot_len = htons(skb->len + ihl); in xfrm4_transport_input()
|
D | ah4.c | 81 int l = iph->ihl*4 - sizeof(struct iphdr); in ip_clear_mutable_options() 127 int ihl = ip_hdrlen(skb); in ah_output_done() local 130 icv = ah_tmp_icv(ahp->ahash, iph, ihl); in ah_output_done() 136 if (top_iph->ihl != 5) { in ah_output_done() 138 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output_done() 149 int ihl; in ah_output() local 172 ihl = ip_hdrlen(skb); in ah_output() 179 iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + seqhi_len); in ah_output() 182 seqhi = (__be32 *)((char *)iph + ihl); in ah_output() 196 if (top_iph->ihl != 5) { in ah_output() [all …]
|
D | xfrm4_mode_beet.c | 24 iph->ihl = 5; in xfrm4_beet_make_header() 51 hdrlen + (XFRM_MODE_SKB_CB(skb)->ihl - sizeof(*top_iph))); in xfrm4_beet_output() 61 __skb_pull(skb, XFRM_MODE_SKB_CB(skb)->ihl - hdrlen); in xfrm4_beet_output() 75 top_iph->ihl = sizeof(struct iphdr) / 4; in xfrm4_beet_output() 119 iph->ihl += optlen / 4; in xfrm4_beet_input() 124 iph->check = ip_fast_csum(skb_network_header(skb), iph->ihl); in xfrm4_beet_input()
|
D | ip_input.c | 282 opt->optlen = iph->ihl*4 - sizeof(struct iphdr); in ip_rcv_options() 356 if (iph->ihl > 5 && ip_rcv_options(skb)) in ip_rcv_finish() 413 if (iph->ihl < 5 || iph->version != 4) in ip_rcv() 423 if (!pskb_may_pull(skb, iph->ihl*4)) in ip_rcv() 428 if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl))) in ip_rcv() 435 } else if (len < (iph->ihl*4)) in ip_rcv() 447 skb->transport_header = skb->network_header + iph->ihl*4; in ip_rcv()
|
D | xfrm4_policy.c | 110 u8 *xprth = skb_network_header(skb) + iph->ihl * 4; in _decode_session4() 132 xprth = skb_network_header(skb) + iph->ihl * 4; in _decode_session4() 145 xprth = skb_network_header(skb) + iph->ihl * 4; in _decode_session4() 158 xprth = skb_network_header(skb) + iph->ihl * 4; in _decode_session4() 170 xprth = skb_network_header(skb) + iph->ihl * 4; in _decode_session4() 182 xprth = skb_network_header(skb) + iph->ihl * 4; in _decode_session4() 195 xprth = skb_network_header(skb) + iph->ihl * 4; in _decode_session4()
|
D | xfrm4_state.c | 61 XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph); in xfrm4_extract_header() 66 XFRM_MODE_SKB_CB(skb)->optlen = iph->ihl * 4 - sizeof(*iph); in xfrm4_extract_header()
|
D | ip_fragment.c | 340 int ihl, end; in ip_frag_queue() local 359 ihl = ip_hdrlen(skb); in ip_frag_queue() 362 end = offset + skb->len - skb_network_offset(skb) - ihl; in ip_frag_queue() 392 if (!pskb_pull(skb, skb_network_offset(skb) + ihl)) in ip_frag_queue() 494 fragsize = skb->len + ihl; in ip_frag_queue() 700 if (iph.ihl < 5 || iph.version != 4) in ip_check_defrag() 704 if (skb->len < netoff + len || len < (iph.ihl * 4)) in ip_check_defrag() 710 if (!pskb_may_pull(skb, netoff + iph.ihl * 4)) in ip_check_defrag()
|
D | ip_vti.c | 268 esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); in vti4_err() 272 ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2)); in vti4_err() 276 ipch = (struct ip_comp_hdr *)(skb->data+(iph->ihl<<2)); in vti4_err() 318 p.iph.ihl != 5) in vti_tunnel_ioctl() 385 iph->ihl = 5; in vti_fb_tunnel_init()
|
D | esp4.c | 303 int ihl; in esp_input_done2() local 323 ihl = iph->ihl * 4; in esp_input_done2() 327 struct udphdr *uh = (void *)(skb_network_header(skb) + ihl); in esp_input_done2() 367 skb_set_transport_header(skb, -ihl); in esp_input_done2() 516 struct ip_esp_hdr *esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); in esp4_err()
|
D | gre_demux.c | 95 u8 ver = skb->data[(iph->ihl<<2) + 1]&0x7f; in gre_err()
|
D | af_inet.c | 1207 int ihl; in inet_gso_segment() local 1232 ihl = iph->ihl * 4; in inet_gso_segment() 1233 if (ihl < sizeof(*iph)) in inet_gso_segment() 1240 if (unlikely(!pskb_may_pull(skb, ihl))) in inet_gso_segment() 1242 __skb_pull(skb, ihl); in inet_gso_segment() 1247 SKB_GSO_CB(skb)->encap_level += ihl; in inet_gso_segment() 1274 offset += skb->len - nhoff - ihl; in inet_gso_segment()
|
D | xfrm4_mode_tunnel.c | 42 top_iph->ihl = 5; in xfrm4_mode_tunnel_output()
|
D | xfrm4_input.c | 133 iphlen = iph->ihl << 2; in xfrm4_udp_encap_rcv()
|
D | ip_output.c | 95 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); in ip_send_check() 148 iph->ihl = 5; in ip_build_and_send_pkt() 163 iph->ihl += opt->opt.optlen>>2; in ip_build_and_send_pkt() 447 iph->ihl += inet_opt->opt.optlen >> 2; in ip_queue_xmit() 556 hlen = iph->ihl * 4; in ip_do_fragment() 1409 iph->ihl = 5; in __ip_make_skb() 1418 iph->ihl += opt->optlen>>2; in __ip_make_skb()
|
D | inet_lro.c | 39 #define IP_HDR_LEN(iph) (iph->ihl << 2) 65 if (iph->ihl != IPH_LEN_WO_OPTIONS) in lro_tcp_ip_check()
|
D | icmp.c | 630 (iph->ihl << 2) + in icmp_send() 746 if (!pskb_may_pull(skb, iph->ihl * 4 + 8)) { in icmp_socket_deliver() 794 if (iph->ihl < 5) /* Mangled header, drop. */ in icmp_unreach() 1067 int offset = iph->ihl<<2; in icmp_err()
|
D | ipip.c | 250 p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF))) in ipip_tunnel_ioctl() 317 parms->iph.ihl = 5; in ipip_netlink_parms()
|
D | ipcomp.c | 31 struct ip_comp_hdr *ipch = (struct ip_comp_hdr *)(skb->data+(iph->ihl<<2)); in ipcomp4_err()
|
D | ipconfig.c | 829 h->ihl = 5; in ic_bootp_send_if() 835 h->check = ip_fast_csum((unsigned char *) h, h->ihl); in ic_bootp_send_if() 988 if (h->ihl != 5 || h->version != 4 || h->protocol != IPPROTO_UDP) in ic_bootp_recv() 1000 if (ip_fast_csum((char *) h, h->ihl)) in ic_bootp_recv()
|
D | ipmr.c | 375 p.iph.ihl = 5; in ipmr_del_tunnel() 408 p.iph.ihl = 5; in ipmr_new_tunnel() 947 const int ihl = ip_hdrlen(pkt); in ipmr_cache_report() local 978 ip_hdr(skb)->ihl = sizeof(struct iphdr) >> 2; in ipmr_cache_report() 988 skb_put(skb, ihl); in ipmr_cache_report() 989 skb_copy_to_linear_data(skb, pkt->data, ihl); in ipmr_cache_report() 1665 iph->ihl = 5; in ip_encap() 2241 iph->ihl = sizeof(struct iphdr) >> 2; in ipmr_get_route()
|
D | raw.c | 271 u8 *payload = skb->data + (iph->ihl << 2); in raw_err() 387 iphlen = iph->ihl * 4; in raw_send_hdrinc() 408 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); in raw_send_hdrinc()
|
D | cipso_ipv4.c | 1595 for (optlen = iph->ihl*4 - sizeof(struct iphdr); optlen > 0; ) { in cipso_v4_optptr() 2262 memmove((char *)iph - len_delta, iph, iph->ihl << 2); in cipso_v4_skbuff_setattr() 2286 iph->ihl = 5 + (opt_len >> 2); in cipso_v4_skbuff_setattr()
|
D | ip_tunnel_core.c | 73 iph->ihl = sizeof(struct iphdr) >> 2; in iptunnel_xmit()
|
D | igmp.c | 367 pip->ihl = (sizeof(struct iphdr)+4)>>2; in igmpv3_newpack() 721 iph->ihl = (sizeof(struct iphdr)+4)>>2; in igmp_send_report() 1383 if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl))) in ip_mc_check_iphdr()
|
D | ip_tunnel.c | 1194 iph->ihl = 5; in ip_tunnel_init()
|
D | ip_gre.c | 683 p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF)) || in ipgre_tunnel_ioctl()
|
D | route.c | 1710 icmph = skb_header_pointer(skb, outer_iph->ihl * 4, sizeof(_icmph), in ip_multipath_icmp_hash() 1723 outer_iph->ihl * 4 + sizeof(_icmph), in ip_multipath_icmp_hash()
|
D | tcp_ipv4.c | 358 struct tcphdr *th = (struct tcphdr *)(icmp_skb->data + (iph->ihl << 2)); in tcp_v4_err()
|
D | udp.c | 629 struct udphdr *uh = (struct udphdr *)(skb->data+(iph->ihl<<2)); in __udp4_lib_err()
|
/linux-4.4.14/drivers/net/slip/ |
D | slhc.c | 263 th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4); in slhc_compress() 264 hlen = ip->ihl*4 + th->doff*4; in slhc_compress() 347 if(ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl in slhc_compress() 352 || (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0) in slhc_compress() 472 if (ip->ihl > 5) in slhc_compress() 473 memcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4); in slhc_compress() 537 hdrlen = ip->ihl * 4 + thp->doff * 4; in slhc_uncompress() 610 if (ip->ihl > 5) { in slhc_uncompress() 611 memcpy(cp, cs->cs_ipopt, (ip->ihl - 5) * 4); in slhc_uncompress() 612 cp += (ip->ihl - 5) * 4; in slhc_uncompress() [all …]
|
/linux-4.4.14/net/ipv4/netfilter/ |
D | nf_log_ipv4.c | 80 ih->ihl * 4 > sizeof(struct iphdr)) { in dump_ipv4_packet() 85 optsize = ih->ihl * 4 - sizeof(struct iphdr); in dump_ipv4_packet() 104 iphoff+ih->ihl*4, logflags)) in dump_ipv4_packet() 111 iphoff+ih->ihl*4)) in dump_ipv4_packet() 142 ich = skb_header_pointer(skb, iphoff + ih->ihl * 4, in dump_ipv4_packet() 146 skb->len - iphoff - ih->ihl*4); in dump_ipv4_packet() 156 skb->len-iphoff-ih->ihl*4 < required_len[ich->type]) { in dump_ipv4_packet() 158 skb->len - iphoff - ih->ihl*4); in dump_ipv4_packet() 187 iphoff + ih->ihl*4+sizeof(_icmph)); in dump_ipv4_packet() 212 ah = skb_header_pointer(skb, iphoff+ih->ihl*4, in dump_ipv4_packet() [all …]
|
D | nf_tables_ipv4.c | 37 ip_hdr(skb)->ihl < sizeof(struct iphdr) / 4)) { in nft_ipv4_output()
|
D | nf_conntrack_l3proto_ipv4.c | 81 *dataoff = nhoff + (iph->ihl << 2); in ipv4_get_l4proto() 88 nhoff, iph->ihl << 2, skb->len); in ipv4_get_l4proto()
|
D | nf_reject_ipv4.c | 54 niph->ihl = sizeof(struct iphdr) / 4; in nf_reject_iphdr_put()
|
D | nf_nat_snmp_basic.c | 1185 struct udphdr *udph = (struct udphdr *)((__be32 *)iph + iph->ihl); in snmp_translate() 1225 const struct udphdr *udph = (struct udphdr *)((__be32 *)iph + iph->ihl); in help() 1243 if (ntohs(udph->len) != skb->len - (iph->ihl << 2)) { in help()
|
D | nf_nat_l3proto_ipv4.c | 91 hdroff = iphdroff + iph->ihl * 4; in nf_nat_ipv4_manip_pkt()
|
D | ipt_SYNPROXY.c | 28 iph->ihl = sizeof(*iph) / 4; in synproxy_build_ip()
|
D | ipt_CLUSTERIP.c | 255 ports = skb_header_pointer(skb, iph->ihl * 4 + poff, 4, _ports); in clusterip_hashfn()
|
/linux-4.4.14/arch/x86/um/asm/ |
D | checksum.h | 119 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 143 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum() 144 : "1" (iph), "2" (ihl) in ip_fast_csum()
|
/linux-4.4.14/arch/avr32/include/asm/ |
D | checksum.h | 62 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 88 : "=r"(sum), "=r"(iph), "=r"(ihl), "=r"(tmp) in ip_fast_csum() 89 : "1"(iph), "2"(ihl) in ip_fast_csum()
|
/linux-4.4.14/arch/frv/include/asm/ |
D | checksum.h | 55 __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 75 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (inc), "=&r"(tmp) in ip_fast_csum() 76 : "0" (sum), "1" (iph), "2" (ihl), "3" (4), in ip_fast_csum()
|
/linux-4.4.14/net/ipv6/ |
D | xfrm6_mode_transport.c | 49 int ihl = skb->data - skb_transport_header(skb); in xfrm6_transport_input() local 53 skb_network_header(skb), ihl); in xfrm6_transport_input() 56 ipv6_hdr(skb)->payload_len = htons(skb->len + ihl - in xfrm6_transport_input()
|
D | xfrm6_mode_beet.c | 57 ph = (struct ip_beet_phdr *)__skb_pull(skb, XFRM_MODE_SKB_CB(skb)->ihl-hdr_len); in xfrm6_beet_output()
|
D | sit.c | 487 int ihl = ((const struct iphdr *)skb->data)->ihl*4; in ipip6_err_gen_icmpv6_unreach() local 491 if (!pskb_may_pull(skb, ihl + sizeof(struct ipv6hdr) + 8)) in ipip6_err_gen_icmpv6_unreach() 500 skb_pull(skb2, ihl); in ipip6_err_gen_icmpv6_unreach() 1200 p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF))) in ipip6_tunnel_ioctl() 1406 iph->ihl = 5; in ipip6_fb_tunnel_init() 1436 parms->iph.ihl = 5; in ipip6_netlink_parms()
|
D | xfrm6_state.c | 160 XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph); in xfrm6_extract_header()
|
D | addrconf.c | 2584 p.iph.ihl = 5; in addrconf_set_dstaddr()
|
/linux-4.4.14/arch/m68k/include/asm/ |
D | checksum.h | 45 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 60 : "=d" (sum), "=&a" (iph), "=&d" (ihl), "=&d" (tmp) in ip_fast_csum() 61 : "0" (sum), "1" (iph), "2" (ihl) in ip_fast_csum()
|
/linux-4.4.14/arch/parisc/include/asm/ |
D | checksum.h | 41 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 66 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum() 67 : "1" (iph), "2" (ihl) in ip_fast_csum()
|
/linux-4.4.14/arch/arm/include/asm/ |
D | checksum.h | 60 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 80 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (tmp1) in ip_fast_csum() 81 : "1" (iph), "2" (ihl) in ip_fast_csum()
|
/linux-4.4.14/arch/m32r/include/asm/ |
D | checksum.h | 79 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 109 : "=&r" (sum), "=r" (iph), "=r" (ihl), "=&r" (tmpreg0), "=&r" (tmpreg1) in ip_fast_csum() 110 : "1" (iph), "2" (ihl) in ip_fast_csum()
|
/linux-4.4.14/arch/score/include/asm/ |
D | checksum.h | 83 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 123 : "=&r" (sum), "=&r" (iph), "=&r" (ihl), "=&r" (dummy) in ip_fast_csum() 124 : "1" (iph), "2" (ihl)); in ip_fast_csum()
|
/linux-4.4.14/arch/x86/include/asm/ |
D | checksum_64.h | 45 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 69 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum() 70 : "1" (iph), "2" (ihl) in ip_fast_csum()
|
D | checksum_32.h | 70 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 94 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum() 95 : "1" (iph), "2" (ihl) in ip_fast_csum()
|
/linux-4.4.14/arch/sh/include/asm/ |
D | checksum_32.h | 89 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 110 : "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (__dummy0), "=&z" (__dummy1) in ip_fast_csum() 111 : "1" (iph), "2" (ihl) in ip_fast_csum()
|
/linux-4.4.14/arch/arc/include/asm/ |
D | checksum.h | 41 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 62 : "r"(ihl) in ip_fast_csum()
|
/linux-4.4.14/arch/xtensa/include/asm/ |
D | checksum.h | 90 static __inline__ __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 117 : "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (tmp), in ip_fast_csum() 119 : "1" (iph), "2" (ihl) in ip_fast_csum()
|
/linux-4.4.14/arch/cris/include/asm/ |
D | checksum.h | 55 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 57 return csum_fold(csum_partial(iph, ihl * 4, 0)); in ip_fast_csum()
|
/linux-4.4.14/net/bridge/netfilter/ |
D | nf_tables_bridge.c | 31 if (iph->ihl < 5 || iph->version != 4) in nft_bridge_iphdr_validate() 37 else if (len < (iph->ihl*4)) in nft_bridge_iphdr_validate() 40 if (!pskb_may_pull(skb, iph->ihl*4)) in nft_bridge_iphdr_validate()
|
D | ebt_ip.c | 58 pptr = skb_header_pointer(skb, ih->ihl*4, in ebt_ip_mt()
|
D | ebt_log.c | 110 print_ports(skb, ih->protocol, ih->ihl*4); in ebt_log_packet()
|
/linux-4.4.14/arch/s390/include/asm/ |
D | checksum.h | 84 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 86 return csum_fold(csum_partial(iph, ihl*4, 0)); in ip_fast_csum()
|
/linux-4.4.14/arch/mn10300/lib/ |
D | checksum.c | 30 __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 32 return ~do_csum(iph, ihl * 4); in ip_fast_csum()
|
/linux-4.4.14/include/uapi/linux/ |
D | ip.h | 87 __u8 ihl:4, member 91 ihl:4;
|
/linux-4.4.14/lib/ |
D | checksum.c | 110 __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 112 return (__force __sum16)~do_csum(iph, ihl*4); in ip_fast_csum()
|
/linux-4.4.14/arch/alpha/lib/ |
D | checksum.c | 147 __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 149 return (__force __sum16)~do_csum(iph,ihl*4); in ip_fast_csum()
|
/linux-4.4.14/arch/sparc/include/asm/ |
D | checksum_32.h | 121 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 152 : "r" (ihl), "1" (iph) in ip_fast_csum()
|
D | checksum_64.h | 80 __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.4.14/net/netfilter/ipvs/ |
D | ip_vs_core.c | 735 unsigned int icmp_offset = iph->ihl*4; in ip_vs_nat_icmp() 755 __be16 *ports = (void *)ciph + ciph->ihl*4; in ip_vs_nat_icmp() 843 unsigned int offset, unsigned int ihl, in handle_response_icmp() argument 854 if (!skb_csum_unnecessary(skb) && ip_vs_checksum_complete(skb, ihl)) { in handle_response_icmp() 907 unsigned int offset, ihl; in ip_vs_out_icmp() local 919 offset = ihl = iph->ihl * 4; in ip_vs_out_icmp() 969 pp, ciph.len, ihl, hooknum); in ip_vs_out_icmp() 1397 unsigned int offset, offset2, ihl, verdict; in ip_vs_in_icmp() local 1409 offset = ihl = iph->ihl * 4; in ip_vs_in_icmp() 1446 offset += cih->ihl * 4; in ip_vs_in_icmp() [all …]
|
D | ip_vs_ftp.c | 205 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_ftp_out() 272 iph->ihl * 4, in ip_vs_ftp_out() 345 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_ftp_in()
|
D | ip_vs_proto_sctp.c | 384 int ihl, cofs; in set_sctp_state() local 387 ihl = cp->af == AF_INET ? ip_hdrlen(skb) : sizeof(struct ipv6hdr); in set_sctp_state() 389 ihl = ip_hdrlen(skb); in set_sctp_state() 392 cofs = ihl + sizeof(sctp_sctphdr_t); in set_sctp_state()
|
D | ip_vs_proto_tcp.c | 573 int ihl = cp->af == AF_INET ? ip_hdrlen(skb) : sizeof(struct ipv6hdr); in tcp_state_transition() local 575 int ihl = ip_hdrlen(skb); in tcp_state_transition() local 578 th = skb_header_pointer(skb, ihl, sizeof(_tcph), &_tcph); in tcp_state_transition()
|
D | ip_vs_proto.c | 245 pptr = skb_header_pointer(skb, offset + ih->ihl*4, in ip_vs_tcpudp_debug_packet_v4()
|
D | ip_vs_xmit.c | 1038 iph->ihl = sizeof(struct iphdr)>>2; in ip_vs_tunnel_xmit()
|
/linux-4.4.14/arch/mips/include/asm/ |
D | checksum.h | 131 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 134 const unsigned int *stop = word + ihl; in ip_fast_csum()
|
/linux-4.4.14/include/linux/ |
D | ptp_classify.h | 58 #define IPV4_HLEN(data) (((struct iphdr *)(data + OFF_IHL))->ihl << 2)
|
/linux-4.4.14/arch/ia64/include/asm/ |
D | checksum.h | 13 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.4.14/arch/alpha/include/asm/ |
D | checksum.h | 10 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.4.14/include/asm-generic/ |
D | checksum.h | 46 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.4.14/arch/nios2/include/asm/ |
D | checksum.h | 22 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.4.14/net/netfilter/ |
D | nf_tables_netdev.c | 34 if (iph->ihl < 5 || iph->version != 4) in nft_netdev_set_pktinfo_ipv4() 38 thoff = iph->ihl * 4; in nft_netdev_set_pktinfo_ipv4()
|
D | xt_HMARK.c | 264 if (get_inner_hdr(skb, ip->ihl * 4, &nhoff)) { in hmark_pkt_set_htuple_ipv4() 287 hmark_set_tuple_ports(skb, (ip->ihl * 4) + nhoff, t, info); in hmark_pkt_set_htuple_ipv4()
|
D | xt_AUDIT.c | 93 audit_proto(ab, skb, ih->protocol, ih->ihl * 4); in audit_ip4()
|
D | xt_TCPMSS.c | 212 iph->ihl * 4, in tcpmss_tg4()
|
D | xt_socket.c | 79 (inside_iph->ihl << 2), in extract_icmp4_fields()
|
/linux-4.4.14/arch/mn10300/include/asm/ |
D | checksum.h | 20 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.4.14/arch/metag/include/asm/ |
D | checksum.h | 55 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | checksum.h | 20 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.4.14/arch/c6x/lib/ |
D | csum_64plus.S | 159 ;ip_fast_csum(unsigned char *iph, unsigned int ihl) 165 ; len = ihl*4; 184 ; B4: ihl
|
/linux-4.4.14/net/bridge/ |
D | br_netfilter_hooks.c | 201 if (iph->ihl < 5 || iph->version != 4) in br_validate_ipv4() 204 if (!pskb_may_pull(skb, iph->ihl*4)) in br_validate_ipv4() 208 if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl))) in br_validate_ipv4() 215 } else if (len < (iph->ihl*4)) in br_validate_ipv4()
|
D | br_multicast.c | 395 iph->ihl = 6; in br_ip4_multicast_alloc_query()
|
/linux-4.4.14/drivers/infiniband/hw/nes/ |
D | nes_mgt.c | 178 struct tcphdr *tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in nes_get_seq() 338 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in get_fpdu_info() 358 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in get_fpdu_info() 387 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in get_fpdu_info() 523 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); in queue_fpdus()
|
D | nes_cm.c | 476 iph->ihl = 5; /* 5 * 4Byte words, IP headr len */ in form_cm_frame() 2354 skb_pull(skb, ip_hdr(skb)->ihl << 2); in process_packet()
|
/linux-4.4.14/drivers/net/ipvlan/ |
D | ipvlan_core.c | 146 if (ip4h->ihl < 5 || ip4h->version != 4) in ipvlan_get_L3_hdr() 148 if (skb->len < pktlen || pktlen < (ip4h->ihl * 4)) in ipvlan_get_L3_hdr()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_rx.c | 136 ipv4->ihl); in mlx5e_lro_update_hdr()
|
/linux-4.4.14/net/core/ |
D | flow_dissector.c | 175 if (!iph || iph->ihl < 5) in __skb_flow_dissect() 177 nhoff += iph->ihl * 4; in __skb_flow_dissect()
|
D | netpoll.c | 465 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); in netpoll_send_udp()
|
D | pktgen.c | 2882 iph->ihl = 5; in fill_packet_ipv4()
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
D | rx.c | 894 EFX_BUG_ON_PARANOID(skb_headlen(skb) < nhoff + 4 * ip->ihl + 4); in efx_filter_rfs() 895 ports = (const __be16 *)(skb->data + nhoff + 4 * ip->ihl); in efx_filter_rfs()
|
D | selftest.c | 383 payload->ip.ihl = 5; in efx_iterate_state()
|
/linux-4.4.14/Documentation/networking/timestamping/ |
D | txtimestamp.c | 344 iph->ihl = 5; in do_test()
|
/linux-4.4.14/net/atm/ |
D | mpc.c | 539 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); in send_via_shortcut() 591 if (skb->len < ETH_HLEN + ip_hdr(skb)->ihl * 4 || ip_hdr(skb)->ihl < 5) in mpc_send_packet()
|
/linux-4.4.14/drivers/net/ethernet/sgi/ |
D | ioc3-eth.c | 543 (ih->tot_len - (ih->ihl << 2)) + in ioc3_tcpudp_checksum() 1439 ih->tot_len - (ih->ihl << 2), in ioc3_start_xmit() 1445 csoff = ETH_HLEN + (ih->ihl << 2); in ioc3_start_xmit()
|
/linux-4.4.14/drivers/staging/gdm72xx/ |
D | gdm_qos.c | 264 tcph = (struct tcphdr *)iph + iph->ihl*4; in gdm_qos_send_hci_pkt()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 1326 th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in qlcnic_process_lro() 1327 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in qlcnic_process_lro() 1849 th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in qlcnic_83xx_process_lro() 1850 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in qlcnic_83xx_process_lro()
|
/linux-4.4.14/include/net/ |
D | ip.h | 55 return ip_hdr(skb)->ihl * 4; in ip_hdrlen()
|
D | ip_vs.h | 113 iphdr->len = offset + iph->ihl * 4; in ip_vs_fill_iph_skb_off()
|
D | xfrm.h | 660 u8 ihl; member
|
/linux-4.4.14/net/batman-adv/ |
D | gateway_client.c | 705 *header_len += iphdr->ihl * 4; in batadv_gw_dhcp_recipient_get()
|
/linux-4.4.14/drivers/staging/octeon/ |
D | ethernet-tx.c | 400 (ip_hdr(skb)->ihl == 5) && in cvm_oct_xmit()
|
/linux-4.4.14/drivers/net/ppp/ |
D | pptp.c | 268 iph->ihl = sizeof(struct iphdr) >> 2; in pptp_xmit()
|
/linux-4.4.14/tools/testing/selftests/net/ |
D | psock_tpacket.c | 171 ip->ihl = 5; in create_payload()
|
/linux-4.4.14/net/sctp/ |
D | input.c | 571 const int ihlen = iph->ihl * 4; in sctp_v4_err()
|
/linux-4.4.14/drivers/staging/rtl8192e/ |
D | rtllib_tx.c | 641 (ip->ihl << 2)); in rtllib_xmit_inter()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_init.c | 1642 th = (struct tcphdr *)((skb->data + vhdr_len) + (iph->ihl << 2)); in netxen_process_lro() 1644 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in netxen_process_lro()
|
/linux-4.4.14/net/dccp/ |
D | ipv4.c | 237 const u8 offset = iph->ihl << 2; in dccp_v4_err()
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/ |
D | d3.c | 405 pkt->ip.ihl = 5; in iwl_mvm_build_tcp_packet() 476 pkt->ip.check = ip_fast_csum(&pkt->ip, pkt->ip.ihl); in iwl_mvm_build_tcp_packet()
|
/linux-4.4.14/drivers/net/ethernet/sun/ |
D | niu.c | 6568 u64 csum_bits, l3off, ihl, ret; in niu_compute_tx_flags() local 6581 ipv6 = ihl = 0; in niu_compute_tx_flags() 6585 ihl = ip_hdr(skb)->ihl; in niu_compute_tx_flags() 6589 ihl = (40 >> 2); in niu_compute_tx_flags() 6593 ip_proto = ihl = 0; in niu_compute_tx_flags() 6620 (ihl << TXHDR_IHL_SHIFT) | in niu_compute_tx_flags()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
D | en_rx.c | 689 length_for_csum = (be16_to_cpu(iph->tot_len) - (iph->ihl << 2)); in get_fixed_ipv4_csum()
|
D | en_netdev.c | 323 ports = (const __be16 *)(skb->data + nhoff + 4 * ip->ihl); in mlx4_en_filter_rfs()
|
/linux-4.4.14/drivers/net/ethernet/tile/ |
D | tilepro.c | 1683 unsigned int ih_len = ih->ihl * 4; in tile_net_tx_tso()
|
/linux-4.4.14/drivers/net/ethernet/ |
D | jme.c | 980 (ip_hdr(skb)->ihl << 2) + in jme_udpsum() 986 ETH_HLEN + (ip_hdr(skb)->ihl << 2)); in jme_udpsum()
|
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/ |
D | lio_main.c | 2752 if (ip_hdr(skb)->ihl > 5) in liquidio_xmit() 2774 if (ip_hdr(skb)->ihl > 5) in liquidio_xmit()
|
/linux-4.4.14/drivers/net/ethernet/atheros/atlx/ |
D | atl1.c | 2146 ptpd->word3 |= (iph->ihl & TPD_IPHL_MASK) << in atl1_tso() 2166 ptpd->word3 |= (iph->ihl & TPD_IPHL_MASK) << in atl1_tso()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/ |
D | i40e_txrx.c | 860 (ip_hdr(skb)->ihl * 4); in i40e_rx_checksum()
|
/linux-4.4.14/drivers/net/ethernet/ibm/ |
D | ibmveth.c | 1235 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); in ibmveth_poll()
|
/linux-4.4.14/drivers/net/vmxnet3/ |
D | vmxnet3_drv.c | 1207 hlen = hdr.ipv4->ihl << 2; in vmxnet3_get_hdr_len() 1208 hdr.ptr += hdr.ipv4->ihl << 2; in vmxnet3_get_hdr_len()
|
/linux-4.4.14/drivers/net/ethernet/neterion/ |
D | s2io.c | 4058 ip->ihl*4); in s2io_xmit() 8259 ip_len = (u8)((*ip)->ihl); in check_L2_lro_capable() 8280 return ntohs(ip->tot_len) - (ip->ihl << 2) - (tcp->doff << 2); in get_l4_pyld_length() 8374 if (ip->ihl != 5) /* IP has options */ in verify_l3_l4_lro_capable()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/ |
D | sge.c | 1808 hdr->ip_hdr_words = ip_hdr(skb)->ihl; in t1_start_xmit()
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/ |
D | base.c | 1356 (ip->ihl << 2)); in rtl_is_special_data()
|
/linux-4.4.14/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 1674 tpd->word3 |= (ip_hdr(skb)->ihl & in atl1e_tso_csum()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 1387 (ip_hdr(skb)->ihl * 4); in i40e_rx_checksum()
|
/linux-4.4.14/drivers/net/ethernet/marvell/ |
D | mv643xx_eth.c | 721 ip_hdr(skb)->ihl << TX_IHL_SHIFT; in skb_tx_csum()
|
D | mvneta.c | 1468 ip_hdr_len = ip4h->ihl; in mvneta_skb_tx_csum()
|
D | mvpp2.c | 5040 ip_hdr_len = ip4h->ihl; in mvpp2_skb_tx_csum()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 1165 V_LSO_IPHDR_WORDS(ip_hdr(skb)->ihl) | in write_tx_pkt_wr()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/ |
D | qla3xxx.c | 2287 mac_iocb_ptr->ip_hdr_len = ip->ihl; in ql_hw_csum_setup()
|
/linux-4.4.14/drivers/s390/net/ |
D | qeth_l3_main.c | 2800 hdr->ext.dg_hdr_len = (__u16)(iph->ihl*4 + tcph->doff*4); in qeth_tso_fill_header()
|
/linux-4.4.14/drivers/net/bonding/ |
D | bond_main.c | 3118 noff += iph->ihl << 2; in bond_flow_dissect()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 6647 if (tcp_opt_len || (iph->ihl > 5)) { in bnx2_start_xmit() 6648 vlan_tag_flags |= ((iph->ihl - 5) + in bnx2_start_xmit()
|
D | tg3.c | 7991 if (tcp_opt_len || iph->ihl > 5) { in tg3_start_xmit() 7994 tsflags = (iph->ihl - 5) + (tcp_opt_len >> 2); in tg3_start_xmit() 7998 if (tcp_opt_len || iph->ihl > 5) { in tg3_start_xmit() 8001 tsflags = (iph->ihl - 5) + (tcp_opt_len >> 2); in tg3_start_xmit()
|
/linux-4.4.14/drivers/net/ethernet/neterion/vxge/ |
D | vxge-main.c | 642 ip->ihl*4); in vxge_get_vpath_no()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.c | 3714 outerip_len = iph->ihl << 1; in bnx2x_update_pbds_gso_enc()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlge/ |
D | qlge_main.c | 2626 len = (ntohs(iph->tot_len) - (iph->ihl << 2)); in ql_hw_csum_setup()
|
/linux-4.4.14/security/selinux/ |
D | hooks.c | 3766 ihlen = ih->ihl * 4; in selinux_parse_skb_ipv4()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 5649 udp = (struct udphdr *)((u8 *)ip + (ip->ihl << 2)); in e1000_transfer_dhcp_info()
|