Home
last modified time | relevance | path

Searched refs:ihl (Results 1 – 142 of 142) sorted by relevance

/linux-4.1.27/net/sched/
Dact_csum.c100 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 …]
Dact_nat.c97 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 …]
Dcls_rsvp.h167 xprt = ((u8 *)nhptr) + (nhptr->ihl<<2); in rsvp_classify()
/linux-4.1.27/net/ipv4/
Dxfrm4_mode_transport.c24 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()
Dah4.c81 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 …]
Dxfrm4_mode_beet.c24 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()
Dip_input.c281 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()
Dip_fragment.c323 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()
Dxfrm4_state.c61 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()
Desp4.c284 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()
Dip_vti.c268 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()
Daf_inet.c1212 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()
Dxfrm4_input.c132 iphlen = iph->ihl << 2; in xfrm4_udp_encap_rcv()
Dxfrm4_mode_tunnel.c42 top_iph->ihl = 5; in xfrm4_mode_tunnel_output()
Dip_output.c90 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()
Dinet_lro.c39 #define IP_HDR_LEN(iph) (iph->ihl << 2)
65 if (iph->ihl != IPH_LEN_WO_OPTIONS) in lro_tcp_ip_check()
Dicmp.c606 (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()
Dipip.c250 p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF))) in ipip_tunnel_ioctl()
319 parms->iph.ihl = 5; in ipip_netlink_parms()
Dipcomp.c31 struct ip_comp_hdr *ipch = (struct ip_comp_hdr *)(skb->data+(iph->ihl<<2)); in ipcomp4_err()
Dip_tunnel_core.c70 iph->ihl = sizeof(struct iphdr) >> 2; in iptunnel_xmit()
Dipconfig.c815 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()
Dipmr.c376 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()
Dgre_demux.c287 u8 ver = skb->data[(iph->ihl<<2) + 1]&0x7f; in gre_err()
Draw.c271 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()
Dxfrm4_policy.c105 u8 *xprth = skb_network_header(skb) + iph->ihl * 4; in _decode_session4()
Dcipso_ipv4.c1595 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()
Dip_gre.c323 p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF)) || in ipgre_tunnel_ioctl()
Dip_tunnel.c1164 iph->ihl = 5; in ip_tunnel_init()
Digmp.c365 pip->ihl = (sizeof(struct iphdr)+4)>>2; in igmpv3_newpack()
710 iph->ihl = (sizeof(struct iphdr)+4)>>2; in igmp_send_report()
Dtcp_ipv4.c360 struct tcphdr *th = (struct tcphdr *)(icmp_skb->data + (iph->ihl << 2)); in tcp_v4_err()
Dudp.c626 struct udphdr *uh = (struct udphdr *)(skb->data+(iph->ihl<<2)); in __udp4_lib_err()
/linux-4.1.27/drivers/net/slip/
Dslhc.c263 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/
Dnf_log_ipv4.c80 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 …]
Dnf_tables_ipv4.c37 ip_hdr(skb)->ihl < sizeof(struct iphdr) / 4)) { in nft_ipv4_output()
Dnf_conntrack_l3proto_ipv4.c81 *dataoff = nhoff + (iph->ihl << 2); in ipv4_get_l4proto()
88 nhoff, iph->ihl << 2, skb->len); in ipv4_get_l4proto()
Dnf_reject_ipv4.c54 niph->ihl = sizeof(struct iphdr) / 4; in nf_reject_iphdr_put()
Dnf_nat_snmp_basic.c1185 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()
Dnf_nat_l3proto_ipv4.c91 hdroff = iphdroff + iph->ihl * 4; in nf_nat_ipv4_manip_pkt()
Dipt_SYNPROXY.c28 iph->ihl = sizeof(*iph) / 4; in synproxy_build_ip()
Dipt_CLUSTERIP.c255 ports = skb_header_pointer(skb, iph->ihl * 4 + poff, 4, _ports); in clusterip_hashfn()
/linux-4.1.27/arch/x86/um/asm/
Dchecksum.h118 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/
Dchecksum.h62 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/
Dxfrm6_mode_transport.c49 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()
Dxfrm6_mode_beet.c57 ph = (struct ip_beet_phdr *)__skb_pull(skb, XFRM_MODE_SKB_CB(skb)->ihl-hdr_len); in xfrm6_beet_output()
Dsit.c487 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()
Dxfrm6_state.c160 XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph); in xfrm6_extract_header()
Daddrconf.c2515 p.iph.ihl = 5; in addrconf_set_dstaddr()
/linux-4.1.27/arch/frv/include/asm/
Dchecksum.h55 __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/
Dchecksum.h45 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/
Dchecksum.h83 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/
Dchecksum.h79 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/
Dchecksum.h60 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/
Dchecksum.h41 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/
Dchecksum_64.h45 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()
Dchecksum_32.h70 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/
Dchecksum_32.h89 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/
Dchecksum.h41 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/
Dchecksum.h90 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/
Dchecksum.h55 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/
Dnf_tables_bridge.c31 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()
Debt_ip.c58 pptr = skb_header_pointer(skb, ih->ihl*4, in ebt_ip_mt()
Debt_log.c110 print_ports(skb, ih->protocol, ih->ihl*4); in ebt_log_packet()
/linux-4.1.27/arch/mn10300/lib/
Dchecksum.c30 __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/
Dchecksum.h84 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/
Dip.h87 __u8 ihl:4, member
91 ihl:4;
/linux-4.1.27/arch/alpha/lib/
Dchecksum.c147 __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/
Dchecksum.c110 __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/
Dchecksum_32.h121 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()
Dchecksum_64.h80 __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_core.c712 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 …]
Dip_vs_ftp.c206 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()
Dip_vs_proto_sctp.c375 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()
Dip_vs_proto_tcp.c553 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()
Dip_vs_proto.c255 pptr = skb_header_pointer(skb, offset + ih->ihl*4, in ip_vs_tcpudp_debug_packet_v4()
Dip_vs_xmit.c1020 iph->ihl = sizeof(struct iphdr)>>2; in ip_vs_tunnel_xmit()
/linux-4.1.27/arch/mips/include/asm/
Dchecksum.h131 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/
Dptp_classify.h57 #define IPV4_HLEN(data) (((struct iphdr *)(data + OFF_IHL))->ihl << 2)
/linux-4.1.27/arch/ia64/include/asm/
Dchecksum.h13 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
/linux-4.1.27/arch/alpha/include/asm/
Dchecksum.h10 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
/linux-4.1.27/arch/nios2/include/asm/
Dchecksum.h22 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
/linux-4.1.27/include/asm-generic/
Dchecksum.h46 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
/linux-4.1.27/arch/metag/include/asm/
Dchecksum.h55 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
/linux-4.1.27/arch/mn10300/include/asm/
Dchecksum.h20 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
/linux-4.1.27/arch/powerpc/include/asm/
Dchecksum.h20 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
/linux-4.1.27/arch/c6x/lib/
Dcsum_64plus.S159 ;ip_fast_csum(unsigned char *iph, unsigned int ihl)
165 ; len = ihl*4;
184 ; B4: ihl
/linux-4.1.27/net/netfilter/
Dxt_HMARK.c264 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()
Dxt_AUDIT.c93 audit_proto(ab, skb, ih->protocol, ih->ihl * 4); in audit_ip4()
Dxt_TCPMSS.c212 iph->ihl * 4, in tcpmss_tg4()
Dxt_socket.c79 (inside_iph->ihl << 2), in extract_icmp4_fields()
/linux-4.1.27/net/core/
Dflow_dissector.c95 if (!iph || iph->ihl < 5) in __skb_flow_dissect()
97 nhoff += iph->ihl * 4; in __skb_flow_dissect()
Dnetpoll.c458 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); in netpoll_send_udp()
Dpktgen.c2831 iph->ihl = 5; in fill_packet_ipv4()
/linux-4.1.27/net/bridge/
Dbr_netfilter.c223 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()
Dbr_multicast.c381 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/
Dnes_mgt.c178 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()
Dnes_cm.c476 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/
Dipvlan_core.c148 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/
Drx.c894 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()
Dselftest.c374 payload->ip.ihl = 5; in efx_iterate_state()
/linux-4.1.27/Documentation/networking/timestamping/
Dtxtimestamp.c344 iph->ihl = 5; in do_test()
/linux-4.1.27/net/atm/
Dmpc.c539 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/
Dioc3-eth.c543 (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/
Dgdm_qos.c264 tcph = (struct tcphdr *)iph + iph->ihl*4; in gdm_qos_send_hci_pkt()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c1326 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/
Dip_vs.h128 iphdr->len = iph->ihl * 4; in ip_vs_fill_ip4hdr()
159 iphdr->len = iph->ihl * 4; in ip_vs_fill_iph_skb()
Dip.h54 return ip_hdr(skb)->ihl * 4; in ip_hdrlen()
Dxfrm.h657 u8 ihl; member
/linux-4.1.27/net/batman-adv/
Dgateway_client.c710 *header_len += iphdr->ihl * 4; in batadv_gw_dhcp_recipient_get()
/linux-4.1.27/drivers/staging/octeon/
Dethernet-tx.c415 (ip_hdr(skb)->version == 4) && (ip_hdr(skb)->ihl == 5) && in cvm_oct_xmit()
/linux-4.1.27/tools/testing/selftests/net/
Dpsock_tpacket.c171 ip->ihl = 5; in create_payload()
/linux-4.1.27/drivers/net/ppp/
Dpptp.c269 iph->ihl = sizeof(struct iphdr) >> 2; in pptp_xmit()
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_tx.c641 (ip->ihl << 2)); in rtllib_xmit_inter()
/linux-4.1.27/net/sctp/
Dinput.c571 const int ihlen = iph->ihl * 4; in sctp_v4_err()
/linux-4.1.27/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c1642 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/
Dipv4.c239 const u8 offset = iph->ihl << 2; in dccp_v4_err()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dd3.c411 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/
Dniu.c6568 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/
Den_rx.c695 length_for_csum = (be16_to_cpu(iph->tot_len) - (iph->ihl << 2)); in get_fixed_ipv4_csum()
Den_netdev.c323 ports = (const __be16 *)(skb->data + nhoff + 4 * ip->ihl); in mlx4_en_filter_rfs()
/linux-4.1.27/drivers/net/ethernet/tile/
Dtilepro.c1686 unsigned int ih_len = ih->ihl * 4; in tile_net_tx_tso()
/linux-4.1.27/drivers/net/ethernet/
Djme.c978 (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/
Datl1.c2146 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/
Di40e_txrx.c921 (ip_hdr(skb)->ihl * 4); in i40e_rx_checksum()
/linux-4.1.27/drivers/net/ethernet/neterion/
Ds2io.c4058 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/
Dsge.c1808 hdr->ip_hdr_words = ip_hdr(skb)->ihl; in t1_start_xmit()
/linux-4.1.27/drivers/net/wireless/rtlwifi/
Dbase.c1358 (ip->ihl << 2)); in rtl_is_special_data()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c1438 (ip_hdr(skb)->ihl * 4); in i40e_rx_checksum()
/linux-4.1.27/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c1674 tpd->word3 |= (ip_hdr(skb)->ihl & in atl1e_tso_csum()
/linux-4.1.27/drivers/net/ethernet/marvell/
Dmv643xx_eth.c721 ip_hdr(skb)->ihl << TX_IHL_SHIFT; in skb_tx_csum()
Dmvneta.c1410 ip_hdr_len = ip4h->ihl; in mvneta_skb_tx_csum()
Dmvpp2.c4965 ip_hdr_len = ip4h->ihl; in mvpp2_skb_tx_csum()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c1165 V_LSO_IPHDR_WORDS(ip_hdr(skb)->ihl) | in write_tx_pkt_wr()
/linux-4.1.27/drivers/net/ethernet/qlogic/
Dqla3xxx.c2289 mac_iocb_ptr->ip_hdr_len = ip->ihl; in ql_hw_csum_setup()
/linux-4.1.27/drivers/net/bonding/
Dbond_main.c3108 noff += iph->ihl << 2; in bond_flow_dissect()
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dbnx2.c6629 if (tcp_opt_len || (iph->ihl > 5)) { in bnx2_start_xmit()
6630 vlan_tag_flags |= ((iph->ihl - 5) + in bnx2_start_xmit()
Dtg3.c7991 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/
Dqeth_l3_main.c2910 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/
Dbnx2x_cmn.c3649 outerip_len = iph->ihl << 1; in bnx2x_update_pbds_gso_enc()
/linux-4.1.27/drivers/net/ethernet/neterion/vxge/
Dvxge-main.c642 ip->ihl*4); in vxge_get_vpath_no()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/
Dqlge_main.c2615 len = (ntohs(iph->tot_len) - (iph->ihl << 2)); in ql_hw_csum_setup()
/linux-4.1.27/security/selinux/
Dhooks.c3750 ihlen = ih->ihl * 4; in selinux_parse_skb_ipv4()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dnetdev.c5500 udp = (struct udphdr *)((u8 *)ip + (ip->ihl << 2)); in e1000_transfer_dhcp_info()