Searched refs:iphdr (Results 1 - 200 of 250) sorted by relevance

12

/linux-4.4.14/include/linux/
H A Dip.h23 static inline struct iphdr *ip_hdr(const struct sk_buff *skb) ip_hdr()
25 return (struct iphdr *)skb_network_header(skb); ip_hdr()
28 static inline struct iphdr *inner_ip_hdr(const struct sk_buff *skb) inner_ip_hdr()
30 return (struct iphdr *)skb_inner_network_header(skb); inner_ip_hdr()
33 static inline struct iphdr *ipip_hdr(const struct sk_buff *skb) ipip_hdr()
35 return (struct iphdr *)skb_transport_header(skb); ipip_hdr()
H A Dptp_classify.h58 #define IPV4_HLEN(data) (((struct iphdr *)(data + OFF_IHL))->ihl << 2)
H A Dinet_lro.h51 struct iphdr *iph;
/linux-4.4.14/samples/bpf/
H A Dtcbpf1_kern.c19 #define IP_CSUM_OFF (ETH_HLEN + offsetof(struct iphdr, check))
20 #define TOS_OFF (ETH_HLEN + offsetof(struct iphdr, tos))
30 #define TCP_CSUM_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, check))
31 #define IP_SRC_OFF (ETH_HLEN + offsetof(struct iphdr, saddr))
44 #define TCP_DPORT_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, dest)) set_tcp_dest_port()
56 __u8 proto = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); bpf_prog1()
H A Dsockex1_kern.c17 int index = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); bpf_prog1()
H A Dsockex2_kern.c47 return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) ip_is_fragment()
69 *ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol)); parse_ip()
72 flow->src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); parse_ip()
73 flow->dst = load_word(skb, nhoff + offsetof(struct iphdr, daddr)); parse_ip()
76 verlen = load_byte(skb, nhoff + 0/*offsetof(struct iphdr, ihl)*/); parse_ip()
H A Dsock_example.c5 * r0 = skb->data[ETH_HLEN + offsetof(struct iphdr, protocol)];
45 BPF_LD_ABS(BPF_B, ETH_HLEN + offsetof(struct iphdr, protocol) /* R0 = ip->proto */), test_sock()
H A Dsockex3_kern.c76 return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) ip_is_fragment()
202 ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol)); PARSE_IP()
205 g->flow.src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); PARSE_IP()
206 g->flow.dst = load_word(skb, nhoff + offsetof(struct iphdr, daddr)); PARSE_IP()
209 verlen = load_byte(skb, nhoff + 0/*offsetof(struct iphdr, ihl)*/); PARSE_IP()
/linux-4.4.14/include/net/netfilter/
H A Dnf_tables_ipv4.h12 struct iphdr *ip; nft_set_pktinfo_ipv4()
H A Dnf_queue.h46 const struct iphdr *iph = ip_hdr(skb); hash_v4()
/linux-4.4.14/net/ipv4/netfilter/
H A Dnf_reject_ipv4.c45 struct iphdr *nf_reject_iphdr_put(struct sk_buff *nskb, nf_reject_iphdr_put()
49 struct iphdr *niph, *oiph = ip_hdr(oldskb); nf_reject_iphdr_put()
52 niph = (struct iphdr *)skb_put(nskb, sizeof(struct iphdr)); nf_reject_iphdr_put()
54 niph->ihl = sizeof(struct iphdr) / 4; nf_reject_iphdr_put()
73 struct iphdr *niph = ip_hdr(nskb); nf_reject_ip_tcphdr_put()
105 const struct iphdr *oiph; nf_send_reset()
106 struct iphdr *niph; nf_send_reset()
119 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) + nf_send_reset()
171 struct iphdr *iph = ip_hdr(skb_in); nf_send_unreach()
H A Dnft_chain_route_ipv4.c33 const struct iphdr *iph; nf_route_table_hook()
36 if (skb->len < sizeof(struct iphdr) || nf_route_table_hook()
37 ip_hdrlen(skb) < sizeof(struct iphdr)) nf_route_table_hook()
H A Dnf_log_ipv4.c42 struct iphdr _iph; dump_ipv4_packet()
43 const struct iphdr *ih; dump_ipv4_packet()
80 ih->ihl * 4 > sizeof(struct iphdr)) { dump_ipv4_packet()
82 unsigned char _opt[4 * 15 - sizeof(struct iphdr)]; dump_ipv4_packet()
85 optsize = ih->ihl * 4 - sizeof(struct iphdr); dump_ipv4_packet()
120 = 8 + sizeof(struct iphdr), dump_ipv4_packet()
122 = 8 + sizeof(struct iphdr), dump_ipv4_packet()
124 = 8 + sizeof(struct iphdr), dump_ipv4_packet()
127 = 8 + sizeof(struct iphdr), dump_ipv4_packet()
129 = 8 + sizeof(struct iphdr), dump_ipv4_packet()
H A Diptable_raw.c27 (skb->len < sizeof(struct iphdr) || iptable_raw_hook()
28 ip_hdrlen(skb) < sizeof(struct iphdr))) iptable_raw_hook()
H A Diptable_mangle.c43 const struct iphdr *iph; ipt_mangle_out()
50 if (skb->len < sizeof(struct iphdr) || ipt_mangle_out()
51 ip_hdrlen(skb) < sizeof(struct iphdr)) ipt_mangle_out()
H A Diptable_filter.c40 (skb->len < sizeof(struct iphdr) || iptable_filter_hook()
41 ip_hdrlen(skb) < sizeof(struct iphdr))) iptable_filter_hook()
H A Diptable_security.c44 (skb->len < sizeof(struct iphdr) || iptable_security_hook()
45 ip_hdrlen(skb) < sizeof(struct iphdr))) iptable_security_hook()
H A Dnf_tables_ipv4.c36 if (unlikely(skb->len < sizeof(struct iphdr) || nft_ipv4_output()
37 ip_hdr(skb)->ihl < sizeof(struct iphdr) / 4)) { nft_ipv4_output()
H A Dnf_nat_l3proto_ipv4.c84 struct iphdr *iph; nf_nat_ipv4_manip_pkt()
113 struct iphdr *iph = (struct iphdr *)(skb->data + iphdroff); nf_nat_ipv4_csum_update()
130 const struct iphdr *iph = ip_hdr(skb); nf_nat_ipv4_csum_recalc()
197 struct iphdr ip; nf_nat_icmp_reply_translation()
383 if (skb->len < sizeof(struct iphdr) || nf_nat_ipv4_out()
384 ip_hdrlen(skb) < sizeof(struct iphdr)) nf_nat_ipv4_out()
423 if (skb->len < sizeof(struct iphdr) || nf_nat_ipv4_local_fn()
424 ip_hdrlen(skb) < sizeof(struct iphdr)) nf_nat_ipv4_local_fn()
H A Dipt_ECN.c31 struct iphdr *iph = ip_hdr(skb); set_ect_ip()
35 if (!skb_make_writable(skb, sizeof(struct iphdr))) set_ect_ip()
H A Dipt_SYNPROXY.c20 static struct iphdr * synproxy_build_ip()
23 struct iphdr *iph; synproxy_build_ip()
26 iph = (struct iphdr *)skb_put(skb, sizeof(*iph)); synproxy_build_ip()
45 struct iphdr *niph, struct tcphdr *nth, synproxy_send_tcp()
79 struct iphdr *iph, *niph; synproxy_send_client_synack()
121 struct iphdr *iph, *niph; synproxy_send_server_syn()
166 struct iphdr *iph, *niph; synproxy_send_server_ack()
204 struct iphdr *iph, *niph; synproxy_send_client_ack()
H A Dnf_dup_ipv4.c29 const struct iphdr *iph = ip_hdr(skb); nf_dup_ipv4_route()
56 struct iphdr *iph; nf_dup_ipv4()
H A Dnf_conntrack_l3proto_ipv4.c39 ap = skb_header_pointer(skb, nhoff + offsetof(struct iphdr, saddr), ipv4_pkt_to_tuple()
69 const struct iphdr *iph; ipv4_get_l4proto()
70 struct iphdr _iph; ipv4_get_l4proto()
158 if (skb->len < sizeof(struct iphdr) || ipv4_conntrack_local()
159 ip_hdrlen(skb) < sizeof(struct iphdr)) ipv4_conntrack_local()
H A Dipt_rpfilter.c75 const struct iphdr *iph; rpfilter_mt()
H A Dnf_nat_snmp_basic.c1184 struct iphdr *iph = ip_hdr(skb); snmp_translate()
1224 const struct iphdr *iph = ip_hdr(skb); help()
H A Dipt_CLUSTERIP.c245 const struct iphdr *iph = ip_hdr(skb); clusterip_hashfn()
H A Dip_tables.c75 ip_packet_match(const struct iphdr *ip, ip_packet_match()
293 const struct iphdr *ip; ipt_do_table()
/linux-4.4.14/include/net/
H A Ddsfield.h15 static inline __u8 ipv4_get_dsfield(const struct iphdr *iph) ipv4_get_dsfield()
27 static inline void ipv4_change_dsfield(struct iphdr *iph,__u8 mask, ipv4_change_dsfield()
H A Dinet_ecn.h74 static inline int IP_ECN_set_ce(struct iphdr *iph) IP_ECN_set_ce()
101 static inline void IP_ECN_clear(struct iphdr *iph) IP_ECN_clear()
106 static inline void ipv4_copy_dscp(unsigned int dscp, struct iphdr *inner) ipv4_copy_dscp()
150 if (skb_network_header(skb) + sizeof(struct iphdr) <= INET_ECN_set_ce()
210 static inline int IP_ECN_decapsulate(const struct iphdr *oiph, IP_ECN_decapsulate()
H A Dip_vs.h81 int hdr_flags, struct ip_vs_iphdr *iphdr) ip_vs_fill_iph_skb_off()
83 iphdr->hdr_flags = hdr_flags; ip_vs_fill_iph_skb_off()
84 iphdr->off = offset; ip_vs_fill_iph_skb_off()
94 iphdr->saddr.in6 = iph->saddr; ip_vs_fill_iph_skb_off()
95 iphdr->daddr.in6 = iph->daddr; ip_vs_fill_iph_skb_off()
97 iphdr->len = offset; ip_vs_fill_iph_skb_off()
98 iphdr->flags = 0; ip_vs_fill_iph_skb_off()
99 iphdr->protocol = ipv6_find_hdr(skb, &iphdr->len, -1, ip_vs_fill_iph_skb_off()
100 &iphdr->fragoffs, ip_vs_fill_iph_skb_off()
101 &iphdr->flags); ip_vs_fill_iph_skb_off()
102 if (iphdr->protocol < 0) ip_vs_fill_iph_skb_off()
107 struct iphdr _iph; ip_vs_fill_iph_skb_off()
108 const struct iphdr *iph = skb_header_pointer( ip_vs_fill_iph_skb_off()
113 iphdr->len = offset + iph->ihl * 4; ip_vs_fill_iph_skb_off()
114 iphdr->fragoffs = 0; ip_vs_fill_iph_skb_off()
115 iphdr->protocol = iph->protocol; ip_vs_fill_iph_skb_off()
116 iphdr->saddr.ip = iph->saddr; ip_vs_fill_iph_skb_off()
117 iphdr->daddr.ip = iph->daddr; ip_vs_fill_iph_skb_off()
125 bool inverse, struct ip_vs_iphdr *iphdr) ip_vs_fill_iph_skb_icmp()
132 return ip_vs_fill_iph_skb_off(af, skb, offset, hdr_flags, iphdr); ip_vs_fill_iph_skb_icmp()
137 struct ip_vs_iphdr *iphdr) ip_vs_fill_iph_skb()
145 hdr_flags, iphdr); ip_vs_fill_iph_skb()
416 struct iphdr;
788 const struct iphdr *iph, int inverse);
792 const struct iphdr *iph, int inverse);
80 ip_vs_fill_iph_skb_off(int af, const struct sk_buff *skb, int offset, int hdr_flags, struct ip_vs_iphdr *iphdr) ip_vs_fill_iph_skb_off() argument
124 ip_vs_fill_iph_skb_icmp(int af, const struct sk_buff *skb, int offset, bool inverse, struct ip_vs_iphdr *iphdr) ip_vs_fill_iph_skb_icmp() argument
136 ip_vs_fill_iph_skb(int af, const struct sk_buff *skb, bool inverse, struct ip_vs_iphdr *iphdr) ip_vs_fill_iph_skb() argument
H A Dip.h114 void ip_send_check(struct iphdr *ip);
261 static inline bool ip_is_fragment(const struct iphdr *iph) ip_is_fragment()
272 int ip_decrease_ttl(struct iphdr *iph) ip_decrease_ttl()
334 void __ip_select_ident(struct net *net, struct iphdr *iph, int segs);
339 struct iphdr *iph = ip_hdr(skb); ip_select_ident_segs()
375 const struct iphdr *iph) iph_to_flow_copy_v4addrs()
386 const struct iphdr *iph = skb_gro_network_header(skb); inet_gro_compute_pseudo()
H A Dip_tunnels.h229 const struct iphdr *tnl_params, const u8 protocol);
256 static inline u8 ip_tunnel_get_dsfield(const struct iphdr *iph, ip_tunnel_get_dsfield()
268 static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph, ip_tunnel_ecn_encap()
H A Ddst_metadata.h119 const struct iphdr *iph = ip_hdr(skb); ip_tun_rx_dst()
H A Dslhc_vj.h131 struct iphdr cs_ip; /* ip/tcp hdr from most recent packet */
H A Dinet_hashtables.h335 const struct iphdr *iph = ip_hdr(skb); __inet_lookup_skb()
H A Dtcp.h480 int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th,
525 u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th,
/linux-4.4.14/include/net/netfilter/ipv4/
H A Dnf_reject.h13 struct iphdr *nf_reject_iphdr_put(struct sk_buff *nskb,
/linux-4.4.14/net/ipv4/
H A Dxfrm4_mode_tunnel.c20 struct iphdr *inner_iph = ipip_hdr(skb); ipip_ecn_decapsulate()
33 struct iphdr *top_iph; xfrm4_mode_tunnel_output()
38 offsetof(struct iphdr, protocol); xfrm4_mode_tunnel_output()
78 if (!pskb_may_pull(skb, sizeof(struct iphdr))) xfrm4_mode_tunnel_input()
H A Dxfrm4_mode_beet.c22 struct iphdr *iph = ip_hdr(skb); xfrm4_beet_make_header()
42 struct iphdr *top_iph; xfrm4_beet_output()
55 offsetof(struct iphdr, protocol); xfrm4_beet_output()
75 top_iph->ihl = sizeof(struct iphdr) / 4; xfrm4_beet_output()
86 struct iphdr *iph; xfrm4_beet_input()
H A Dinet_lro.c55 static int lro_tcp_ip_check(const struct iphdr *iph, const struct tcphdr *tcph, lro_tcp_ip_check()
105 struct iphdr *iph = lro_desc->iph; lro_update_tcp_ip_header()
130 static __wsum lro_tcp_data_csum(struct iphdr *iph, struct tcphdr *tcph, int len) lro_tcp_data_csum()
148 struct iphdr *iph, struct tcphdr *tcph) lro_init_desc()
185 static void lro_add_common(struct net_lro_desc *lro_desc, struct iphdr *iph, lro_add_common()
215 struct iphdr *iph, struct tcphdr *tcph) lro_add_packet()
235 struct iphdr *iph, lro_check_tcp_conn()
248 struct iphdr *iph, lro_get_desc()
298 struct iphdr *iph; __lro_proc_skb()
H A Dxfrm4_mode_transport.c23 struct iphdr *iph = ip_hdr(skb); xfrm4_transport_output()
28 offsetof(struct iphdr, protocol); xfrm4_transport_output()
H A Dnetfilter.c22 const struct iphdr *iph = ip_hdr(skb); ip_route_me_harder()
97 const struct iphdr *iph = ip_hdr(skb); nf_ip_saveroute()
112 const struct iphdr *iph = ip_hdr(skb); nf_ip_reroute()
126 const struct iphdr *iph = ip_hdr(skb); nf_ip_checksum()
158 const struct iphdr *iph = ip_hdr(skb); nf_ip_checksum_partial()
H A Dah4.c78 static int ip_clear_mutable_options(const struct iphdr *iph, __be32 *daddr) ip_clear_mutable_options()
81 int l = iph->ihl*4 - sizeof(struct iphdr); ip_clear_mutable_options()
121 struct iphdr *iph; ah_output_done()
125 struct iphdr *top_iph = ip_hdr(skb); ah_output_done()
138 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); ah_output_done()
155 struct iphdr *iph, *top_iph; ah_output()
198 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); ah_output()
252 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); ah_output()
265 struct iphdr *work_iph; ah_input_done()
308 struct iphdr *iph, *work_iph; ah_input()
436 const struct iphdr *iph = (const struct iphdr *)skb->data; ah4_err()
517 x->props.header_len += sizeof(struct iphdr); ah_init_state()
H A Dip_options.c49 memcpy(iph+sizeof(struct iphdr), opt->__data, opt->optlen); ip_options_build()
108 dopt->rr = dopt->optlen + sizeof(struct iphdr); __ip_options_echo()
122 dopt->ts = dopt->optlen + sizeof(struct iphdr); __ip_options_echo()
186 dopt->srr = dopt->optlen + sizeof(struct iphdr); __ip_options_echo()
193 dopt->cipso = dopt->optlen+sizeof(struct iphdr); __ip_options_echo()
213 unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); ip_options_fragment()
272 iph = optptr - sizeof(struct iphdr); ip_options_compile()
489 unsigned char *optptr = opt->__data+opt->srr-sizeof(struct iphdr); ip_options_undo()
494 unsigned char *optptr = opt->__data+opt->rr-sizeof(struct iphdr); ip_options_undo()
499 unsigned char *optptr = opt->__data+opt->ts-sizeof(struct iphdr); ip_options_undo()
612 struct iphdr *iph = ip_hdr(skb); ip_options_rcv_srr()
H A Dgre_demux.c94 const struct iphdr *iph = (const struct iphdr *)skb->data; gre_err()
H A Dip_vti.c57 const struct iphdr *iph = ip_hdr(skb); vti_input()
81 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct iphdr, daddr); vti_rcv()
255 const struct iphdr *iph = (const struct iphdr *)skb->data; vti4_err()
363 struct iphdr *iph = &tunnel->parms.iph; vti_tunnel_init()
368 dev->hard_header_len = LL_MAX_HEADER + sizeof(struct iphdr); vti_tunnel_init()
381 struct iphdr *iph = &tunnel->parms.iph; vti_fb_tunnel_init()
524 [IFLA_VTI_LOCAL] = { .len = FIELD_SIZEOF(struct iphdr, saddr) },
525 [IFLA_VTI_REMOTE] = { .len = FIELD_SIZEOF(struct iphdr, daddr) },
H A Dipcomp.c30 const struct iphdr *iph = (const struct iphdr *)skb->data; ipcomp4_err()
131 x->props.header_len += sizeof(struct iphdr); ipcomp4_init_state()
H A Dxfrm4_input.c29 const struct iphdr *iph = ip_hdr(skb); xfrm4_rcv_encap_finish()
43 struct iphdr *iph = ip_hdr(skb); xfrm4_transport_finish()
73 struct iphdr *iph; xfrm4_udp_encap_rcv()
H A Dip_gre.c265 const struct iphdr *iph; ipgre_err()
304 iph = (const struct iphdr *)(icmp_hdr(skb) + 1); ipgre_err()
389 const struct iphdr *iph; ipgre_rcv()
483 const struct iphdr *tnl_params, __gre_xmit()
547 + tunnel_hlen + sizeof(struct iphdr); gre_fb_xmit()
605 const struct iphdr *tnl_params; ipgre_xmit()
615 (tunnel->hlen + sizeof(struct iphdr)))) ipgre_xmit()
618 tnl_params = (const struct iphdr *)skb->data; ipgre_xmit()
623 skb_pull(skb, tunnel->hlen + sizeof(struct iphdr)); ipgre_xmit()
734 struct iphdr *iph; ipgre_header()
737 iph = (struct iphdr *)skb_push(skb, t->hlen + sizeof(*iph)); ipgre_header()
742 memcpy(iph, &t->parms.iph, sizeof(struct iphdr)); ipgre_header()
757 const struct iphdr *iph = (const struct iphdr *) skb_mac_header(skb); ipgre_header_parse()
845 t_hlen = tunnel->hlen + sizeof(struct iphdr); __gre_tunnel_init()
867 struct iphdr *iph = &tunnel->parms.iph; ipgre_tunnel_init()
1186 [IFLA_GRE_LOCAL] = { .len = FIELD_SIZEOF(struct iphdr, saddr) },
1187 [IFLA_GRE_REMOTE] = { .len = FIELD_SIZEOF(struct iphdr, daddr) },
H A Dxfrm4_state.c59 const struct iphdr *iph = ip_hdr(skb); xfrm4_extract_header()
H A Dicmp.c448 const struct iphdr *iph = ip_hdr(skb); icmp_multipath_hash_skb()
462 const struct iphdr *iph, icmp_route_lookup()
570 struct iphdr *iph; icmp_send()
717 room -= sizeof(struct iphdr) + icmp_param->replyopts.opt.opt.optlen; icmp_send()
739 const struct iphdr *iph = (const struct iphdr *) skb->data; icmp_socket_deliver()
775 const struct iphdr *iph; icmp_unreach()
788 if (!pskb_may_pull(skb, sizeof(struct iphdr))) icmp_unreach()
792 iph = (const struct iphdr *)skb->data; icmp_unreach()
879 if (skb->len < sizeof(struct iphdr)) { icmp_redirect()
884 if (!pskb_may_pull(skb, sizeof(struct iphdr))) { icmp_redirect()
990 if (!pskb_may_pull(skb, sizeof(*icmph) + sizeof(struct iphdr))) icmp_rcv()
1066 struct iphdr *iph = (struct iphdr *)skb->data; icmp_err()
H A Dipmr.c489 dev->mtu = ETH_DATA_LEN - sizeof(struct iphdr) - 8; reg_vif_setup()
631 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct iphdr)); ipmr_destroy_unres()
915 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct iphdr)); ipmr_cache_resolve()
955 skb = skb_realloc_headroom(pkt, sizeof(struct iphdr)); ipmr_cache_report()
970 skb_push(skb, sizeof(struct iphdr)); ipmr_cache_report()
974 memcpy(msg, skb_network_header(pkt), sizeof(struct iphdr)); ipmr_cache_report()
978 ip_hdr(skb)->ihl = sizeof(struct iphdr) >> 2; ipmr_cache_report()
980 sizeof(struct iphdr)); ipmr_cache_report()
1035 const struct iphdr *iph = ip_hdr(skb); ipmr_cache_unresolved()
1650 struct iphdr *iph; ip_encap()
1651 const struct iphdr *old_iph = ip_hdr(skb); ip_encap()
1653 skb_push(skb, sizeof(struct iphdr)); ip_encap()
1695 const struct iphdr *iph = ip_hdr(skb); ipmr_queue_xmit()
1724 encap = sizeof(struct iphdr); ipmr_queue_xmit()
1926 struct iphdr *iph = ip_hdr(skb); ipmr_rt_fib_lookup()
2051 struct iphdr *encap; __pim_rcv()
2053 encap = (struct iphdr *)(skb_transport_header(skb) + pimlen); __pim_rcv()
2098 if (!pskb_may_pull(skb, sizeof(*pim) + sizeof(struct iphdr))) pim_rcv_v1()
2125 if (!pskb_may_pull(skb, sizeof(*pim) + sizeof(struct iphdr))) pim_rcv()
2213 struct iphdr *iph; ipmr_get_route()
2238 skb_push(skb2, sizeof(struct iphdr)); ipmr_get_route()
2241 iph->ihl = sizeof(struct iphdr) >> 2; ipmr_get_route()
H A Dxfrm4_output.c109 struct iphdr *hdr; xfrm4_local_error()
H A Dxfrm4_tunnel.c34 x->props.header_len = sizeof(struct iphdr); ipip_init_state()
H A Dip_input.c265 const struct iphdr *iph; ip_rcv_options()
282 opt->optlen = iph->ihl*4 - sizeof(struct iphdr); ip_rcv_options()
316 const struct iphdr *iph = ip_hdr(skb); ip_rcv_finish()
377 const struct iphdr *iph; ip_rcv()
397 if (!pskb_may_pull(skb, sizeof(struct iphdr))) ip_rcv()
H A Dip_tunnel.c366 const struct iphdr *iph; ip_tunnel_bind_dev()
369 int t_hlen = tunnel->hlen + sizeof(struct iphdr); ip_tunnel_bind_dev()
433 const struct iphdr *iph = ip_hdr(skb); ip_tunnel_rcv()
601 const struct iphdr *inner_iph) tnl_update_pmtu()
609 - sizeof(struct iphdr) - tunnel->hlen; tnl_update_pmtu()
650 const struct iphdr *tnl_params, u8 protocol) ip_tunnel_xmit()
653 const struct iphdr *inner_iph; ip_tunnel_xmit()
663 inner_iph = (const struct iphdr *)skb_inner_network_header(skb); ip_tunnel_xmit()
787 max_headroom = LL_RESERVED_SPACE(rt->dst.dev) + sizeof(struct iphdr) ip_tunnel_xmit()
954 int t_hlen = tunnel->hlen + sizeof(struct iphdr); __ip_tunnel_change_mtu()
1169 struct iphdr *iph = &tunnel->parms.iph; ip_tunnel_init()
H A Dip_output.c92 void ip_send_check(struct iphdr *iph) ip_send_check()
101 struct iphdr *iph = ip_hdr(skb); __ip_local_out()
141 struct iphdr *iph; ip_build_and_send_pkt()
144 skb_push(skb, sizeof(struct iphdr) + (opt ? opt->opt.optlen : 0)); ip_build_and_send_pkt()
371 static void ip_copy_addrs(struct iphdr *iph, const struct flowi4 *fl4) ip_copy_addrs()
387 struct iphdr *iph; ip_queue_xmit()
432 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); ip_queue_xmit()
497 struct iphdr *iph = ip_hdr(skb); ip_fragment()
525 struct iphdr *iph; ip_do_fragment()
900 fragheaderlen = sizeof(struct iphdr) + (opt ? opt->optlen : 0); __ip_append_data()
1226 fragheaderlen = sizeof(struct iphdr) + (opt ? opt->optlen : 0); ip_append_page()
1359 struct iphdr *iph; __ip_make_skb()
H A Dip_tunnel_core.c57 struct iphdr *iph; iptunnel_xmit()
67 skb_push(skb, sizeof(struct iphdr)); iptunnel_xmit()
73 iph->ihl = sizeof(struct iphdr) >> 2; iptunnel_xmit()
H A Dipip.c138 const struct iphdr *iph = (const struct iphdr *)skb->data; ipip_err()
191 const struct iphdr *iph; ipip_rcv()
218 const struct iphdr *tiph = &tunnel->parms.iph; ipip_tunnel_xmit()
H A Dtunnel4.c94 if (!pskb_may_pull(skb, sizeof(struct iphdr))) tunnel4_rcv()
H A Droute.c488 void __ip_select_ident(struct net *net, struct iphdr *iph, int segs) __ip_select_ident()
505 const struct iphdr *iph, __build_flow_key()
526 const struct iphdr *iph = ip_hdr(skb); build_skb_flow_key()
772 const struct iphdr *iph = (const struct iphdr *) skb->data; __ip_do_redirect()
789 const struct iphdr *iph = (const struct iphdr *) skb->data; ip_do_redirect()
1008 const struct iphdr *iph = (const struct iphdr *) skb->data; ipv4_update_pmtu()
1027 const struct iphdr *iph = (const struct iphdr *) skb->data; __ipv4_sk_update_pmtu()
1045 const struct iphdr *iph = (const struct iphdr *) skb->data; ipv4_sk_update_pmtu()
1099 const struct iphdr *iph = (const struct iphdr *) skb->data; ipv4_redirect()
1115 const struct iphdr *iph = (const struct iphdr *) skb->data; ipv4_sk_redirect()
1184 struct iphdr *iph; ip_rt_get_source()
1701 const struct iphdr *outer_iph = ip_hdr(skb); ip_multipath_icmp_hash()
1704 struct iphdr _inner_iph; ip_multipath_icmp_hash()
1705 const struct iphdr *inner_iph; ip_multipath_icmp_hash()
2559 skb_reserve(skb, MAX_HEADER + sizeof(struct iphdr)); inet_rtm_getroute()
H A Dtcp_offload.c39 const struct iphdr *iph = ip_hdr(skb); tcp4_gso_segment()
306 const struct iphdr *iph = ip_hdr(skb); tcp4_gro_complete()
H A Desp4.c297 const struct iphdr *iph; esp_input_done2()
499 net_adj = sizeof(struct iphdr); esp4_get_mtu()
515 const struct iphdr *iph = (const struct iphdr *)skb->data; esp4_err()
698 x->props.header_len += sizeof(struct iphdr); esp_init_state()
H A Dip_fragment.c102 struct iphdr *iph;
213 const struct iphdr *iph; ip_expire()
253 static struct ipq *ip_find(struct net *net, struct iphdr *iph, ip_find()
528 struct iphdr *iph; ip_frag_reasm()
688 struct iphdr iph; ip_check_defrag()
H A Draw.c168 static int raw_v4_input(struct sk_buff *skb, const struct iphdr *iph, int hash) raw_v4_input()
270 const struct iphdr *iph = (const struct iphdr *)skb->data; raw_err()
288 const struct iphdr *iph; raw_icmp_error()
296 iph = (const struct iphdr *)skb->data; raw_icmp_error()
304 iph = (const struct iphdr *)skb->data; raw_icmp_error()
345 struct iphdr *iph; raw_send_hdrinc()
H A Dsyncookies.c178 u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th, __cookie_v4_init_sequence()
197 const struct iphdr *iph = ip_hdr(skb); cookie_v4_init_sequence()
207 int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th, __cookie_v4_check()
H A Dip_forward.c81 struct iphdr *iph; /* Our header */ ip_forward()
H A Dxfrm4_protocol.c75 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct iphdr, daddr); xfrm4_rcv_encap()
H A Dudp_offload.c185 struct iphdr *iph; udp4_ufo_fragment()
417 const struct iphdr *iph = ip_hdr(skb); udp4_gro_complete()
H A Daf_inet.c1204 struct iphdr *iph; inet_gso_segment()
1268 iph = (struct iphdr *)(skb_mac_header(skb) + nhoff); inet_gso_segment()
1295 const struct iphdr *iph; inet_gro_receive()
1329 struct iphdr *iph2; inet_gro_receive()
1334 iph2 = (struct iphdr *)(p->data + off); inet_gro_receive()
1400 struct iphdr *iph = (struct iphdr *)(skb->data + nhoff); inet_gro_complete()
H A Dipconfig.c620 struct iphdr iph; /* IP header */
812 struct iphdr *h; ic_bootp_send_if()
840 b->udph.len = htons(sizeof(struct bootp_pkt) - sizeof(struct iphdr)); ic_bootp_send_if()
965 struct iphdr *h; ic_bootp_recv()
981 sizeof(struct iphdr) + ic_bootp_recv()
1006 if (ntohs(h->tot_len) < ntohs(b->udph.len) + sizeof(struct iphdr)) ic_bootp_recv()
1011 sizeof(struct iphdr) - ic_bootp_recv()
H A Dcipso_ipv4.c1590 const struct iphdr *iph = ip_hdr(skb); cipso_v4_optptr()
1595 for (optlen = iph->ihl*4 - sizeof(struct iphdr); optlen > 0; ) { cipso_v4_optptr()
1930 opt->opt.cipso = sizeof(struct iphdr); cipso_v4_sock_setattr()
2006 opt->opt.cipso = sizeof(struct iphdr); cipso_v4_req_setattr()
2045 cipso_off = opt->opt.cipso - sizeof(struct iphdr); cipso_v4_delopt()
2209 sizeof(struct iphdr), cipso_v4_sock_getattr()
2230 struct iphdr *iph; cipso_v4_skbuff_setattr()
2274 opt->cipso = sizeof(struct iphdr); cipso_v4_skbuff_setattr()
2306 struct iphdr *iph; cipso_v4_skbuff_delattr()
H A Dip_sockglue.c135 const struct iphdr *iph = ip_hdr(skb); ip_cmsg_recv_dstaddr()
388 serr->addr_offset = (u8 *)&(((struct iphdr *)(icmp_hdr(skb) + 1))->daddr) - ip_icmp_error()
404 struct iphdr *iph; ip_local_error()
410 skb = alloc_skb(sizeof(struct iphdr), GFP_ATOMIC); ip_local_error()
414 skb_put(skb, sizeof(struct iphdr)); ip_local_error()
H A Dtcp_fastopen.c103 const struct iphdr *iph = ip_hdr(syn); tcp_fastopen_cookie_gen()
H A Dxfrm4_policy.c109 const struct iphdr *iph = ip_hdr(skb); _decode_session4()
H A Dtcp_ipv4.c357 const struct iphdr *iph = (const struct iphdr *)icmp_skb->data; tcp_v4_err()
1086 const struct iphdr *iph = ip_hdr(skb); tcp_v4_md5_hash_skb()
1138 const struct iphdr *iph = ip_hdr(skb); tcp_v4_inbound_md5_hash()
1440 const struct iphdr *iph; tcp_v4_early_demux()
1536 const struct iphdr *iph; tcp_v4_rcv()
1746 .net_header_len = sizeof(struct iphdr),
H A Digmp.c264 #define IGMP_SIZE (sizeof(struct igmphdr)+sizeof(struct iphdr)+4)
329 struct iphdr *pip; igmpv3_newpack()
364 skb_put(skb, sizeof(struct iphdr) + 4); igmpv3_newpack()
367 pip->ihl = (sizeof(struct iphdr)+4)>>2; igmpv3_newpack()
381 skb->transport_header = skb->network_header + sizeof(struct iphdr) + 4; igmpv3_newpack()
676 struct iphdr *iph; igmp_send_report()
718 skb_put(skb, sizeof(struct iphdr) + 4); igmp_send_report()
721 iph->ihl = (sizeof(struct iphdr)+4)>>2; igmp_send_report()
1364 const struct iphdr *iph; ip_mc_check_iphdr()
H A Dfou.c53 struct iphdr *iph = ip_hdr(skb); fou_recv_pull()
H A Dudp.c580 const struct iphdr *iph = ip_hdr(skb); __udp4_lib_lookup_skb()
628 const struct iphdr *iph = (const struct iphdr *)skb->data; __udp4_lib_err()
1972 const struct iphdr *iph; udp_v4_early_demux()
/linux-4.4.14/arch/powerpc/platforms/ps3/
H A Dgelic_udbg.c70 struct iphdr { struct
92 static __iomem struct iphdr *h_ip;
192 h_ip = (struct iphdr *)(h_vlan + 1); gelic_debug_init()
195 h_ip = (struct iphdr *)(h_eth + 1); gelic_debug_init()
198 header_size += sizeof(struct iphdr); gelic_debug_init()
229 sizeof(struct iphdr); gelic_sendbuf()
/linux-4.4.14/net/netfilter/
H A Dxt_DSCP.c37 if (!skb_make_writable(skb, sizeof(struct iphdr))) dscp_tg()
80 struct iphdr *iph = ip_hdr(skb); tos_tg()
87 if (!skb_make_writable(skb, sizeof(struct iphdr))) tos_tg()
107 if (!skb_make_writable(skb, sizeof(struct iphdr))) tos_tg6()
H A Dnf_conntrack_broadcast.c29 struct iphdr *iph = ip_hdr(skb); nf_conntrack_broadcast_help()
H A Dxt_AUDIT.c76 struct iphdr _iph; audit_ip4()
77 const struct iphdr *ih; audit_ip4()
H A Dxt_HL.c31 struct iphdr *iph; ttl_tg()
H A Dxt_TCPOPTSTRIP.c95 sizeof(struct iphdr) + sizeof(struct tcphdr)); tcpoptstrip_tg4()
H A Dxt_iprange.c23 const struct iphdr *iph = ip_hdr(skb); iprange_mt4()
H A Dxt_HMARK.c258 struct iphdr *ip, _ip; hmark_pkt_set_htuple_ipv4()
261 ip = (struct iphdr *) (skb->data + nhoff); hmark_pkt_set_htuple_ipv4()
H A Dxt_addrtype.c130 const struct iphdr *iph = ip_hdr(skb); addrtype_mt_v0()
148 const struct iphdr *iph; addrtype_mt_v1()
H A Dnf_tables_netdev.c23 struct iphdr *iph, _iph; nft_netdev_set_pktinfo_ipv4()
H A Dxt_osf.c160 const struct iphdr *ip = ip_hdr(skb); xt_osf_ttl()
192 const struct iphdr *ip = ip_hdr(skb); xt_osf_match_packet()
H A Dxt_socket.c47 struct iphdr *inside_iph, _inside_iph; extract_icmp4_fields()
150 const struct iphdr *iph = ip_hdr(skb); xt_socket_lookup_slow_v4()
H A Dnf_conntrack_irc.c110 const struct iphdr *iph; help()
H A Dxt_TCPMSS.c206 struct iphdr *iph = ip_hdr(skb); tcpmss_tg4()
H A Dxt_TPROXY.c256 const struct iphdr *iph = ip_hdr(skb); tproxy_handle_time_wait4()
296 const struct iphdr *iph = ip_hdr(skb); tproxy_tg4()
H A Dxt_connlimit.c344 const struct iphdr *iph = ip_hdr(skb); connlimit_mt()
H A Dxt_l2tp.c175 struct iphdr *iph = ip_hdr(skb); l2tp_mt4()
H A Dxt_recent.c250 const struct iphdr *iph = ip_hdr(skb); recent_mt()
/linux-4.4.14/net/bridge/netfilter/
H A Debt_among.c73 const struct iphdr *ih; get_ip_dst()
74 struct iphdr _iph; get_ip_dst()
104 const struct iphdr *ih; get_ip_src()
105 struct iphdr _iph; get_ip_src()
H A Debt_ip.c31 const struct iphdr *ih; ebt_ip_mt()
32 struct iphdr _iph; ebt_ip_mt()
H A Dnf_tables_bridge.c24 struct iphdr *iph; nft_bridge_iphdr_validate()
27 if (!pskb_may_pull(skb, sizeof(struct iphdr))) nft_bridge_iphdr_validate()
H A Dnft_reject_bridge.c48 struct iphdr *niph; nft_reject_br_send_v4_tcp_reset()
59 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) + nft_reject_br_send_v4_tcp_reset()
82 struct iphdr *niph; nft_reject_br_send_v4_unreach()
115 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct icmphdr) + nft_reject_br_send_v4_unreach()
227 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct icmp6hdr) + nft_reject_br_send_v6_unreach()
H A Debt_log.c100 const struct iphdr *ih; ebt_log_packet()
101 struct iphdr _iph; ebt_log_packet()
/linux-4.4.14/net/ipv6/netfilter/
H A Dip6table_mangle.c44 if (skb->len < sizeof(struct iphdr) || ip6t_mangle_out()
45 ip_hdrlen(skb) < sizeof(struct iphdr)) { ip6t_mangle_out()
H A Dnf_log_ipv6.c334 const struct iphdr *iph = dump_ipv6_mac_header()
335 (struct iphdr *)skb_mac_header(skb); dump_ipv6_mac_header()
/linux-4.4.14/include/uapi/linux/
H A Dif_tunnel.h37 struct iphdr iph;
H A Dip.h85 struct iphdr { struct
/linux-4.4.14/net/core/
H A Dtso.c24 struct iphdr *iph = (void *)(hdr + mac_hdr_len); tso_build_hdr()
H A Dflow_dissector.c171 const struct iphdr *iph; htons()
172 struct iphdr _iph; htons()
H A Dnetpoll.c55 sizeof(struct iphdr) + \
383 struct iphdr *iph; netpoll_send_udp()
H A Dpktgen.c2193 pkt_dev->min_pkt_size = 14 + sizeof(struct iphdr) pktgen_setup_inject()
2646 struct iphdr *iph; process_ipsec()
2804 struct iphdr *iph; fill_packet_ipv4()
2861 iph = (struct iphdr *) skb_put(skb, sizeof(struct iphdr)); fill_packet_ipv4()
/linux-4.4.14/net/ipv6/
H A Dsit.c441 isatap_chksrc(struct sk_buff *skb, const struct iphdr *iph, struct ip_tunnel *t) isatap_chksrc()
487 int ihl = ((const struct iphdr *)skb->data)->ihl*4; ipip6_err_gen_icmpv6_unreach()
520 const struct iphdr *iph = (const struct iphdr *)skb->data; ipip6_err()
630 const struct iphdr *iph, packet_is_spoofed()
668 const struct iphdr *iph = ip_hdr(skb); ipip6_rcv()
730 const struct iphdr *iph; ipip_rcv()
810 const struct iphdr *tiph = &tunnel->parms.iph; ipip6_tunnel_xmit()
825 int t_hlen = tunnel->hlen + sizeof(struct iphdr); ipip6_tunnel_xmit()
1004 const struct iphdr *tiph = &tunnel->parms.iph; ipip_tunnel_xmit()
1046 const struct iphdr *iph; ipip6_tunnel_bind_dev()
1072 int t_hlen = tunnel->hlen + sizeof(struct iphdr); ipip6_tunnel_bind_dev()
1074 dev->hard_header_len = tdev->hard_header_len + sizeof(struct iphdr); ipip6_tunnel_bind_dev()
1323 int t_hlen = tunnel->hlen + sizeof(struct iphdr); ipip6_tunnel_change_mtu()
1359 int t_hlen = tunnel->hlen + sizeof(struct iphdr); ipip6_tunnel_setup()
1400 struct iphdr *iph = &tunnel->parms.iph; ipip6_fb_tunnel_init()
H A Dtunnel6.c123 if (!pskb_may_pull(skb, sizeof(struct iphdr))) tunnel46_rcv()
H A Dip6_tunnel.c636 const struct iphdr *eiph; ip4ip6_err()
668 if (!pskb_may_pull(skb, offset + sizeof(struct iphdr))) ip4ip6_err()
1175 const struct iphdr *iph = ip_hdr(skb); ip4ip6_tnl_xmit()
H A Desp6.c646 (sizeof(struct ipv6hdr) - sizeof(struct iphdr)); esp6_init_state()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rx.c100 struct iphdr *ipv4 = (struct iphdr *)(skb->data + ETH_HLEN); mlx5e_lro_update_hdr()
112 sizeof(struct iphdr)); mlx5e_lro_update_hdr()
/linux-4.4.14/net/batman-adv/
H A Dgateway_client.c672 struct iphdr *iphdr; batadv_gw_dhcp_recipient_get() local
701 if (!pskb_may_pull(skb, *header_len + sizeof(*iphdr))) batadv_gw_dhcp_recipient_get()
704 iphdr = (struct iphdr *)(skb->data + *header_len); batadv_gw_dhcp_recipient_get()
705 *header_len += iphdr->ihl * 4; batadv_gw_dhcp_recipient_get()
708 if (iphdr->protocol != IPPROTO_UDP) batadv_gw_dhcp_recipient_get()
H A Dmulticast.c299 struct iphdr *iphdr; batadv_mcast_forw_mode_check_ipv4() local
302 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*iphdr))) batadv_mcast_forw_mode_check_ipv4()
305 iphdr = ip_hdr(skb); batadv_mcast_forw_mode_check_ipv4()
310 if (!ipv4_is_local_multicast(iphdr->daddr)) batadv_mcast_forw_mode_check_ipv4()
H A Dmain.c331 struct iphdr ip_hdr_tmp, *ip_hdr; batadv_skb_set_priority()
/linux-4.4.14/drivers/net/slip/
H A Dslhc.c238 struct iphdr *ip; slhc_compress()
247 if(isize<sizeof(struct iphdr)) slhc_compress()
250 ip = (struct iphdr *) icp; slhc_compress()
492 register struct iphdr *ip; slhc_uncompress()
616 &((struct iphdr *)icp)->check); slhc_uncompress()
672 memcpy(cs->cs_ipopt, icp + sizeof(struct iphdr), (ihl - 5) * 4); slhc_remember()
/linux-4.4.14/drivers/net/ipvlan/
H A Dipvlan_core.c139 struct iphdr *ip4h; htons()
320 struct iphdr *ip4h; ipvlan_addr_lookup()
323 ip4h = (struct iphdr *)lyr3h; ipvlan_addr_lookup()
347 const struct iphdr *ip4h = ip_hdr(skb); ipvlan_process_v4_outbound()
/linux-4.4.14/net/sched/
H A Dem_ipset.c65 if (!pskb_network_may_pull(skb, sizeof(struct iphdr))) em_ipset_match()
H A Dact_csum.c178 const struct iphdr *iph; tcf_csum_ipv4_tcp()
221 const struct iphdr *iph; tcf_csum_ipv4_udp()
324 const struct iphdr *iph; tcf_csum_ipv4()
H A Dact_connmark.c49 if (skb->len < sizeof(struct iphdr)) tcf_connmark()
H A Dact_nat.c91 struct iphdr *iph; tcf_nat()
H A Dsch_dsmark.c204 if (skb_cow_head(skb, sizeof(struct iphdr))) dsmark_enqueue()
H A Dcls_rsvp.h149 struct iphdr *nhptr; rsvp_classify()
/linux-4.4.14/include/uapi/linux/netfilter/
H A Dxt_osf.h83 struct iphdr ip;
/linux-4.4.14/net/l2tp/
H A Dl2tp_ip.c182 struct iphdr *iph = (struct iphdr *) skb_network_header(skb); l2tp_ip_recv()
431 skb = sock_wmalloc(sk, 2 + NET_SKB_PAD + sizeof(struct iphdr) + l2tp_ip_sendmsg()
439 skb_reserve(skb, sizeof(struct iphdr)); l2tp_ip_sendmsg()
H A Dl2tp_ppp.c328 skb = sock_wmalloc(sk, NET_SKB_PAD + sizeof(struct iphdr) + pppol2tp_sendmsg()
338 skb_reserve(skb, sizeof(struct iphdr)); pppol2tp_sendmsg()
413 sizeof(struct iphdr) + /* IP header */ pppol2tp_xmit()
/linux-4.4.14/net/netfilter/ipset/
H A Dip_set_getport.c100 const struct iphdr *iph = ip_hdr(skb); ip_set_get_ip4_port()
/linux-4.4.14/drivers/infiniband/hw/nes/
H A Dnes_mgt.c177 struct iphdr *iph = (struct iphdr *)(cb->data_start + ETH_HLEN); nes_get_seq()
245 struct iphdr *iph; get_fpdu_info()
337 iph = (struct iphdr *)(cb->data_start + ETH_HLEN); get_fpdu_info()
357 iph = (struct iphdr *)(fpdu_info->hdr_vbase + ETH_HLEN); get_fpdu_info()
386 iph = (struct iphdr *)(cb->data_start + ETH_HLEN); get_fpdu_info()
511 struct iphdr *iph; queue_fpdus()
522 iph = (struct iphdr *)skb->data; queue_fpdus()
H A Dnes_cm.c440 struct iphdr *iph; form_cm_frame()
456 iph = (struct iphdr *)buf; form_cm_frame()
1641 cm_node->tcp_cntxt.mss = nesvnic->max_frame_size - sizeof(struct iphdr) - make_cm_node()
2731 struct iphdr *iph; mini_cm_recv_pkt()
2739 if (skb->len < sizeof(struct iphdr) + sizeof(struct tcphdr)) mini_cm_recv_pkt()
2742 iph = (struct iphdr *)skb->data; mini_cm_recv_pkt()
2743 tcph = (struct tcphdr *)(skb->data + sizeof(struct iphdr)); mini_cm_recv_pkt()
H A Dnes_nic.c483 struct iphdr *iph; nes_netdev_start_xmit()
604 iph = (struct iphdr *) nes_netdev_start_xmit()
/linux-4.4.14/drivers/net/
H A Dgeneve.c155 struct iphdr *iph = NULL; geneve_rx()
650 + GENEVE_BASE_HLEN + opt_len + sizeof(struct iphdr); geneve_build_skb()
731 const struct iphdr *iip = ip_hdr(skb); geneve_get_v4_rt()
775 const struct iphdr *iip = ip_hdr(skb); geneve_get_v6_dst()
818 const struct iphdr *iip; /* interior IP header */ geneve_xmit_skb()
906 const struct iphdr *iip; /* interior IP header */ geneve6_xmit_skb()
1101 [IFLA_GENEVE_REMOTE] = { .len = FIELD_SIZEOF(struct iphdr, daddr) },
1200 encap_len += sizeof(struct iphdr); geneve_configure()
H A Dvxlan.c1155 struct iphdr *oip = NULL; vxlan_rcv()
1525 const struct ipv6hdr *iphdr; neigh_reduce() local
1534 iphdr = ipv6_hdr(skb); neigh_reduce()
1535 saddr = &iphdr->saddr; neigh_reduce()
1536 daddr = &iphdr->daddr; neigh_reduce()
1603 struct iphdr *pip; route_shortcircuit()
1605 if (!pskb_may_pull(skb, sizeof(struct iphdr))) route_shortcircuit()
1797 + VXLAN_HLEN + sizeof(struct iphdr) vxlan_xmit_skb()
1925 const struct iphdr *old_iph; vxlan_xmit_one()
2558 [IFLA_VXLAN_GROUP] = { .len = FIELD_SIZEOF(struct iphdr, daddr) },
2561 [IFLA_VXLAN_LOCAL] = { .len = FIELD_SIZEOF(struct iphdr, saddr) },
H A Dvrf.c295 struct iphdr *ip4h = ip_hdr(skb); vrf_process_v4_outbound()
/linux-4.4.14/net/netfilter/ipvs/
H A Dip_vs_core.c734 struct iphdr *iph = ip_hdr(skb); ip_vs_nat_icmp()
738 struct iphdr *ciph = (struct iphdr *)(icmph + 1); ip_vs_nat_icmp()
901 struct iphdr *iph; ip_vs_out_icmp()
903 struct iphdr _ciph, *cih; /* The ip header contained within the ICMP */ ip_vs_out_icmp()
1390 struct iphdr *iph; ip_vs_in_icmp()
1392 struct iphdr _ciph, *cih; /* The ip header contained within the ICMP */ ip_vs_in_icmp()
1530 if (mtu > 68 + sizeof(struct iphdr)) ip_vs_in_icmp()
1531 mtu -= sizeof(struct iphdr); ip_vs_in_icmp()
1926 struct ip_vs_iphdr iphdr; ip_vs_forward_icmp_v6() local
1928 ip_vs_fill_iph_skb(AF_INET6, skb, false, &iphdr); ip_vs_forward_icmp_v6()
1929 if (iphdr.protocol != IPPROTO_ICMPV6) ip_vs_forward_icmp_v6()
1936 return ip_vs_in_icmp_v6(ipvs, skb, &r, state->hook, &iphdr); ip_vs_forward_icmp_v6()
H A Dip_vs_xmit.c332 mtu = dst_mtu(&rt->dst) - sizeof(struct iphdr); __ip_vs_get_out_rt()
629 struct iphdr *iph = ip_hdr(skb); ip_vs_bypass_xmit()
748 if (!skb_make_writable(skb, sizeof(struct iphdr))) ip_vs_nat_xmit()
887 struct iphdr *old_iph = NULL; ip_vs_prepare_tunneled_skb()
987 struct iphdr *iph; /* Our new IP header */ ip_vs_tunnel_xmit()
1012 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct iphdr); ip_vs_tunnel_xmit()
1029 skb_push(skb, sizeof(struct iphdr)); ip_vs_tunnel_xmit()
1038 iph->ihl = sizeof(struct iphdr)>>2; ip_vs_tunnel_xmit()
H A Dip_vs_ftp.c172 struct iphdr *iph; ip_vs_ftp_out()
314 struct iphdr *iph; ip_vs_ftp_in()
H A Dip_vs_proto.c235 struct iphdr _iph, *ih; ip_vs_tcpudp_debug_packet_v4()
/linux-4.4.14/net/dccp/
H A Dipv4.c148 const struct iphdr *iph, dccp_do_pmtu_discovery()
236 const struct iphdr *iph = (struct iphdr *)skb->data; dccp_v4_err()
451 const struct iphdr *iph = ip_hdr(skb); dccp_v4_route_skb()
504 const struct iphdr *rxiph; dccp_v4_ctl_send_reset()
766 const struct iphdr *iph; dccp_v4_rcv()
899 .net_header_len = sizeof(struct iphdr),
H A Dipv6.c945 .net_header_len = sizeof(struct iphdr),
/linux-4.4.14/drivers/staging/rtl8712/
H A Dxmit_linux.c83 struct iphdr ip_hdr; r8712_set_qos()
/linux-4.4.14/drivers/staging/gdm72xx/
H A Dgdm_qos.c258 struct iphdr *iph = (struct iphdr *)((char *)ethh + ETH_HLEN); gdm_qos_send_hci_pkt()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx.c199 struct iphdr *ip; i40e_add_del_fdir_udpv4()
212 ip = (struct iphdr *)(raw_packet + IP_HEADER_OFFSET); i40e_add_del_fdir_udpv4()
214 + sizeof(struct iphdr)); i40e_add_del_fdir_udpv4()
256 struct iphdr *ip; i40e_add_del_fdir_tcpv4()
271 ip = (struct iphdr *)(raw_packet + IP_HEADER_OFFSET); i40e_add_del_fdir_tcpv4()
273 + sizeof(struct iphdr)); i40e_add_del_fdir_tcpv4()
349 struct iphdr *ip; i40e_add_del_fdir_ipv4()
364 ip = (struct iphdr *)(raw_packet + IP_HEADER_OFFSET); i40e_add_del_fdir_ipv4()
1326 struct iphdr *iph; i40e_rx_checksum()
1974 struct iphdr *ipv4; i40e_atr()
2202 struct iphdr *iph; i40e_tso()
2303 struct iphdr *this_ip_hdr; i40e_tx_enable_csum()
2307 struct iphdr *oiph; i40e_tx_enable_csum()
/linux-4.4.14/net/openvswitch/
H A Dactions.c288 static void update_ip_l4_checksum(struct sk_buff *skb, struct iphdr *nh, update_ip_l4_checksum()
314 static void set_ip_addr(struct sk_buff *skb, struct iphdr *nh, set_ip_addr()
378 static void set_ip_ttl(struct sk_buff *skb, struct iphdr *nh, u8 new_ttl, set_ip_ttl()
391 struct iphdr *nh; set_ipv4()
396 sizeof(struct iphdr)); set_ipv4()
H A Dflow.c203 err = check_header(skb, nh_ofs + sizeof(struct iphdr)); check_iphdr()
208 if (unlikely(ip_len < sizeof(struct iphdr) || check_iphdr()
500 struct iphdr *nh; key_extract()
/linux-4.4.14/drivers/staging/rtl8192e/
H A Drtllib_tx.c253 struct iphdr *ip; rtllib_classify()
635 const struct iphdr *ip = (struct iphdr *) rtllib_xmit_inter()
/linux-4.4.14/drivers/staging/gdm724x/
H A Dgdm_lte.c352 struct iphdr *ip; gdm_lte_tx_nic_type()
385 (network_data + sizeof(struct iphdr)); gdm_lte_tx_nic_type()
627 void *addr = buf + sizeof(struct iphdr) + gdm_lte_netif_rx()
/linux-4.4.14/drivers/net/ppp/
H A Dpptp.c188 struct iphdr *iph; pptp_xmit()
268 iph->ihl = sizeof(struct iphdr) >> 2; pptp_xmit()
385 struct iphdr *iph; pptp_rcv()
/linux-4.4.14/Documentation/networking/timestamping/
H A Dtxtimestamp.c285 total_len += sizeof(struct iphdr); do_test()
341 struct iphdr *iph = (void *) buf; do_test()
/linux-4.4.14/drivers/net/hyperv/
H A Dnetvsc_drv.c400 struct iphdr *iphdr = ip_hdr(skb); get_net_transport_info() local
402 if (iphdr->protocol == IPPROTO_TCP) get_net_transport_info()
404 else if (iphdr->protocol == IPPROTO_UDP) get_net_transport_info()
/linux-4.4.14/drivers/crypto/caam/
H A Dpdb.h50 #define PDBOPTS_ESP_DIFFSERV 0x40 /* copy TOS/TC from inner iphdr */
/linux-4.4.14/net/bridge/
H A Dbr_netfilter_hooks.c192 const struct iphdr *iph; br_validate_ipv4()
195 if (!pskb_may_pull(skb, sizeof(struct iphdr))) br_validate_ipv4()
345 struct iphdr *iph = ip_hdr(skb); br_nf_pre_routing_finish()
697 struct iphdr *iph = ip_hdr(skb); br_nf_ip_fragment()
H A Dbr_multicast.c369 struct iphdr *iph; br_ip4_multicast_alloc_query()
1264 const struct iphdr *iph = ip_hdr(skb); br_ip4_multicast_query()
/linux-4.4.14/net/rxrpc/
H A Dar-peer.c82 peer->hdrsize = sizeof(struct iphdr); rxrpc_alloc_peer()
/linux-4.4.14/net/mpls/
H A Daf_mpls.c146 sizeof(struct iphdr))) { mpls_select_multipath()
147 const struct iphdr *v4hdr; mpls_select_multipath()
149 v4hdr = (const struct iphdr *)(mpls_hdr(skb) + mpls_select_multipath()
200 struct iphdr *hdr4 = ip_hdr(skb); mpls_egress()
/linux-4.4.14/drivers/net/usb/
H A Dhso.c174 struct iphdr rx_ip_hdr;
734 odev->rx_buf_missing = sizeof(struct iphdr); hso_net_open()
903 (frame_len < sizeof(struct iphdr))) { packetizeRx()
920 /* Copy what we got so far. make room for iphdr packetizeRx()
924 sizeof(struct iphdr)); packetizeRx()
926 sizeof(struct iphdr)); packetizeRx()
929 odev->rx_buf_size = sizeof(struct iphdr); packetizeRx()
933 frame_len - sizeof(struct iphdr); packetizeRx()
969 odev->rx_buf_missing = sizeof(struct iphdr); packetizeRx()
990 odev->rx_buf_missing = sizeof(struct iphdr); packetizeRx()
H A Dcdc_mbim.c372 if (len < sizeof(struct iphdr)) cdc_mbim_process_dgram()
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/
H A Dos_intfs.c312 struct iphdr *piphdr; rtw_recv_select_queue23a()
321 piphdr = (struct iphdr *)(pdata + ETH_HLEN); rtw_recv_select_queue23a()
/linux-4.4.14/drivers/net/ethernet/sfc/
H A Dselftest.c46 struct iphdr ip;
392 sizeof(struct iphdr)); efx_iterate_state()
H A Drx.c885 const struct iphdr *ip = efx_filter_rfs()
886 (const struct iphdr *)(skb->data + nhoff); efx_filter_rfs()
H A Dtx.c1185 struct iphdr *tsoh_iph = tso_start_new_packet()
1186 (struct iphdr *)(header + st->ip_off); tso_start_new_packet()
/linux-4.4.14/net/atm/
H A Dbr2684.c396 (((struct iphdr *)(skb->data))->daddr & brvcc->filter. packet_fails_filter()
481 struct iphdr *iph; br2684_push()
H A Dmpc.c494 struct iphdr *iph; send_via_shortcut()
507 iph = (struct iphdr *)buff; send_via_shortcut()
588 if (skb->len < ETH_HLEN + sizeof(struct iphdr)) mpc_send_packet()
/linux-4.4.14/security/
H A Dlsm_audit.c46 struct iphdr *ih; ipv4_skb_to_auditdata()
/linux-4.4.14/drivers/staging/wilc1000/
H A Dlinux_wlan.c1367 struct iphdr *ih; mac_xmit()
1399 ih = (struct iphdr *)(skb->data + sizeof(struct ethhdr)); mac_xmit()
1401 pu8UdpBuffer = (char *)ih + sizeof(struct iphdr); mac_xmit()
/linux-4.4.14/drivers/net/ethernet/pasemi/
H A Dpasemi_mac.c260 static int get_skb_hdr(struct sk_buff *skb, void **iphdr, get_skb_hdr() argument
265 struct iphdr *iph; get_skb_hdr()
286 *iphdr = iph; get_skb_hdr()
/linux-4.4.14/drivers/net/ethernet/sgi/
H A Dioc3-eth.c512 struct iphdr *ih; ioc3_tcpudp_checksum()
533 ih = (struct iphdr *) ((char *)eh + ETH_HLEN); ioc3_tcpudp_checksum()
1419 const struct iphdr *ih = ip_hdr(skb); ioc3_start_xmit()
H A Dmeth.c26 #include <linux/ip.h> /* struct iphdr */
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/
H A Di40e_txrx.c800 struct iphdr *iph; i40e_rx_checksum()
1451 struct iphdr *iph; i40e_tso()
1509 struct iphdr *this_ip_hdr; i40e_tx_enable_csum()
1513 struct iphdr *oiph; i40e_tx_enable_csum()
/linux-4.4.14/drivers/net/wireless/ipw2x00/
H A Dlibipw_tx.c226 struct iphdr *ip; libipw_classify()
/linux-4.4.14/drivers/net/ethernet/sun/
H A Dsunvnet.c319 struct iphdr *iph = ip_hdr(skb); vnet_fullcsum()
394 struct iphdr *iph = (struct iphdr *)skb->data; vnet_rx_one()
1095 struct iphdr *iph = ip_hdr(nskb); vnet_skb_shape()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_io.c1267 struct iphdr *iph; qlcnic_process_lro()
1325 iph = (struct iphdr *)skb->data; qlcnic_process_lro()
1789 struct iphdr *iph; qlcnic_83xx_process_lro()
1848 iph = (struct iphdr *)skb->data; qlcnic_83xx_process_lro()
/linux-4.4.14/net/tipc/
H A Dudp_media.c384 b->mtu = dev->mtu - sizeof(struct iphdr) tipc_udp_enable()
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/
H A Dos_intfs.c690 struct iphdr *piphdr; rtw_recv_select_queue()
700 piphdr = (struct iphdr *)(pdata+ETH_HLEN); rtw_recv_select_queue()
/linux-4.4.14/drivers/infiniband/hw/cxgb4/
H A Dcm.c241 sizeof(struct iphdr) : sizeof(struct ipv6hdr)) - set_emss()
624 sizeof(struct iphdr)) + best_mtu()
2353 struct iphdr *ip = (struct iphdr *)((u8 *)(req + 1) + eth_len); get_4tuple()
2453 hdrs = sizeof(struct iphdr) + sizeof(struct tcphdr) + pass_accept_req()
3780 struct iphdr *iph; rx_pkt()
3836 iph = (struct iphdr *)(eh + 1); rx_pkt()
3839 iph = (struct iphdr *)(vlan_eh + 1); rx_pkt()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
H A Den_tx.c918 struct iphdr *ipv4 = (struct iphdr *)skb_inner_network_header(skb); mlx4_en_xmit()
H A Den_rx.c684 struct iphdr *iph) get_fixed_ipv4_csum()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlge/
H A Dqlge_main.c1606 struct iphdr *iph = ql_process_mac_rx_page()
1607 (struct iphdr *)((u8 *)addr + hlen); ql_process_mac_rx_page()
1721 struct iphdr *iph = (struct iphdr *) skb->data; ql_process_mac_rx_skb()
2035 struct iphdr *iph = (struct iphdr *) skb->data; ql_process_mac_split_rx_intr()
2594 struct iphdr *iph = ip_hdr(skb); ql_tso()
2617 struct iphdr *iph = ip_hdr(skb); ql_hw_csum_setup()
/linux-4.4.14/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_main.c193 struct iphdr *iph; xgene_enet_work_msg()
465 struct iphdr *iph = ip_hdr(skb); xgene_enet_skip_csum()
/linux-4.4.14/net/sctp/
H A Dinput.c570 const struct iphdr *iph = (const struct iphdr *)skb->data; sctp_v4_err()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
H A Dd3.c396 struct iphdr ip; iwl_mvm_build_tcp_packet()
400 u16 ip_tot_len = sizeof(struct iphdr) + sizeof(struct tcphdr); iwl_mvm_build_tcp_packet()
502 *pseudo_hdr_csum = pseudo_hdr_check(ip_tot_len - sizeof(struct iphdr), iwl_mvm_build_tcp_packet()
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_tx.c278 struct iphdr *ip; ieee80211_classify()
/linux-4.4.14/drivers/s390/net/
H A Dqeth_l3_main.c1773 struct iphdr *ip_hdr; qeth_l3_rebuild_skb()
1791 ip_hdr = (struct iphdr *)skb->data; qeth_l3_rebuild_skb()
2767 struct iphdr *iph = ip_hdr(skb); qeth_l3_hdr_csum()
2786 struct iphdr *iph = ip_hdr(skb); qeth_tso_fill_header()
/linux-4.4.14/drivers/net/vmxnet3/
H A Dvmxnet3_drv.c850 const struct iphdr *iph = ip_hdr(skb); vmxnet3_parse_and_copy_hdr()
915 struct iphdr *iph = ip_hdr(skb); vmxnet3_prepare_tso()
1192 struct iphdr *ipv4; vmxnet3_get_hdr_len()
1199 if (unlikely(sizeof(struct iphdr) + sizeof(struct tcphdr) > maplen)) vmxnet3_get_hdr_len()
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/
H A Dlio_main.c2642 struct iphdr *iphdr = ip_hdr(skb); get_ipv4_5tuple_tag() local
2644 tag = crc32(0, &iphdr->protocol, 1); get_ipv4_5tuple_tag()
2645 tag = crc32(tag, (u8 *)&iphdr->saddr, 8); get_ipv4_5tuple_tag()
/linux-4.4.14/tools/testing/selftests/net/
H A Dpsock_tpacket.c157 struct iphdr *ip = pay + sizeof(*eth); create_payload()
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_init.c1598 struct iphdr *iph; netxen_process_lro()
1641 iph = (struct iphdr *)(skb->data + vhdr_len); netxen_process_lro()
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/
H A Dhns_enet.c255 (max_size - sizeof(struct iphdr))) hns_nic_get_headlen()
262 if (hlen < sizeof(struct iphdr)) hns_nic_get_headlen()
/linux-4.4.14/drivers/net/ethernet/ibm/
H A Dibmveth.c1182 struct iphdr *iph; ibmveth_poll()
1228 iph = (struct iphdr *)skb->data; ibmveth_poll()
/linux-4.4.14/drivers/net/ethernet/neterion/
H A Ds2io.c4052 struct iphdr *ip; s2io_xmit()
8229 static int check_L2_lro_capable(u8 *buffer, struct iphdr **ip, check_L2_lro_capable()
8258 *ip = (struct iphdr *)(buffer + ip_off); check_L2_lro_capable()
8266 static int check_for_socket_match(struct lro *lro, struct iphdr *ip, check_for_socket_match()
8278 static inline int get_l4_pyld_length(struct iphdr *ip, struct tcphdr *tcp) get_l4_pyld_length()
8284 struct iphdr *ip, struct tcphdr *tcp, initiate_new_session()
8313 struct iphdr *ip = lro->iph; update_L3L4_header()
8340 static void aggregate_new_rx(struct lro *lro, struct iphdr *ip, aggregate_new_rx()
8362 static int verify_l3_l4_lro_capable(struct lro *l_lro, struct iphdr *ip, verify_l3_l4_lro_capable()
8424 struct iphdr *ip; s2io_club_tcp_session()
H A Ds2io.h675 struct iphdr *iph;
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.c847 #define BNXT_IPV4_HDR_SIZE (sizeof(struct iphdr) + sizeof(struct tcphdr))
871 struct iphdr *iph; bnxt_gro_skb()
877 skb_set_transport_header(skb, nw_off + sizeof(struct iphdr)); bnxt_gro_skb()
902 struct iphdr *iph = (struct iphdr *)skb->data; bnxt_gro_skb()
/linux-4.4.14/drivers/staging/rtl8723au/core/
H A Drtw_xmit.c397 struct iphdr *ip_hdr; set_qos()
402 ip_hdr = (struct iphdr *)(pframe + ETH_HLEN); set_qos()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/
H A Dbase.c1326 const struct iphdr *ip; rtl_is_special_data()
1352 ip = (struct iphdr *)((u8 *)skb->data + offset + rtl_is_special_data()
/linux-4.4.14/drivers/net/ethernet/tile/
H A Dtilegx.c1725 struct iphdr *ih; tso_headers_prepare()
1778 ih = (struct iphdr *)(buf + ih_off); tso_headers_prepare()
/linux-4.4.14/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_main.c1372 struct iphdr *iph; atl1e_rx_checksum()
1385 iph = (struct iphdr *) (packet + head_len); atl1e_rx_checksum()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_cmn.c526 hdrs_len += sizeof(struct iphdr); bnx2x_set_gro_params()
706 const struct iphdr *iph = ip_hdr(skb); bnx2x_gro_ip_csum()
709 skb_set_transport_header(skb, sizeof(struct iphdr)); bnx2x_gro_ip_csum()
3709 struct iphdr *iph = ip_hdr(skb); bnx2x_update_pbds_gso_enc()
/linux-4.4.14/net/netlabel/
H A Dnetlabel_kapi.c1009 struct iphdr *hdr4; netlbl_skbuff_setattr()

Completed in 5395 milliseconds

12