diff options
Diffstat (limited to 'net/ipv4/ip_input.c')
-rw-r--r-- | net/ipv4/ip_input.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c index 26eccc5bab1c..8590144ca330 100644 --- a/net/ipv4/ip_input.c +++ b/net/ipv4/ip_input.c | |||
@@ -210,9 +210,8 @@ static int ip_local_deliver_finish(struct sk_buff *skb) | |||
210 | int ret; | 210 | int ret; |
211 | 211 | ||
212 | if (!net_eq(net, &init_net) && !ipprot->netns_ok) { | 212 | if (!net_eq(net, &init_net) && !ipprot->netns_ok) { |
213 | if (net_ratelimit()) | 213 | net_info_ratelimited("%s: proto %d isn't netns-ready\n", |
214 | printk("%s: proto %d isn't netns-ready\n", | 214 | __func__, protocol); |
215 | __func__, protocol); | ||
216 | kfree_skb(skb); | 215 | kfree_skb(skb); |
217 | goto out; | 216 | goto out; |
218 | } | 217 | } |
@@ -298,10 +297,10 @@ static inline bool ip_rcv_options(struct sk_buff *skb) | |||
298 | 297 | ||
299 | if (in_dev) { | 298 | if (in_dev) { |
300 | if (!IN_DEV_SOURCE_ROUTE(in_dev)) { | 299 | if (!IN_DEV_SOURCE_ROUTE(in_dev)) { |
301 | if (IN_DEV_LOG_MARTIANS(in_dev) && | 300 | if (IN_DEV_LOG_MARTIANS(in_dev)) |
302 | net_ratelimit()) | 301 | net_info_ratelimited("source route option %pI4 -> %pI4\n", |
303 | pr_info("source route option %pI4 -> %pI4\n", | 302 | &iph->saddr, |
304 | &iph->saddr, &iph->daddr); | 303 | &iph->daddr); |
305 | goto drop; | 304 | goto drop; |
306 | } | 305 | } |
307 | } | 306 | } |