Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202697
b: refs/heads/master
c: 6e8b11b
h: refs/heads/master
i:
  202695: 5487343
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 8, 2010
1 parent b542f46 commit 5894cb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ed7865a47d4759e85bbd7bed44bee411d868eaad
refs/heads/master: 6e8b11b43b0c2e901734e2cdd70c6e325a90c4ef
6 changes: 2 additions & 4 deletions trunk/net/ipv4/ip_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,18 +293,16 @@ static inline int ip_rcv_options(struct sk_buff *skb)
}

if (unlikely(opt->srr)) {
struct in_device *in_dev = in_dev_get(dev);
struct in_device *in_dev = __in_dev_get_rcu(dev);

if (in_dev) {
if (!IN_DEV_SOURCE_ROUTE(in_dev)) {
if (IN_DEV_LOG_MARTIANS(in_dev) &&
net_ratelimit())
printk(KERN_INFO "source route option %pI4 -> %pI4\n",
&iph->saddr, &iph->daddr);
in_dev_put(in_dev);
goto drop;
}

in_dev_put(in_dev);
}

if (ip_options_rcv_srr(skb))
Expand Down

0 comments on commit 5894cb7

Please sign in to comment.