Home
last modified time | relevance | path

Searched refs:iphdr (Results 1 – 25 of 130) sorted by relevance

123456

/net/ipv4/netfilter/
Dnf_reject_ipv4.c45 struct iphdr *nf_reject_iphdr_put(struct sk_buff *nskb, in nf_reject_iphdr_put()
49 struct iphdr *niph, *oiph = ip_hdr(oldskb); in nf_reject_iphdr_put()
52 niph = (struct iphdr *)skb_put(nskb, sizeof(struct iphdr)); in nf_reject_iphdr_put()
54 niph->ihl = sizeof(struct iphdr) / 4; in nf_reject_iphdr_put()
73 struct iphdr *niph = ip_hdr(nskb); in nf_reject_ip_tcphdr_put()
105 const struct iphdr *oiph; in nf_send_reset()
106 struct iphdr *niph; in nf_send_reset()
119 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) + in nf_send_reset()
173 struct iphdr *iph = ip_hdr(skb_in); in nf_send_unreach()
Dnf_log_ipv4.c42 struct iphdr _iph; in dump_ipv4_packet()
43 const struct iphdr *ih; in dump_ipv4_packet()
80 ih->ihl * 4 > sizeof(struct iphdr)) { in dump_ipv4_packet()
82 unsigned char _opt[4 * 15 - sizeof(struct iphdr)]; in dump_ipv4_packet()
85 optsize = ih->ihl * 4 - sizeof(struct iphdr); in dump_ipv4_packet()
120 = 8 + sizeof(struct iphdr), in dump_ipv4_packet()
122 = 8 + sizeof(struct iphdr), in dump_ipv4_packet()
124 = 8 + sizeof(struct iphdr), in dump_ipv4_packet()
127 = 8 + sizeof(struct iphdr), in dump_ipv4_packet()
129 = 8 + sizeof(struct iphdr), in dump_ipv4_packet()
Dnf_nat_l3proto_ipv4.c84 struct iphdr *iph; in nf_nat_ipv4_manip_pkt()
113 struct iphdr *iph = (struct iphdr *)(skb->data + iphdroff); in nf_nat_ipv4_csum_update()
130 const struct iphdr *iph = ip_hdr(skb); in nf_nat_ipv4_csum_recalc()
197 struct iphdr ip; in nf_nat_icmp_reply_translation()
378 if (skb->len < sizeof(struct iphdr) || in nf_nat_ipv4_out()
379 ip_hdrlen(skb) < sizeof(struct iphdr)) in nf_nat_ipv4_out()
418 if (skb->len < sizeof(struct iphdr) || in nf_nat_ipv4_local_fn()
419 ip_hdrlen(skb) < sizeof(struct iphdr)) in nf_nat_ipv4_local_fn()
Dnft_chain_route_ipv4.c33 const struct iphdr *iph; in nf_route_table_hook()
36 if (skb->len < sizeof(struct iphdr) || in nf_route_table_hook()
37 ip_hdrlen(skb) < sizeof(struct iphdr)) in nf_route_table_hook()
Dipt_SYNPROXY.c20 static struct iphdr *
23 struct iphdr *iph; in synproxy_build_ip()
26 iph = (struct iphdr *)skb_put(skb, sizeof(*iph)); in synproxy_build_ip()
45 struct iphdr *niph, struct tcphdr *nth, in synproxy_send_tcp()
79 struct iphdr *iph, *niph; in synproxy_send_client_synack()
121 struct iphdr *iph, *niph; in synproxy_send_server_syn()
166 struct iphdr *iph, *niph; in synproxy_send_server_ack()
204 struct iphdr *iph, *niph; in synproxy_send_client_ack()
Diptable_mangle.c43 const struct iphdr *iph; in ipt_mangle_out()
50 if (skb->len < sizeof(struct iphdr) || in ipt_mangle_out()
51 ip_hdrlen(skb) < sizeof(struct iphdr)) in ipt_mangle_out()
Diptable_security.c44 (skb->len < sizeof(struct iphdr) || in iptable_security_hook()
45 ip_hdrlen(skb) < sizeof(struct iphdr))) in iptable_security_hook()
/net/ipv4/
Dinet_lro.c55 static int lro_tcp_ip_check(const struct iphdr *iph, const struct tcphdr *tcph, in lro_tcp_ip_check()
105 struct iphdr *iph = lro_desc->iph; in lro_update_tcp_ip_header()
130 static __wsum lro_tcp_data_csum(struct iphdr *iph, struct tcphdr *tcph, int len) in lro_tcp_data_csum()
148 struct iphdr *iph, struct tcphdr *tcph) in lro_init_desc()
185 static void lro_add_common(struct net_lro_desc *lro_desc, struct iphdr *iph, in lro_add_common()
215 struct iphdr *iph, struct tcphdr *tcph) in lro_add_packet()
235 struct iphdr *iph, in lro_check_tcp_conn()
248 struct iphdr *iph, in lro_get_desc()
298 struct iphdr *iph; in __lro_proc_skb()
Dah4.c78 static int ip_clear_mutable_options(const struct iphdr *iph, __be32 *daddr) in ip_clear_mutable_options()
81 int l = iph->ihl*4 - sizeof(struct iphdr); in ip_clear_mutable_options()
121 struct iphdr *iph; in ah_output_done()
125 struct iphdr *top_iph = ip_hdr(skb); in ah_output_done()
138 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output_done()
155 struct iphdr *iph, *top_iph; in ah_output()
198 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
254 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
267 struct iphdr *work_iph; in ah_input_done()
313 struct iphdr *iph, *work_iph; in ah_input()
[all …]
Dxfrm4_mode_beet.c22 struct iphdr *iph = ip_hdr(skb); in xfrm4_beet_make_header()
42 struct iphdr *top_iph; in xfrm4_beet_output()
55 offsetof(struct iphdr, protocol); in xfrm4_beet_output()
75 top_iph->ihl = sizeof(struct iphdr) / 4; in xfrm4_beet_output()
86 struct iphdr *iph; in xfrm4_beet_input()
Dxfrm4_mode_tunnel.c20 struct iphdr *inner_iph = ipip_hdr(skb); in ipip_ecn_decapsulate()
33 struct iphdr *top_iph; in xfrm4_mode_tunnel_output()
38 offsetof(struct iphdr, protocol); in xfrm4_mode_tunnel_output()
78 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in xfrm4_mode_tunnel_input()
Dip_options.c49 memcpy(iph+sizeof(struct iphdr), opt->__data, opt->optlen); in ip_options_build()
108 dopt->rr = dopt->optlen + sizeof(struct iphdr); in __ip_options_echo()
122 dopt->ts = dopt->optlen + sizeof(struct iphdr); in __ip_options_echo()
186 dopt->srr = dopt->optlen + sizeof(struct iphdr); in __ip_options_echo()
193 dopt->cipso = dopt->optlen+sizeof(struct iphdr); in __ip_options_echo()
213 unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); in ip_options_fragment()
273 iph = optptr - sizeof(struct iphdr); in __ip_options_compile()
501 unsigned char *optptr = opt->__data+opt->srr-sizeof(struct iphdr); in ip_options_undo()
506 unsigned char *optptr = opt->__data+opt->rr-sizeof(struct iphdr); in ip_options_undo()
511 unsigned char *optptr = opt->__data+opt->ts-sizeof(struct iphdr); in ip_options_undo()
[all …]
Dnetfilter.c22 const struct iphdr *iph = ip_hdr(skb); in ip_route_me_harder()
98 const struct iphdr *iph = ip_hdr(skb); in nf_ip_saveroute()
113 const struct iphdr *iph = ip_hdr(skb); in nf_ip_reroute()
127 const struct iphdr *iph = ip_hdr(skb); in nf_ip_checksum()
159 const struct iphdr *iph = ip_hdr(skb); in nf_ip_checksum_partial()
Dip_gre.c265 const struct iphdr *iph; in ipgre_err()
304 iph = (const struct iphdr *)(icmp_hdr(skb) + 1); in ipgre_err()
389 const struct iphdr *iph; in ipgre_rcv()
486 const struct iphdr *tnl_params, in __gre_xmit()
555 + tunnel_hlen + sizeof(struct iphdr); in gre_fb_xmit()
613 const struct iphdr *tnl_params; in ipgre_xmit()
623 (tunnel->hlen + sizeof(struct iphdr)))) in ipgre_xmit()
626 tnl_params = (const struct iphdr *)skb->data; in ipgre_xmit()
631 skb_pull(skb, tunnel->hlen + sizeof(struct iphdr)); in ipgre_xmit()
742 struct iphdr *iph; in ipgre_header()
[all …]
Dicmp.c453 const struct iphdr *iph = ip_hdr(skb); in icmp_multipath_hash_skb()
484 const struct iphdr *iph, in icmp_route_lookup()
596 struct iphdr *iph; in __icmp_send()
743 room -= sizeof(struct iphdr) + icmp_param->replyopts.opt.opt.optlen; in __icmp_send()
765 const struct iphdr *iph = (const struct iphdr *) skb->data; in icmp_socket_deliver()
801 const struct iphdr *iph; in icmp_unreach()
814 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in icmp_unreach()
818 iph = (const struct iphdr *)skb->data; in icmp_unreach()
905 if (skb->len < sizeof(struct iphdr)) { in icmp_redirect()
910 if (!pskb_may_pull(skb, sizeof(struct iphdr))) { in icmp_redirect()
[all …]
Dip_input.c265 const struct iphdr *iph; in ip_rcv_options()
282 opt->optlen = iph->ihl*4 - sizeof(struct iphdr); in ip_rcv_options()
316 const struct iphdr *iph = ip_hdr(skb); in ip_rcv_finish()
377 const struct iphdr *iph; in ip_rcv()
397 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in ip_rcv()
Dxfrm4_input.c29 const struct iphdr *iph = ip_hdr(skb); in xfrm4_rcv_encap_finish()
43 struct iphdr *iph = ip_hdr(skb); in xfrm4_transport_finish()
73 struct iphdr *iph; in xfrm4_udp_encap_rcv()
Dip_vti.c57 const struct iphdr *iph = ip_hdr(skb); in vti_input()
90 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct iphdr, daddr); in vti_rcv()
103 const struct iphdr *iph = ip_hdr(skb); in vti_rcv_tunnel()
327 const struct iphdr *iph = (const struct iphdr *)skb->data; in vti4_err()
435 struct iphdr *iph = &tunnel->parms.iph; in vti_tunnel_init()
452 struct iphdr *iph = &tunnel->parms.iph; in vti_fb_tunnel_init()
601 [IFLA_VTI_LOCAL] = { .len = FIELD_SIZEOF(struct iphdr, saddr) },
602 [IFLA_VTI_REMOTE] = { .len = FIELD_SIZEOF(struct iphdr, daddr) },
Dxfrm4_mode_transport.c23 struct iphdr *iph = ip_hdr(skb); in xfrm4_transport_output()
28 offsetof(struct iphdr, protocol); in xfrm4_transport_output()
Dip_tunnel.c310 const struct iphdr *iph; in ip_tunnel_bind_dev()
313 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ip_tunnel_bind_dev()
378 const struct iphdr *iph = ip_hdr(skb); in ip_tunnel_rcv()
546 const struct iphdr *inner_iph) in tnl_update_pmtu()
554 - sizeof(struct iphdr) - tunnel->hlen; in tnl_update_pmtu()
595 const struct iphdr *tnl_params, u8 protocol) in ip_tunnel_xmit()
599 const struct iphdr *inner_iph; in ip_tunnel_xmit()
611 inner_nhdr_len = sizeof(struct iphdr); in ip_tunnel_xmit()
617 inner_iph = (const struct iphdr *)skb_inner_network_header(skb); in ip_tunnel_xmit()
743 max_headroom = LL_RESERVED_SPACE(rt->dst.dev) + sizeof(struct iphdr) in ip_tunnel_xmit()
[all …]
Dipcomp.c30 const struct iphdr *iph = (const struct iphdr *)skb->data; in ipcomp4_err()
131 x->props.header_len += sizeof(struct iphdr); in ipcomp4_init_state()
/net/netfilter/
Dxt_DSCP.c37 if (!skb_make_writable(skb, sizeof(struct iphdr))) in dscp_tg()
80 struct iphdr *iph = ip_hdr(skb); in tos_tg()
87 if (!skb_make_writable(skb, sizeof(struct iphdr))) in tos_tg()
107 if (!skb_make_writable(skb, sizeof(struct iphdr))) in tos_tg6()
/net/bridge/netfilter/
Debt_among.c73 const struct iphdr *ih; in get_ip_dst()
74 struct iphdr _iph; in get_ip_dst()
104 const struct iphdr *ih; in get_ip_src()
105 struct iphdr _iph; in get_ip_src()
Dnft_reject_bridge.c54 struct iphdr *niph; in nft_reject_br_send_v4_tcp_reset()
65 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) + in nft_reject_br_send_v4_tcp_reset()
88 struct iphdr *niph; in nft_reject_br_send_v4_unreach()
121 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct icmphdr) + in nft_reject_br_send_v4_unreach()
234 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct icmp6hdr) + in nft_reject_br_send_v6_unreach()
/net/batman-adv/
Dgateway_client.c680 struct iphdr *iphdr; in batadv_gw_dhcp_recipient_get() local
709 if (!pskb_may_pull(skb, *header_len + sizeof(*iphdr))) in batadv_gw_dhcp_recipient_get()
712 iphdr = (struct iphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
713 *header_len += iphdr->ihl * 4; in batadv_gw_dhcp_recipient_get()
716 if (iphdr->protocol != IPPROTO_UDP) in batadv_gw_dhcp_recipient_get()

123456