diff options
Diffstat (limited to 'net/ipv4/ip_options.c')
| -rw-r--r-- | net/ipv4/ip_options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ip_options.c b/net/ipv4/ip_options.c index 32a35043c9f5..3db31bb9df50 100644 --- a/net/ipv4/ip_options.c +++ b/net/ipv4/ip_options.c | |||
| @@ -612,7 +612,7 @@ void ip_forward_options(struct sk_buff *skb) | |||
| 612 | } | 612 | } |
| 613 | } | 613 | } |
| 614 | 614 | ||
| 615 | int ip_options_rcv_srr(struct sk_buff *skb) | 615 | int ip_options_rcv_srr(struct sk_buff *skb, struct net_device *dev) |
| 616 | { | 616 | { |
| 617 | struct ip_options *opt = &(IPCB(skb)->opt); | 617 | struct ip_options *opt = &(IPCB(skb)->opt); |
| 618 | int srrspace, srrptr; | 618 | int srrspace, srrptr; |
| @@ -647,7 +647,7 @@ int ip_options_rcv_srr(struct sk_buff *skb) | |||
| 647 | 647 | ||
| 648 | orefdst = skb->_skb_refdst; | 648 | orefdst = skb->_skb_refdst; |
| 649 | skb_dst_set(skb, NULL); | 649 | skb_dst_set(skb, NULL); |
| 650 | err = ip_route_input(skb, nexthop, iph->saddr, iph->tos, skb->dev); | 650 | err = ip_route_input(skb, nexthop, iph->saddr, iph->tos, dev); |
| 651 | rt2 = skb_rtable(skb); | 651 | rt2 = skb_rtable(skb); |
| 652 | if (err || (rt2->rt_type != RTN_UNICAST && rt2->rt_type != RTN_LOCAL)) { | 652 | if (err || (rt2->rt_type != RTN_UNICAST && rt2->rt_type != RTN_LOCAL)) { |
| 653 | skb_dst_drop(skb); | 653 | skb_dst_drop(skb); |
