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