Home
last modified time | relevance | path

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

/include/linux/
Dip.h19 static inline struct iphdr *ip_hdr(const struct sk_buff *skb) in ip_hdr()
21 return (struct iphdr *)skb_network_header(skb); in ip_hdr()
24 static inline struct iphdr *inner_ip_hdr(const struct sk_buff *skb) in inner_ip_hdr()
26 return (struct iphdr *)skb_inner_network_header(skb); in inner_ip_hdr()
29 static inline struct iphdr *ipip_hdr(const struct sk_buff *skb) in ipip_hdr()
31 return (struct iphdr *)skb_transport_header(skb); in ipip_hdr()
Dptp_classify.h45 #define IPV4_HLEN(data) (((struct iphdr *)(data + OFF_IHL))->ihl << 2)
/include/net/
Ddsfield.h16 static inline __u8 ipv4_get_dsfield(const struct iphdr *iph) in ipv4_get_dsfield()
28 static inline void ipv4_change_dsfield(struct iphdr *iph,__u8 mask, in ipv4_change_dsfield()
Dinet_ecn.h75 static inline int IP_ECN_set_ce(struct iphdr *iph) in IP_ECN_set_ce()
102 static inline void IP_ECN_clear(struct iphdr *iph) in IP_ECN_clear()
107 static inline void ipv4_copy_dscp(unsigned int dscp, struct iphdr *inner) in ipv4_copy_dscp()
147 if (skb_network_header(skb) + sizeof(struct iphdr) <= in INET_ECN_set_ce()
217 static inline int IP_ECN_decapsulate(const struct iphdr *oiph, in IP_ECN_decapsulate()
Dip_vs.h71 int hdr_flags, struct ip_vs_iphdr *iphdr) in ip_vs_fill_iph_skb_off() argument
73 iphdr->hdr_flags = hdr_flags; in ip_vs_fill_iph_skb_off()
74 iphdr->off = offset; in ip_vs_fill_iph_skb_off()
84 iphdr->saddr.in6 = iph->saddr; in ip_vs_fill_iph_skb_off()
85 iphdr->daddr.in6 = iph->daddr; in ip_vs_fill_iph_skb_off()
87 iphdr->len = offset; in ip_vs_fill_iph_skb_off()
88 iphdr->flags = 0; in ip_vs_fill_iph_skb_off()
89 iphdr->protocol = ipv6_find_hdr(skb, &iphdr->len, -1, in ip_vs_fill_iph_skb_off()
90 &iphdr->fragoffs, in ip_vs_fill_iph_skb_off()
91 &iphdr->flags); in ip_vs_fill_iph_skb_off()
[all …]
Dip.h168 struct iphdr *iph;
173 void ip_fraglist_init(struct sk_buff *skb, struct iphdr *iph,
203 void ip_send_check(struct iphdr *ip);
397 static inline bool ip_is_fragment(const struct iphdr *iph) in ip_is_fragment()
408 int ip_decrease_ttl(struct iphdr *iph) in ip_decrease_ttl()
507 void __ip_select_ident(struct net *net, struct iphdr *iph, int segs);
512 struct iphdr *iph = ip_hdr(skb); in ip_select_ident_segs()
548 const struct iphdr *iph) in iph_to_flow_copy_v4addrs()
559 const struct iphdr *iph = skb_gro_network_header(skb); in inet_gro_compute_pseudo()
Dip_tunnels.h269 const struct iphdr *tnl_params, const u8 protocol);
323 nhlen = sizeof(struct iphdr); in pskb_inet_may_pull()
374 static inline u8 ip_tunnel_get_dsfield(const struct iphdr *iph, in ip_tunnel_get_dsfield()
385 static inline u8 ip_tunnel_get_ttl(const struct iphdr *iph, in ip_tunnel_get_ttl()
397 static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph, in ip_tunnel_ecn_encap()
Dslhc_vj.h132 struct iphdr cs_ip; /* ip/tcp hdr from most recent packet */
Ddst_metadata.h166 const struct iphdr *iph = ip_hdr(skb); in ip_tun_rx_dst()
Dinet_hashtables.h383 const struct iphdr *iph = ip_hdr(skb); in __inet_lookup_skb()
Dtcp.h420 u16 tcp_v4_get_syncookie(struct sock *sk, struct iphdr *iph,
466 int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th,
548 u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th,
Dxfrm.h1573 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct iphdr, daddr); in xfrm4_rcv_spi()
/include/net/netfilter/
Dnf_tables_ipv4.h11 struct iphdr *ip; in nft_set_pktinfo_ipv4()
23 struct iphdr *iph, _iph; in __nft_set_pktinfo_ipv4_validate()
Dnf_queue.h46 static inline u32 hash_v4(const struct iphdr *iph, u32 initval) in hash_v4()
82 struct iphdr *iph, _iph; in hash_bridge()
/include/net/netfilter/ipv4/
Dnf_reject.h15 struct iphdr *nf_reject_iphdr_put(struct sk_buff *nskb,
/include/uapi/linux/netfilter/
Dnfnetlink_osf.h71 struct iphdr ip;
/include/uapi/linux/
Dip.h86 struct iphdr { struct
Dif_tunnel.h55 struct iphdr iph;
/include/rdma/
Dib_verbs.h768 struct iphdr roce4grh;