/linux-4.1.27/net/sched/ |
D | act_csum.c | 100 unsigned int ihl, unsigned int ipl, in tcf_csum_skb_nextlayer() argument 104 int hl = ihl + jhl; in tcf_csum_skb_nextlayer() 112 return (void *)(skb_network_header(skb) + ihl); in tcf_csum_skb_nextlayer() 116 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv4_icmp() argument 120 icmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmph)); in tcf_csum_ipv4_icmp() 125 skb->csum = csum_partial(icmph, ipl - ihl, 0); in tcf_csum_ipv4_icmp() 134 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv4_igmp() argument 138 igmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*igmph)); in tcf_csum_ipv4_igmp() 143 skb->csum = csum_partial(igmph, ipl - ihl, 0); in tcf_csum_ipv4_igmp() 152 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv6_icmp() argument [all …]
|
D | act_nat.c | 97 int ihl; in tcf_nat() local 149 ihl = iph->ihl * 4; in tcf_nat() 157 if (!pskb_may_pull(skb, ihl + sizeof(*tcph) + noff) || in tcf_nat() 159 !skb_clone_writable(skb, ihl + sizeof(*tcph) + noff) && in tcf_nat() 163 tcph = (void *)(skb_network_header(skb) + ihl); in tcf_nat() 171 if (!pskb_may_pull(skb, ihl + sizeof(*udph) + noff) || in tcf_nat() 173 !skb_clone_writable(skb, ihl + sizeof(*udph) + noff) && in tcf_nat() 177 udph = (void *)(skb_network_header(skb) + ihl); in tcf_nat() 190 if (!pskb_may_pull(skb, ihl + sizeof(*icmph) + noff)) in tcf_nat() 193 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.1.27/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 | 281 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 | ip_fragment.c | 323 int ihl, end; in ip_frag_queue() local 342 ihl = ip_hdrlen(skb); in ip_frag_queue() 345 end = offset + skb->len - skb_network_offset(skb) - ihl; in ip_frag_queue() 375 if (!pskb_pull(skb, skb_network_offset(skb) + ihl)) in ip_frag_queue() 478 skb->len + ihl > qp->q.max_size) in ip_frag_queue() 479 qp->q.max_size = skb->len + ihl; in ip_frag_queue() 678 if (iph.ihl < 5 || iph.version != 4) in ip_check_defrag() 682 if (skb->len < netoff + len || len < (iph.ihl * 4)) in ip_check_defrag() 688 if (!pskb_may_pull(skb, netoff + iph.ihl * 4)) in ip_check_defrag()
|
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 | esp4.c | 284 int ihl; in esp_input_done2() local 304 ihl = iph->ihl * 4; in esp_input_done2() 308 struct udphdr *uh = (void *)(skb_network_header(skb) + ihl); in esp_input_done2() 348 skb_set_transport_header(skb, -ihl); in esp_input_done2() 483 struct ip_esp_hdr *esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); in esp4_err()
|
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 | af_inet.c | 1212 int ihl; in inet_gso_segment() local 1237 ihl = iph->ihl * 4; in inet_gso_segment() 1238 if (ihl < sizeof(*iph)) in inet_gso_segment() 1245 if (unlikely(!pskb_may_pull(skb, ihl))) in inet_gso_segment() 1247 __skb_pull(skb, ihl); in inet_gso_segment() 1252 SKB_GSO_CB(skb)->encap_level += ihl; in inet_gso_segment() 1279 offset += skb->len - nhoff - ihl; in inet_gso_segment()
|
D | xfrm4_input.c | 132 iphlen = iph->ihl << 2; in xfrm4_udp_encap_rcv()
|
D | xfrm4_mode_tunnel.c | 42 top_iph->ihl = 5; in xfrm4_mode_tunnel_output()
|
D | ip_output.c | 90 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); in ip_send_check() 146 iph->ihl = 5; in ip_build_and_send_pkt() 159 iph->ihl += opt->opt.optlen>>2; in ip_build_and_send_pkt() 436 iph->ihl += inet_opt->opt.optlen >> 2; in ip_queue_xmit() 525 hlen = iph->ihl * 4; in ip_fragment() 1385 iph->ihl = 5; in __ip_make_skb() 1394 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 | 606 (iph->ihl << 2) + in icmp_send() 722 if (!pskb_may_pull(skb, iph->ihl * 4 + 8)) { in icmp_socket_deliver() 770 if (iph->ihl < 5) /* Mangled header, drop. */ in icmp_unreach() 1043 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() 319 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 | ip_tunnel_core.c | 70 iph->ihl = sizeof(struct iphdr) >> 2; in iptunnel_xmit()
|
D | ipconfig.c | 815 h->ihl = 5; in ic_bootp_send_if() 821 h->check = ip_fast_csum((unsigned char *) h, h->ihl); in ic_bootp_send_if() 974 if (h->ihl != 5 || h->version != 4 || h->protocol != IPPROTO_UDP) in ic_bootp_recv() 986 if (ip_fast_csum((char *) h, h->ihl)) in ic_bootp_recv()
|
D | ipmr.c | 376 p.iph.ihl = 5; in ipmr_del_tunnel() 409 p.iph.ihl = 5; in ipmr_new_tunnel() 956 const int ihl = ip_hdrlen(pkt); in ipmr_cache_report() local 987 ip_hdr(skb)->ihl = sizeof(struct iphdr) >> 2; in ipmr_cache_report() 997 skb_put(skb, ihl); in ipmr_cache_report() 998 skb_copy_to_linear_data(skb, pkt->data, ihl); in ipmr_cache_report() 1674 iph->ihl = 5; in ip_encap() 2249 iph->ihl = sizeof(struct iphdr) >> 2; in ipmr_get_route()
|
D | gre_demux.c | 287 u8 ver = skb->data[(iph->ihl<<2) + 1]&0x7f; in gre_err()
|
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 | xfrm4_policy.c | 105 u8 *xprth = skb_network_header(skb) + iph->ihl * 4; in _decode_session4()
|
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_gre.c | 323 p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF)) || in ipgre_tunnel_ioctl()
|
D | ip_tunnel.c | 1164 iph->ihl = 5; in ip_tunnel_init()
|
D | igmp.c | 365 pip->ihl = (sizeof(struct iphdr)+4)>>2; in igmpv3_newpack() 710 iph->ihl = (sizeof(struct iphdr)+4)>>2; in igmp_send_report()
|
D | tcp_ipv4.c | 360 struct tcphdr *th = (struct tcphdr *)(icmp_skb->data + (iph->ihl << 2)); in tcp_v4_err()
|
D | udp.c | 626 struct udphdr *uh = (struct udphdr *)(skb->data+(iph->ihl<<2)); in __udp4_lib_err()
|
/linux-4.1.27/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.1.27/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.1.27/arch/x86/um/asm/ |
D | checksum.h | 118 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 142 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum() 143 : "1" (iph), "2" (ihl) in ip_fast_csum()
|
/linux-4.1.27/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.1.27/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 | 2515 p.iph.ihl = 5; in addrconf_set_dstaddr()
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/include/uapi/linux/ |
D | ip.h | 87 __u8 ihl:4, member 91 ihl:4;
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/net/netfilter/ipvs/ |
D | ip_vs_core.c | 712 unsigned int icmp_offset = iph->ihl*4; in ip_vs_nat_icmp() 732 __be16 *ports = (void *)ciph + ciph->ihl*4; in ip_vs_nat_icmp() 820 unsigned int offset, unsigned int ihl, in handle_response_icmp() argument 831 if (!skb_csum_unnecessary(skb) && ip_vs_checksum_complete(skb, ihl)) { in handle_response_icmp() 884 unsigned int offset, ihl; in ip_vs_out_icmp() local 896 offset = ihl = iph->ihl * 4; in ip_vs_out_icmp() 946 pp, ciph.len, ihl, hooknum); in ip_vs_out_icmp() 1347 unsigned int offset, offset2, ihl, verdict; in ip_vs_in_icmp() local 1359 offset = ihl = iph->ihl * 4; in ip_vs_in_icmp() 1398 offset += cih->ihl * 4; in ip_vs_in_icmp() [all …]
|
D | ip_vs_ftp.c | 206 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_ftp_out() 273 iph->ihl * 4, in ip_vs_ftp_out() 348 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_ftp_in()
|
D | ip_vs_proto_sctp.c | 375 int ihl, cofs; in set_sctp_state() local 378 ihl = cp->af == AF_INET ? ip_hdrlen(skb) : sizeof(struct ipv6hdr); in set_sctp_state() 380 ihl = ip_hdrlen(skb); in set_sctp_state() 383 cofs = ihl + sizeof(sctp_sctphdr_t); in set_sctp_state()
|
D | ip_vs_proto_tcp.c | 553 int ihl = cp->af == AF_INET ? ip_hdrlen(skb) : sizeof(struct ipv6hdr); in tcp_state_transition() local 555 int ihl = ip_hdrlen(skb); in tcp_state_transition() local 558 th = skb_header_pointer(skb, ihl, sizeof(_tcph), &_tcph); in tcp_state_transition()
|
D | ip_vs_proto.c | 255 pptr = skb_header_pointer(skb, offset + ih->ihl*4, in ip_vs_tcpudp_debug_packet_v4()
|
D | ip_vs_xmit.c | 1020 iph->ihl = sizeof(struct iphdr)>>2; in ip_vs_tunnel_xmit()
|
/linux-4.1.27/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.1.27/include/linux/ |
D | ptp_classify.h | 57 #define IPV4_HLEN(data) (((struct iphdr *)(data + OFF_IHL))->ihl << 2)
|
/linux-4.1.27/arch/ia64/include/asm/ |
D | checksum.h | 13 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.1.27/arch/alpha/include/asm/ |
D | checksum.h | 10 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.1.27/arch/nios2/include/asm/ |
D | checksum.h | 22 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.1.27/include/asm-generic/ |
D | checksum.h | 46 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.1.27/arch/metag/include/asm/ |
D | checksum.h | 55 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.1.27/arch/mn10300/include/asm/ |
D | checksum.h | 20 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | checksum.h | 20 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
|
/linux-4.1.27/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.1.27/net/netfilter/ |
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.1.27/net/core/ |
D | flow_dissector.c | 95 if (!iph || iph->ihl < 5) in __skb_flow_dissect() 97 nhoff += iph->ihl * 4; in __skb_flow_dissect()
|
D | netpoll.c | 458 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); in netpoll_send_udp()
|
D | pktgen.c | 2831 iph->ihl = 5; in fill_packet_ipv4()
|
/linux-4.1.27/net/bridge/ |
D | br_netfilter.c | 223 if (iph->ihl < 5 || iph->version != 4) in br_parse_ip_options() 226 if (!pskb_may_pull(skb, iph->ihl*4)) in br_parse_ip_options() 230 if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl))) in br_parse_ip_options() 237 } else if (len < (iph->ihl*4)) in br_parse_ip_options()
|
D | br_multicast.c | 381 iph->ihl = 6; in br_ip4_multicast_alloc_query() 1572 if (iph->ihl < 5 || iph->version != 4) in br_multicast_ipv4_rcv() 1580 if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl))) in br_multicast_ipv4_rcv()
|
/linux-4.1.27/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() 2351 skb_pull(skb, ip_hdr(skb)->ihl << 2); in process_packet()
|
/linux-4.1.27/drivers/net/ipvlan/ |
D | ipvlan_core.c | 148 if (ip4h->ihl < 5 || ip4h->version != 4) in ipvlan_get_L3_hdr() 150 if (skb->len < pktlen || pktlen < (ip4h->ihl * 4)) in ipvlan_get_L3_hdr()
|
/linux-4.1.27/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 | 374 payload->ip.ihl = 5; in efx_iterate_state()
|
/linux-4.1.27/Documentation/networking/timestamping/ |
D | txtimestamp.c | 344 iph->ihl = 5; in do_test()
|
/linux-4.1.27/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.1.27/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.1.27/drivers/staging/gdm72xx/ |
D | gdm_qos.c | 264 tcph = (struct tcphdr *)iph + iph->ihl*4; in gdm_qos_send_hci_pkt()
|
/linux-4.1.27/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.1.27/include/net/ |
D | ip_vs.h | 128 iphdr->len = iph->ihl * 4; in ip_vs_fill_ip4hdr() 159 iphdr->len = iph->ihl * 4; in ip_vs_fill_iph_skb()
|
D | ip.h | 54 return ip_hdr(skb)->ihl * 4; in ip_hdrlen()
|
D | xfrm.h | 657 u8 ihl; member
|
/linux-4.1.27/net/batman-adv/ |
D | gateway_client.c | 710 *header_len += iphdr->ihl * 4; in batadv_gw_dhcp_recipient_get()
|
/linux-4.1.27/drivers/staging/octeon/ |
D | ethernet-tx.c | 415 (ip_hdr(skb)->version == 4) && (ip_hdr(skb)->ihl == 5) && in cvm_oct_xmit()
|
/linux-4.1.27/tools/testing/selftests/net/ |
D | psock_tpacket.c | 171 ip->ihl = 5; in create_payload()
|
/linux-4.1.27/drivers/net/ppp/ |
D | pptp.c | 269 iph->ihl = sizeof(struct iphdr) >> 2; in pptp_xmit()
|
/linux-4.1.27/drivers/staging/rtl8192e/ |
D | rtllib_tx.c | 641 (ip->ihl << 2)); in rtllib_xmit_inter()
|
/linux-4.1.27/net/sctp/ |
D | input.c | 571 const int ihlen = iph->ihl * 4; in sctp_v4_err()
|
/linux-4.1.27/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.1.27/net/dccp/ |
D | ipv4.c | 239 const u8 offset = iph->ihl << 2; in dccp_v4_err()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/ |
D | d3.c | 411 pkt->ip.ihl = 5; in iwl_mvm_build_tcp_packet() 482 pkt->ip.check = ip_fast_csum(&pkt->ip, pkt->ip.ihl); in iwl_mvm_build_tcp_packet()
|
/linux-4.1.27/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.1.27/drivers/net/ethernet/mellanox/mlx4/ |
D | en_rx.c | 695 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.1.27/drivers/net/ethernet/tile/ |
D | tilepro.c | 1686 unsigned int ih_len = ih->ihl * 4; in tile_net_tx_tso()
|
/linux-4.1.27/drivers/net/ethernet/ |
D | jme.c | 978 (ip_hdr(skb)->ihl << 2) + in jme_udpsum() 984 ETH_HLEN + (ip_hdr(skb)->ihl << 2)); in jme_udpsum()
|
/linux-4.1.27/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.1.27/drivers/net/ethernet/intel/i40evf/ |
D | i40e_txrx.c | 921 (ip_hdr(skb)->ihl * 4); in i40e_rx_checksum()
|
/linux-4.1.27/drivers/net/ethernet/neterion/ |
D | s2io.c | 4058 ip->ihl*4); in s2io_xmit() 8283 ip_len = (u8)((*ip)->ihl); in check_L2_lro_capable() 8304 return ntohs(ip->tot_len) - (ip->ihl << 2) - (tcp->doff << 2); in get_l4_pyld_length() 8398 if (ip->ihl != 5) /* IP has options */ in verify_l3_l4_lro_capable()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/ |
D | sge.c | 1808 hdr->ip_hdr_words = ip_hdr(skb)->ihl; in t1_start_xmit()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/ |
D | base.c | 1358 (ip->ihl << 2)); in rtl_is_special_data()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 1438 (ip_hdr(skb)->ihl * 4); in i40e_rx_checksum()
|
/linux-4.1.27/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 1674 tpd->word3 |= (ip_hdr(skb)->ihl & in atl1e_tso_csum()
|
/linux-4.1.27/drivers/net/ethernet/marvell/ |
D | mv643xx_eth.c | 721 ip_hdr(skb)->ihl << TX_IHL_SHIFT; in skb_tx_csum()
|
D | mvneta.c | 1410 ip_hdr_len = ip4h->ihl; in mvneta_skb_tx_csum()
|
D | mvpp2.c | 4965 ip_hdr_len = ip4h->ihl; in mvpp2_skb_tx_csum()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 1165 V_LSO_IPHDR_WORDS(ip_hdr(skb)->ihl) | in write_tx_pkt_wr()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/ |
D | qla3xxx.c | 2289 mac_iocb_ptr->ip_hdr_len = ip->ihl; in ql_hw_csum_setup()
|
/linux-4.1.27/drivers/net/bonding/ |
D | bond_main.c | 3108 noff += iph->ihl << 2; in bond_flow_dissect()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 6629 if (tcp_opt_len || (iph->ihl > 5)) { in bnx2_start_xmit() 6630 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.1.27/drivers/s390/net/ |
D | qeth_l3_main.c | 2910 hdr->ext.dg_hdr_len = (__u16)(iph->ihl*4 + tcph->doff*4); in qeth_tso_fill_header()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.c | 3649 outerip_len = iph->ihl << 1; in bnx2x_update_pbds_gso_enc()
|
/linux-4.1.27/drivers/net/ethernet/neterion/vxge/ |
D | vxge-main.c | 642 ip->ihl*4); in vxge_get_vpath_no()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/ |
D | qlge_main.c | 2615 len = (ntohs(iph->tot_len) - (iph->ihl << 2)); in ql_hw_csum_setup()
|
/linux-4.1.27/security/selinux/ |
D | hooks.c | 3750 ihlen = ih->ihl * 4; in selinux_parse_skb_ipv4()
|
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 5500 udp = (struct udphdr *)((u8 *)ip + (ip->ihl << 2)); in e1000_transfer_dhcp_info()
|