Loading net/ipv4/ip_forward.c +1 −5 Original line number Original line Diff line number Diff line Loading @@ -76,16 +76,12 @@ int ip_forward(struct sk_buff *skb) * that reaches zero, we must reply an ICMP control message telling * that reaches zero, we must reply an ICMP control message telling * that the packet's lifetime expired. * that the packet's lifetime expired. */ */ if (skb->nh.iph->ttl <= 1) iph = skb->nh.iph; if (iph->ttl <= 1) goto too_many_hops; goto too_many_hops; if (!xfrm4_route_forward(skb)) if (!xfrm4_route_forward(skb)) goto drop; goto drop; iph = skb->nh.iph; rt = (struct rtable*)skb->dst; rt = (struct rtable*)skb->dst; if (opt->is_strictroute && rt->rt_dst != rt->rt_gateway) if (opt->is_strictroute && rt->rt_dst != rt->rt_gateway) Loading Loading
net/ipv4/ip_forward.c +1 −5 Original line number Original line Diff line number Diff line Loading @@ -76,16 +76,12 @@ int ip_forward(struct sk_buff *skb) * that reaches zero, we must reply an ICMP control message telling * that reaches zero, we must reply an ICMP control message telling * that the packet's lifetime expired. * that the packet's lifetime expired. */ */ if (skb->nh.iph->ttl <= 1) iph = skb->nh.iph; if (iph->ttl <= 1) goto too_many_hops; goto too_many_hops; if (!xfrm4_route_forward(skb)) if (!xfrm4_route_forward(skb)) goto drop; goto drop; iph = skb->nh.iph; rt = (struct rtable*)skb->dst; rt = (struct rtable*)skb->dst; if (opt->is_strictroute && rt->rt_dst != rt->rt_gateway) if (opt->is_strictroute && rt->rt_dst != rt->rt_gateway) Loading