Home
last modified time | relevance | path

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

12345678

/linux-3.4.99/include/linux/
Dip.h85 struct iphdr { struct
110 static inline struct iphdr *ip_hdr(const struct sk_buff *skb) in ip_hdr() argument
112 return (struct iphdr *)skb_network_header(skb); in ip_hdr()
115 static inline struct iphdr *ipip_hdr(const struct sk_buff *skb) in ipip_hdr()
117 return (struct iphdr *)skb_transport_header(skb); in ipip_hdr()
/linux-3.4.99/net/ipv4/netfilter/
Dipt_REJECT.c39 const struct iphdr *oiph; in send_reset()
40 struct iphdr *niph; in send_reset()
65 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) + in send_reset()
73 niph = (struct iphdr *)skb_put(nskb, sizeof(struct iphdr)); in send_reset()
75 niph->ihl = sizeof(struct iphdr) / 4; in send_reset()
Dnf_nat_proto_tcp.c39 const struct iphdr *iph = (struct iphdr *)(skb->data + iphdroff); in tcp_manip_pkt()
55 iph = (struct iphdr *)(skb->data + iphdroff); in tcp_manip_pkt()
Dnf_nat_proto_udp.c38 const struct iphdr *iph = (struct iphdr *)(skb->data + iphdroff); in udp_manip_pkt()
47 iph = (struct iphdr *)(skb->data + iphdroff); in udp_manip_pkt()
Dnf_nat_proto_sctp.c36 const struct iphdr *iph = (struct iphdr *)(skb->data + iphdroff); in sctp_manip_pkt()
46 iph = (struct iphdr *)(skb->data + iphdroff); in sctp_manip_pkt()
Dnf_nat_proto_udplite.c38 const struct iphdr *iph = (struct iphdr *)(skb->data + iphdroff); in udplite_manip_pkt()
47 iph = (struct iphdr *)(skb->data + iphdroff); in udplite_manip_pkt()
Diptable_mangle.c43 const struct iphdr *iph; in ipt_mangle_out()
49 if (skb->len < sizeof(struct iphdr) || in ipt_mangle_out()
50 ip_hdrlen(skb) < sizeof(struct iphdr)) in ipt_mangle_out()
/linux-3.4.99/net/ipv4/
Dipip.c319 const struct iphdr *iph = (const struct iphdr *)skb->data; in ipip_err()
374 static inline void ipip_ecn_decapsulate(const struct iphdr *outer_iph, in ipip_ecn_decapsulate()
377 struct iphdr *inner_iph = ip_hdr(skb); in ipip_ecn_decapsulate()
386 const struct iphdr *iph = ip_hdr(skb); in ipip_rcv()
433 const struct iphdr *tiph = &tunnel->parms.iph; in ipip_tunnel_xmit()
438 const struct iphdr *old_iph = ip_hdr(skb); in ipip_tunnel_xmit()
439 struct iphdr *iph; /* Our new IP header */ in ipip_tunnel_xmit()
481 mtu = dst_mtu(&rt->dst) - sizeof(struct iphdr); in ipip_tunnel_xmit()
513 max_headroom = (LL_RESERVED_SPACE(tdev)+sizeof(struct iphdr)); in ipip_tunnel_xmit()
532 skb_push(skb, sizeof(struct iphdr)); in ipip_tunnel_xmit()
[all …]
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()
189 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
238 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
251 struct iphdr *work_iph; in ah_input_done()
290 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()
74 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in xfrm4_mode_tunnel_input()
Dinet_lro.c54 static int lro_tcp_ip_check(const struct iphdr *iph, const struct tcphdr *tcph, in lro_tcp_ip_check()
104 struct iphdr *iph = lro_desc->iph; in lro_update_tcp_ip_header()
131 static __wsum lro_tcp_data_csum(struct iphdr *iph, struct tcphdr *tcph, int len) in lro_tcp_data_csum()
149 struct iphdr *iph, struct tcphdr *tcph) in lro_init_desc()
186 static void lro_add_common(struct net_lro_desc *lro_desc, struct iphdr *iph, in lro_add_common()
216 struct iphdr *iph, struct tcphdr *tcph) in lro_add_packet()
237 struct iphdr *iph, struct tcphdr *tcph) in lro_add_frags()
259 struct iphdr *iph, in lro_check_tcp_conn()
272 struct iphdr *iph, in lro_get_desc()
322 struct iphdr *iph; in __lro_proc_skb()
[all …]
Dxfrm4_input.c28 const struct iphdr *iph = ip_hdr(skb); in xfrm4_rcv_encap_finish()
44 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct iphdr, daddr); in xfrm4_rcv_encap()
51 struct iphdr *iph = ip_hdr(skb); in xfrm4_transport_finish()
80 struct iphdr *iph; in xfrm4_udp_encap_rcv()
Dip_options.c48 memcpy(iph+sizeof(struct iphdr), opt->__data, opt->optlen); in ip_options_build()
112 dopt->rr = dopt->optlen + sizeof(struct iphdr); in ip_options_echo()
126 dopt->ts = dopt->optlen + sizeof(struct iphdr); in ip_options_echo()
188 dopt->srr = dopt->optlen + sizeof(struct iphdr); in ip_options_echo()
195 dopt->cipso = dopt->optlen+sizeof(struct iphdr); in ip_options_echo()
215 unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); in ip_options_fragment()
265 iph = optptr - sizeof(struct iphdr); in ip_options_compile()
476 unsigned char * optptr = opt->__data+opt->srr-sizeof(struct iphdr); in ip_options_undo()
481 unsigned char * optptr = opt->__data+opt->rr-sizeof(struct iphdr); in ip_options_undo()
486 unsigned char * optptr = opt->__data+opt->ts-sizeof(struct iphdr); in ip_options_undo()
[all …]
Dnetfilter.c18 const struct iphdr *iph = ip_hdr(skb); in ip_route_me_harder()
130 const struct iphdr *iph = ip_hdr(skb); in nf_ip_saveroute()
145 const struct iphdr *iph = ip_hdr(skb); in nf_ip_reroute()
159 const struct iphdr *iph = ip_hdr(skb); in nf_ip_checksum()
191 const struct iphdr *iph = ip_hdr(skb); in nf_ip_checksum_partial()
Dip_gre.c466 const struct iphdr *iph = (const struct iphdr *)skb->data; in ipgre_err()
538 static inline void ipgre_ecn_decapsulate(const struct iphdr *iph, struct sk_buff *skb) in ipgre_ecn_decapsulate()
550 ipgre_ecn_encapsulate(u8 tos, const struct iphdr *old_iph, struct sk_buff *skb) in ipgre_ecn_encapsulate()
562 const struct iphdr *iph; in ipgre_rcv()
701 const struct iphdr *old_iph = ip_hdr(skb); in ipgre_tunnel_xmit()
702 const struct iphdr *tiph; in ipgre_tunnel_xmit()
708 struct iphdr *iph; /* Our new IP header */ in ipgre_tunnel_xmit()
719 tiph = (const struct iphdr *)skb->data; in ipgre_tunnel_xmit()
880 iph->ihl = sizeof(struct iphdr) >> 2; in ipgre_tunnel_xmit()
916 *(__sum16*)ptr = ip_compute_csum((void*)(iph+1), skb->len - sizeof(struct iphdr)); in ipgre_tunnel_xmit()
[all …]
Dip_input.c272 const struct iphdr *iph; in ip_rcv_options()
289 opt->optlen = iph->ihl*4 - sizeof(struct iphdr); in ip_rcv_options()
320 const struct iphdr *iph = ip_hdr(skb); in ip_rcv_finish()
378 const struct iphdr *iph; in ip_rcv()
395 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in ip_rcv()
Dicmp.c378 const struct iphdr *iph, in icmp_route_lookup()
480 struct iphdr *iph; in icmp_send()
617 room -= sizeof(struct iphdr) + icmp_param.replyopts.opt.opt.optlen; in icmp_send()
641 const struct iphdr *iph; in icmp_unreach()
656 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in icmp_unreach()
660 iph = (const struct iphdr *)skb->data; in icmp_unreach()
730 iph = (const struct iphdr *)skb->data; in icmp_unreach()
759 const struct iphdr *iph; in icmp_redirect()
761 if (skb->len < sizeof(struct iphdr)) in icmp_redirect()
767 if (!pskb_may_pull(skb, sizeof(struct iphdr))) in icmp_redirect()
[all …]
/linux-3.4.99/include/net/
Dinet_ecn.h72 static inline int IP_ECN_set_ce(struct iphdr *iph) in IP_ECN_set_ce()
99 static inline void IP_ECN_clear(struct iphdr *iph) in IP_ECN_clear()
104 static inline void ipv4_copy_dscp(unsigned int dscp, struct iphdr *inner) in ipv4_copy_dscp()
135 if (skb->network_header + sizeof(struct iphdr) <= skb->tail) in INET_ECN_set_ce()
/linux-3.4.99/arch/powerpc/platforms/ps3/
Dgelic_udbg.c70 struct iphdr { struct
92 static __iomem struct iphdr *h_ip; argument
192 h_ip = (struct iphdr *)(h_vlan + 1); in gelic_debug_init()
195 h_ip = (struct iphdr *)(h_eth + 1); in gelic_debug_init()
198 header_size += sizeof(struct iphdr); in gelic_debug_init()
229 sizeof(struct iphdr); in gelic_sendbuf()
/linux-3.4.99/net/netfilter/
Dxt_DSCP.c37 if (!skb_make_writable(skb, sizeof(struct iphdr))) in dscp_tg()
78 struct iphdr *iph = ip_hdr(skb); in tos_tg()
85 if (!skb_make_writable(skb, sizeof(struct iphdr))) in tos_tg()
105 if (!skb_make_writable(skb, sizeof(struct iphdr))) in tos_tg6()
Dxt_LOG.c154 struct iphdr _iph; in dump_ipv4_packet()
155 const struct iphdr *ih; in dump_ipv4_packet()
193 ih->ihl * 4 > sizeof(struct iphdr)) { in dump_ipv4_packet()
195 unsigned char _opt[4 * 15 - sizeof(struct iphdr)]; in dump_ipv4_packet()
198 optsize = ih->ihl * 4 - sizeof(struct iphdr); in dump_ipv4_packet()
233 = 8 + sizeof(struct iphdr), in dump_ipv4_packet()
235 = 8 + sizeof(struct iphdr), in dump_ipv4_packet()
237 = 8 + sizeof(struct iphdr), in dump_ipv4_packet()
240 = 8 + sizeof(struct iphdr), in dump_ipv4_packet()
242 = 8 + sizeof(struct iphdr), in dump_ipv4_packet()
[all …]
/linux-3.4.99/net/ipv6/
Dsit.c447 isatap_chksrc(struct sk_buff *skb, const struct iphdr *iph, struct ip_tunnel *t) in isatap_chksrc()
495 const struct iphdr *iph = (const struct iphdr *)skb->data; in ipip6_err()
553 static inline void ipip6_ecn_decapsulate(const struct iphdr *iph, struct sk_buff *skb) in ipip6_ecn_decapsulate()
561 const struct iphdr *iph; in ipip6_rcv()
660 const struct iphdr *tiph = &tunnel->parms.iph; in ipip6_tunnel_xmit()
666 struct iphdr *iph; /* Our new IP header */ in ipip6_tunnel_xmit()
765 mtu = dst_mtu(&rt->dst) - sizeof(struct iphdr); in ipip6_tunnel_xmit()
800 max_headroom = LL_RESERVED_SPACE(tdev)+sizeof(struct iphdr); in ipip6_tunnel_xmit()
819 skb_push(skb, sizeof(struct iphdr)); in ipip6_tunnel_xmit()
832 iph->ihl = sizeof(struct iphdr)>>2; in ipip6_tunnel_xmit()
[all …]
/linux-3.4.99/net/core/
Dflow_dissector.c16 static void iph_to_flow_copy_addrs(struct flow_keys *flow, const struct iphdr *iph) in iph_to_flow_copy_addrs()
34 const struct iphdr *iph; in skb_flow_dissect()
35 struct iphdr _iph; in skb_flow_dissect()
/linux-3.4.99/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()

12345678