Lines Matching defs:iph
34 static __always_inline int ip_decrease_ttl(struct iphdr *iph)
36 u32 check = (__force u32)iph->check;
39 iph->check = (__force __sum16)(check + (check >= 0xFFFF));
40 return --iph->ttl;
50 struct iphdr *iph;
63 iph = data + nh_off;
65 if (iph + 1 > data_end)
68 if (iph->ttl <= 1)
72 fib_params.tos = iph->tos;
73 fib_params.l4_protocol = iph->protocol;
76 fib_params.tot_len = ntohs(iph->tot_len);
77 fib_params.ipv4_src = iph->saddr;
78 fib_params.ipv4_dst = iph->daddr;
134 ip_decrease_ttl(iph);