/linux-4.4.14/include/linux/ |
H A D | ip.h | 23 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 D | ptp_classify.h | 58 #define IPV4_HLEN(data) (((struct iphdr *)(data + OFF_IHL))->ihl << 2)
|
H A D | inet_lro.h | 51 struct iphdr *iph;
|
/linux-4.4.14/samples/bpf/ |
H A D | tcbpf1_kern.c | 19 #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 D | sockex1_kern.c | 17 int index = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); bpf_prog1()
|
H A D | sockex2_kern.c | 47 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 D | sock_example.c | 5 * 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 D | sockex3_kern.c | 76 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 D | nf_tables_ipv4.h | 12 struct iphdr *ip; nft_set_pktinfo_ipv4()
|
H A D | nf_queue.h | 46 const struct iphdr *iph = ip_hdr(skb); hash_v4()
|
/linux-4.4.14/net/ipv4/netfilter/ |
H A D | nf_reject_ipv4.c | 45 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 D | nft_chain_route_ipv4.c | 33 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 D | nf_log_ipv4.c | 42 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 D | iptable_raw.c | 27 (skb->len < sizeof(struct iphdr) || iptable_raw_hook() 28 ip_hdrlen(skb) < sizeof(struct iphdr))) iptable_raw_hook()
|
H A D | iptable_mangle.c | 43 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 D | iptable_filter.c | 40 (skb->len < sizeof(struct iphdr) || iptable_filter_hook() 41 ip_hdrlen(skb) < sizeof(struct iphdr))) iptable_filter_hook()
|
H A D | iptable_security.c | 44 (skb->len < sizeof(struct iphdr) || iptable_security_hook() 45 ip_hdrlen(skb) < sizeof(struct iphdr))) iptable_security_hook()
|
H A D | nf_tables_ipv4.c | 36 if (unlikely(skb->len < sizeof(struct iphdr) || nft_ipv4_output() 37 ip_hdr(skb)->ihl < sizeof(struct iphdr) / 4)) { nft_ipv4_output()
|
H A D | nf_nat_l3proto_ipv4.c | 84 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 D | ipt_ECN.c | 31 struct iphdr *iph = ip_hdr(skb); set_ect_ip() 35 if (!skb_make_writable(skb, sizeof(struct iphdr))) set_ect_ip()
|
H A D | ipt_SYNPROXY.c | 20 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 D | nf_dup_ipv4.c | 29 const struct iphdr *iph = ip_hdr(skb); nf_dup_ipv4_route() 56 struct iphdr *iph; nf_dup_ipv4()
|
H A D | nf_conntrack_l3proto_ipv4.c | 39 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 D | ipt_rpfilter.c | 75 const struct iphdr *iph; rpfilter_mt()
|
H A D | nf_nat_snmp_basic.c | 1184 struct iphdr *iph = ip_hdr(skb); snmp_translate() 1224 const struct iphdr *iph = ip_hdr(skb); help()
|
H A D | ipt_CLUSTERIP.c | 245 const struct iphdr *iph = ip_hdr(skb); clusterip_hashfn()
|
H A D | ip_tables.c | 75 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 D | dsfield.h | 15 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 D | inet_ecn.h | 74 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 D | ip_vs.h | 81 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 D | ip.h | 114 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 D | ip_tunnels.h | 229 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 D | dst_metadata.h | 119 const struct iphdr *iph = ip_hdr(skb); ip_tun_rx_dst()
|
H A D | slhc_vj.h | 131 struct iphdr cs_ip; /* ip/tcp hdr from most recent packet */
|
H A D | inet_hashtables.h | 335 const struct iphdr *iph = ip_hdr(skb); __inet_lookup_skb()
|
H A D | tcp.h | 480 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 D | nf_reject.h | 13 struct iphdr *nf_reject_iphdr_put(struct sk_buff *nskb,
|
/linux-4.4.14/net/ipv4/ |
H A D | xfrm4_mode_tunnel.c | 20 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 D | xfrm4_mode_beet.c | 22 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 D | inet_lro.c | 55 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 D | xfrm4_mode_transport.c | 23 struct iphdr *iph = ip_hdr(skb); xfrm4_transport_output() 28 offsetof(struct iphdr, protocol); xfrm4_transport_output()
|
H A D | netfilter.c | 22 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 D | ah4.c | 78 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 D | ip_options.c | 49 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 D | gre_demux.c | 94 const struct iphdr *iph = (const struct iphdr *)skb->data; gre_err()
|
H A D | ip_vti.c | 57 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 D | ipcomp.c | 30 const struct iphdr *iph = (const struct iphdr *)skb->data; ipcomp4_err() 131 x->props.header_len += sizeof(struct iphdr); ipcomp4_init_state()
|
H A D | xfrm4_input.c | 29 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 D | ip_gre.c | 265 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 D | xfrm4_state.c | 59 const struct iphdr *iph = ip_hdr(skb); xfrm4_extract_header()
|
H A D | icmp.c | 448 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 D | ipmr.c | 489 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 D | xfrm4_output.c | 109 struct iphdr *hdr; xfrm4_local_error()
|
H A D | xfrm4_tunnel.c | 34 x->props.header_len = sizeof(struct iphdr); ipip_init_state()
|
H A D | ip_input.c | 265 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 D | ip_tunnel.c | 366 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 D | ip_output.c | 92 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 D | ip_tunnel_core.c | 57 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 D | ipip.c | 138 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 D | tunnel4.c | 94 if (!pskb_may_pull(skb, sizeof(struct iphdr))) tunnel4_rcv()
|
H A D | route.c | 488 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 D | tcp_offload.c | 39 const struct iphdr *iph = ip_hdr(skb); tcp4_gso_segment() 306 const struct iphdr *iph = ip_hdr(skb); tcp4_gro_complete()
|
H A D | esp4.c | 297 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 D | ip_fragment.c | 102 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 D | raw.c | 168 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 D | syncookies.c | 178 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 D | ip_forward.c | 81 struct iphdr *iph; /* Our header */ ip_forward()
|
H A D | xfrm4_protocol.c | 75 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct iphdr, daddr); xfrm4_rcv_encap()
|
H A D | udp_offload.c | 185 struct iphdr *iph; udp4_ufo_fragment() 417 const struct iphdr *iph = ip_hdr(skb); udp4_gro_complete()
|
H A D | af_inet.c | 1204 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 D | ipconfig.c | 620 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 D | cipso_ipv4.c | 1590 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 D | ip_sockglue.c | 135 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 D | tcp_fastopen.c | 103 const struct iphdr *iph = ip_hdr(syn); tcp_fastopen_cookie_gen()
|
H A D | xfrm4_policy.c | 109 const struct iphdr *iph = ip_hdr(skb); _decode_session4()
|
H A D | tcp_ipv4.c | 357 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 D | igmp.c | 264 #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 D | fou.c | 53 struct iphdr *iph = ip_hdr(skb); fou_recv_pull()
|
H A D | udp.c | 580 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 D | gelic_udbg.c | 70 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 D | xt_DSCP.c | 37 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 D | nf_conntrack_broadcast.c | 29 struct iphdr *iph = ip_hdr(skb); nf_conntrack_broadcast_help()
|
H A D | xt_AUDIT.c | 76 struct iphdr _iph; audit_ip4() 77 const struct iphdr *ih; audit_ip4()
|
H A D | xt_HL.c | 31 struct iphdr *iph; ttl_tg()
|
H A D | xt_TCPOPTSTRIP.c | 95 sizeof(struct iphdr) + sizeof(struct tcphdr)); tcpoptstrip_tg4()
|
H A D | xt_iprange.c | 23 const struct iphdr *iph = ip_hdr(skb); iprange_mt4()
|
H A D | xt_HMARK.c | 258 struct iphdr *ip, _ip; hmark_pkt_set_htuple_ipv4() 261 ip = (struct iphdr *) (skb->data + nhoff); hmark_pkt_set_htuple_ipv4()
|
H A D | xt_addrtype.c | 130 const struct iphdr *iph = ip_hdr(skb); addrtype_mt_v0() 148 const struct iphdr *iph; addrtype_mt_v1()
|
H A D | nf_tables_netdev.c | 23 struct iphdr *iph, _iph; nft_netdev_set_pktinfo_ipv4()
|
H A D | xt_osf.c | 160 const struct iphdr *ip = ip_hdr(skb); xt_osf_ttl() 192 const struct iphdr *ip = ip_hdr(skb); xt_osf_match_packet()
|
H A D | xt_socket.c | 47 struct iphdr *inside_iph, _inside_iph; extract_icmp4_fields() 150 const struct iphdr *iph = ip_hdr(skb); xt_socket_lookup_slow_v4()
|
H A D | nf_conntrack_irc.c | 110 const struct iphdr *iph; help()
|
H A D | xt_TCPMSS.c | 206 struct iphdr *iph = ip_hdr(skb); tcpmss_tg4()
|
H A D | xt_TPROXY.c | 256 const struct iphdr *iph = ip_hdr(skb); tproxy_handle_time_wait4() 296 const struct iphdr *iph = ip_hdr(skb); tproxy_tg4()
|
H A D | xt_connlimit.c | 344 const struct iphdr *iph = ip_hdr(skb); connlimit_mt()
|
H A D | xt_l2tp.c | 175 struct iphdr *iph = ip_hdr(skb); l2tp_mt4()
|
H A D | xt_recent.c | 250 const struct iphdr *iph = ip_hdr(skb); recent_mt()
|
/linux-4.4.14/net/bridge/netfilter/ |
H A D | ebt_among.c | 73 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 D | ebt_ip.c | 31 const struct iphdr *ih; ebt_ip_mt() 32 struct iphdr _iph; ebt_ip_mt()
|
H A D | nf_tables_bridge.c | 24 struct iphdr *iph; nft_bridge_iphdr_validate() 27 if (!pskb_may_pull(skb, sizeof(struct iphdr))) nft_bridge_iphdr_validate()
|
H A D | nft_reject_bridge.c | 48 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 D | ebt_log.c | 100 const struct iphdr *ih; ebt_log_packet() 101 struct iphdr _iph; ebt_log_packet()
|
/linux-4.4.14/net/ipv6/netfilter/ |
H A D | ip6table_mangle.c | 44 if (skb->len < sizeof(struct iphdr) || ip6t_mangle_out() 45 ip_hdrlen(skb) < sizeof(struct iphdr)) { ip6t_mangle_out()
|
H A D | nf_log_ipv6.c | 334 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 D | if_tunnel.h | 37 struct iphdr iph;
|
H A D | ip.h | 85 struct iphdr { struct
|
/linux-4.4.14/net/core/ |
H A D | tso.c | 24 struct iphdr *iph = (void *)(hdr + mac_hdr_len); tso_build_hdr()
|
H A D | flow_dissector.c | 171 const struct iphdr *iph; htons() 172 struct iphdr _iph; htons()
|
H A D | netpoll.c | 55 sizeof(struct iphdr) + \ 383 struct iphdr *iph; netpoll_send_udp()
|
H A D | pktgen.c | 2193 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 D | sit.c | 441 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 D | tunnel6.c | 123 if (!pskb_may_pull(skb, sizeof(struct iphdr))) tunnel46_rcv()
|
H A D | ip6_tunnel.c | 636 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 D | esp6.c | 646 (sizeof(struct ipv6hdr) - sizeof(struct iphdr)); esp6_init_state()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_rx.c | 100 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 D | gateway_client.c | 672 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 D | multicast.c | 299 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 D | main.c | 331 struct iphdr ip_hdr_tmp, *ip_hdr; batadv_skb_set_priority()
|
/linux-4.4.14/drivers/net/slip/ |
H A D | slhc.c | 238 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 D | ipvlan_core.c | 139 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 D | em_ipset.c | 65 if (!pskb_network_may_pull(skb, sizeof(struct iphdr))) em_ipset_match()
|
H A D | act_csum.c | 178 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 D | act_connmark.c | 49 if (skb->len < sizeof(struct iphdr)) tcf_connmark()
|
H A D | act_nat.c | 91 struct iphdr *iph; tcf_nat()
|
H A D | sch_dsmark.c | 204 if (skb_cow_head(skb, sizeof(struct iphdr))) dsmark_enqueue()
|
H A D | cls_rsvp.h | 149 struct iphdr *nhptr; rsvp_classify()
|
/linux-4.4.14/include/uapi/linux/netfilter/ |
H A D | xt_osf.h | 83 struct iphdr ip;
|
/linux-4.4.14/net/l2tp/ |
H A D | l2tp_ip.c | 182 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 D | l2tp_ppp.c | 328 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 D | ip_set_getport.c | 100 const struct iphdr *iph = ip_hdr(skb); ip_set_get_ip4_port()
|
/linux-4.4.14/drivers/infiniband/hw/nes/ |
H A D | nes_mgt.c | 177 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 D | nes_cm.c | 440 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 D | nes_nic.c | 483 struct iphdr *iph; nes_netdev_start_xmit() 604 iph = (struct iphdr *) nes_netdev_start_xmit()
|
/linux-4.4.14/drivers/net/ |
H A D | geneve.c | 155 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 D | vxlan.c | 1155 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 D | vrf.c | 295 struct iphdr *ip4h = ip_hdr(skb); vrf_process_v4_outbound()
|
/linux-4.4.14/net/netfilter/ipvs/ |
H A D | ip_vs_core.c | 734 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 D | ip_vs_xmit.c | 332 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 D | ip_vs_ftp.c | 172 struct iphdr *iph; ip_vs_ftp_out() 314 struct iphdr *iph; ip_vs_ftp_in()
|
H A D | ip_vs_proto.c | 235 struct iphdr _iph, *ih; ip_vs_tcpudp_debug_packet_v4()
|
/linux-4.4.14/net/dccp/ |
H A D | ipv4.c | 148 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 D | ipv6.c | 945 .net_header_len = sizeof(struct iphdr),
|
/linux-4.4.14/drivers/staging/rtl8712/ |
H A D | xmit_linux.c | 83 struct iphdr ip_hdr; r8712_set_qos()
|
/linux-4.4.14/drivers/staging/gdm72xx/ |
H A D | gdm_qos.c | 258 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 D | i40e_txrx.c | 199 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 D | actions.c | 288 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 D | flow.c | 203 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 D | rtllib_tx.c | 253 struct iphdr *ip; rtllib_classify() 635 const struct iphdr *ip = (struct iphdr *) rtllib_xmit_inter()
|
/linux-4.4.14/drivers/staging/gdm724x/ |
H A D | gdm_lte.c | 352 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 D | pptp.c | 188 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 D | txtimestamp.c | 285 total_len += sizeof(struct iphdr); do_test() 341 struct iphdr *iph = (void *) buf; do_test()
|
/linux-4.4.14/drivers/net/hyperv/ |
H A D | netvsc_drv.c | 400 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 D | pdb.h | 50 #define PDBOPTS_ESP_DIFFSERV 0x40 /* copy TOS/TC from inner iphdr */
|
/linux-4.4.14/net/bridge/ |
H A D | br_netfilter_hooks.c | 192 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 D | br_multicast.c | 369 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 D | ar-peer.c | 82 peer->hdrsize = sizeof(struct iphdr); rxrpc_alloc_peer()
|
/linux-4.4.14/net/mpls/ |
H A D | af_mpls.c | 146 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 D | hso.c | 174 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 D | cdc_mbim.c | 372 if (len < sizeof(struct iphdr)) cdc_mbim_process_dgram()
|
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/ |
H A D | os_intfs.c | 312 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 D | selftest.c | 46 struct iphdr ip; 392 sizeof(struct iphdr)); efx_iterate_state()
|
H A D | rx.c | 885 const struct iphdr *ip = efx_filter_rfs() 886 (const struct iphdr *)(skb->data + nhoff); efx_filter_rfs()
|
H A D | tx.c | 1185 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 D | br2684.c | 396 (((struct iphdr *)(skb->data))->daddr & brvcc->filter. packet_fails_filter() 481 struct iphdr *iph; br2684_push()
|
H A D | mpc.c | 494 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 D | lsm_audit.c | 46 struct iphdr *ih; ipv4_skb_to_auditdata()
|
/linux-4.4.14/drivers/staging/wilc1000/ |
H A D | linux_wlan.c | 1367 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 D | pasemi_mac.c | 260 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 D | ioc3-eth.c | 512 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 D | meth.c | 26 #include <linux/ip.h> /* struct iphdr */
|
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/ |
H A D | i40e_txrx.c | 800 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 D | libipw_tx.c | 226 struct iphdr *ip; libipw_classify()
|
/linux-4.4.14/drivers/net/ethernet/sun/ |
H A D | sunvnet.c | 319 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 D | qlcnic_io.c | 1267 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 D | udp_media.c | 384 b->mtu = dev->mtu - sizeof(struct iphdr) tipc_udp_enable()
|
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/ |
H A D | os_intfs.c | 690 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 D | cm.c | 241 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 D | en_tx.c | 918 struct iphdr *ipv4 = (struct iphdr *)skb_inner_network_header(skb); mlx4_en_xmit()
|
H A D | en_rx.c | 684 struct iphdr *iph) get_fixed_ipv4_csum()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlge/ |
H A D | qlge_main.c | 1606 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 D | xgene_enet_main.c | 193 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 D | input.c | 570 const struct iphdr *iph = (const struct iphdr *)skb->data; sctp_v4_err()
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/ |
H A D | d3.c | 396 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 D | ieee80211_tx.c | 278 struct iphdr *ip; ieee80211_classify()
|
/linux-4.4.14/drivers/s390/net/ |
H A D | qeth_l3_main.c | 1773 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 D | vmxnet3_drv.c | 850 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 D | lio_main.c | 2642 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 D | psock_tpacket.c | 157 struct iphdr *ip = pay + sizeof(*eth); create_payload()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/ |
H A D | netxen_nic_init.c | 1598 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 D | hns_enet.c | 255 (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 D | ibmveth.c | 1182 struct iphdr *iph; ibmveth_poll() 1228 iph = (struct iphdr *)skb->data; ibmveth_poll()
|
/linux-4.4.14/drivers/net/ethernet/neterion/ |
H A D | s2io.c | 4052 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 D | s2io.h | 675 struct iphdr *iph;
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt.c | 847 #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 D | rtw_xmit.c | 397 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 D | base.c | 1326 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 D | tilegx.c | 1725 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 D | atl1e_main.c | 1372 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 D | bnx2x_cmn.c | 526 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 D | netlabel_kapi.c | 1009 struct iphdr *hdr4; netlbl_skbuff_setattr()
|