]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix device address listing for ipv4.
authorStephen Hemminger <shemminger@linux-foundation.org>
Thu, 20 Sep 2007 19:31:22 +0000 (12:31 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 26 Sep 2007 17:54:42 +0000 (10:54 -0700)
commitae305630391b73d55aa331f9ee03f5d9bfeba5b0
tree65f09bc0fab7d2ebdae107ecd6c90fb447a5cfb1
parent5702223b18e7cf6632aa1b6e8d85c28878db526d
Fix device address listing for ipv4.

commit 596e41509550447b030f7b16adaeb0138ab585a8 in mainline

Bug: http://bugzilla.kernel.org/show_bug.cgi?id=8876

Not all ips are shown by "ip addr show" command when IPs number assigned to an
interface is more than 60-80 (in fact it depends on broadcast/label etc
presence on each address).

Steps to reproduce:
It's terribly simple to reproduce:

# for i in $(seq 1 100); do ip ad add 10.0.$i.1/24 dev eth10 ; done
# ip addr show

this will _not_ show all IPs.
Looks like the problem is in netlink/ipv4 message processing.

This is fix from bug submitter, it looks correct.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/devinet.c