Searched refs:iph (Results 1 - 11 of 11) sorted by relevance

/include/net/
H A Ddsfield.h15 static inline __u8 ipv4_get_dsfield(const struct iphdr *iph) argument
17 return iph->tos;
27 static inline void ipv4_change_dsfield(struct iphdr *iph,__u8 mask, argument
30 __u32 check = ntohs((__force __be16)iph->check);
33 dsfield = (iph->tos & mask) | value;
34 check += iph->tos;
38 iph->check = (__force __sum16)htons(check);
39 iph->tos = dsfield;
H A Dinet_ecn.h72 static inline int IP_ECN_set_ce(struct iphdr *iph) argument
74 u32 check = (__force u32)iph->check;
75 u32 ecn = (iph->tos + 1) & INET_ECN_MASK;
94 iph->check = (__force __sum16)(check + (check>=0xFFFF));
95 iph->tos |= INET_ECN_CE;
99 static inline void IP_ECN_clear(struct iphdr *iph) argument
101 iph->tos &= ~INET_ECN_MASK;
112 static inline int IP6_ECN_set_ce(struct ipv6hdr *iph) argument
114 if (INET_ECN_is_not_ect(ipv6_get_dsfield(iph)))
116 *(__be32*)iph |
120 IP6_ECN_clear(struct ipv6hdr *iph) argument
[all...]
H A Dip.h240 static inline bool ip_is_fragment(const struct iphdr *iph) argument
242 return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0;
251 int ip_decrease_ttl(struct iphdr *iph) argument
253 u32 check = (__force u32)iph->check;
255 iph->check = (__force __sum16)(check + (check>=0xFFFF));
256 return --iph->ttl;
267 extern void __ip_select_ident(struct iphdr *iph, struct dst_entry *dst, int more);
269 static inline void ip_select_ident(struct iphdr *iph, struct dst_entry *dst, struct sock *sk) argument
271 if (iph->frag_off & htons(IP_DF)) {
277 iph
283 ip_select_ident_more(struct iphdr *iph, struct dst_entry *dst, struct sock *sk, int more) argument
[all...]
H A Dipip.h53 ip_select_ident(iph, &rt->dst, NULL); \
H A Dip_vs.h120 const struct ipv6hdr *iph = nh; local
122 iphdr->protocol = iph->nexthdr;
123 iphdr->saddr.in6 = iph->saddr;
124 iphdr->daddr.in6 = iph->daddr;
128 const struct iphdr *iph = nh; local
129 iphdr->len = iph->ihl * 4;
130 iphdr->protocol = iph->protocol;
131 iphdr->saddr.ip = iph->saddr;
132 iphdr->daddr.ip = iph->daddr;
407 const struct ip_vs_iphdr *iph,
[all...]
H A Dinet_hashtables.h383 const struct iphdr *iph = ip_hdr(skb); local
389 iph->saddr, sport,
390 iph->daddr, dport, inet_iif(skb));
H A Droute.h184 extern unsigned short ip_rt_frag_needed(struct net *net, const struct iphdr *iph,
/include/linux/
H A Dinet_lro.h51 struct iphdr *iph; member in struct:net_lro_desc
163 struct iphdr *iph, struct tcphdr *tcph);
H A Dif_tunnel.h41 struct iphdr iph; member in struct:ip_tunnel_parm
H A Dipv6.h236 static inline __u8 ipv6_tclass(const struct ipv6hdr *iph) argument
238 return (ntohl(*(__be32 *)iph) >> 20) & 0xff;
/include/asm-generic/
H A Dchecksum.h45 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);

Completed in 196 milliseconds