diff options
Diffstat (limited to 'net/ipv4/ipconfig.c')
-rw-r--r-- | net/ipv4/ipconfig.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index f267280d8709..24a3df9890e1 100644 --- a/net/ipv4/ipconfig.c +++ b/net/ipv4/ipconfig.c | |||
@@ -955,8 +955,7 @@ static int __init ic_bootp_recv(struct sk_buff *skb, struct net_device *dev, str | |||
955 | 955 | ||
956 | /* Fragments are not supported */ | 956 | /* Fragments are not supported */ |
957 | if (ip_is_fragment(h)) { | 957 | if (ip_is_fragment(h)) { |
958 | if (net_ratelimit()) | 958 | net_err_ratelimited("DHCP/BOOTP: Ignoring fragmented reply\n"); |
959 | pr_err("DHCP/BOOTP: Ignoring fragmented reply\n"); | ||
960 | goto drop; | 959 | goto drop; |
961 | } | 960 | } |
962 | 961 | ||
@@ -1004,16 +1003,14 @@ static int __init ic_bootp_recv(struct sk_buff *skb, struct net_device *dev, str | |||
1004 | /* Is it a reply to our BOOTP request? */ | 1003 | /* Is it a reply to our BOOTP request? */ |
1005 | if (b->op != BOOTP_REPLY || | 1004 | if (b->op != BOOTP_REPLY || |
1006 | b->xid != d->xid) { | 1005 | b->xid != d->xid) { |
1007 | if (net_ratelimit()) | 1006 | net_err_ratelimited("DHCP/BOOTP: Reply not for us, op[%x] xid[%x]\n", |
1008 | pr_err("DHCP/BOOTP: Reply not for us, op[%x] xid[%x]\n", | 1007 | b->op, b->xid); |
1009 | b->op, b->xid); | ||
1010 | goto drop_unlock; | 1008 | goto drop_unlock; |
1011 | } | 1009 | } |
1012 | 1010 | ||
1013 | /* Is it a reply for the device we are configuring? */ | 1011 | /* Is it a reply for the device we are configuring? */ |
1014 | if (b->xid != ic_dev_xid) { | 1012 | if (b->xid != ic_dev_xid) { |
1015 | if (net_ratelimit()) | 1013 | net_err_ratelimited("DHCP/BOOTP: Ignoring delayed packet\n"); |
1016 | pr_err("DHCP/BOOTP: Ignoring delayed packet\n"); | ||
1017 | goto drop_unlock; | 1014 | goto drop_unlock; |
1018 | } | 1015 | } |
1019 | 1016 | ||