Lines Matching refs:iph
255 static inline bool ip_is_fragment(const struct iphdr *iph) in ip_is_fragment() argument
257 return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0; in ip_is_fragment()
266 int ip_decrease_ttl(struct iphdr *iph) in ip_decrease_ttl() argument
268 u32 check = (__force u32)iph->check; in ip_decrease_ttl()
270 iph->check = (__force __sum16)(check + (check>=0xFFFF)); in ip_decrease_ttl()
271 return --iph->ttl; in ip_decrease_ttl()
323 void __ip_select_ident(struct net *net, struct iphdr *iph, int segs);
328 struct iphdr *iph = ip_hdr(skb); in ip_select_ident_segs() local
330 if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) { in ip_select_ident_segs()
337 iph->id = htons(inet_sk(sk)->inet_id); in ip_select_ident_segs()
340 iph->id = 0; in ip_select_ident_segs()
343 __ip_select_ident(net, iph, segs); in ip_select_ident_segs()
374 const struct iphdr *iph = skb_gro_network_header(skb); in inet_gro_compute_pseudo() local
376 return csum_tcpudp_nofold(iph->saddr, iph->daddr, in inet_gro_compute_pseudo()