]> git.baikalelectronics.ru Git - kernel.git/commit
neigh: some entries can be skipped during dumping
authorGautam Kachroo <gk@aristanetworks.com>
Fri, 6 Feb 2009 08:52:04 +0000 (00:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Feb 2009 08:52:04 +0000 (00:52 -0800)
commit0695479606a52742dcad704f2514631bf508c1b8
treed1961466cef6bae0cfa44f656a909ef8349b56c6
parent59d7a1622675e3eb5aaf1e328964ed2656de5db9
neigh: some entries can be skipped during dumping

neightbl_dump_info and neigh_dump_table  can skip entries if the
*fill*info functions return an error. This results in an incomplete
dump ((invoked by netlink requests for RTM_GETNEIGHTBL or
RTM_GETNEIGH)

nidx and idx should not be incremented if the current entry was not
placed in the output buffer

Signed-off-by: Gautam Kachroo <gk@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c