Re: [PATCH] ipv4: Fix off-by-one in route dump counter without netlink strict checking

2019-07-02 Thread David Miller
From: Stefano Brivio Date: Sat, 29 Jun 2019 19:55:08 +0200 > In commit ee28906fd7a1 ("ipv4: Dump route exceptions if requested") I > added a counter of per-node dumped routes (including actual routes and > exceptions), analogous to the existing counter for dumped nodes. Dumping > exceptions means

Re: [PATCH] ipv4: Fix off-by-one in route dump counter without netlink strict checking

2019-06-29 Thread Stefano Brivio
On Sat, 29 Jun 2019 19:55:08 +0200 Stefano Brivio wrote: > Always increment the per-node counter by one if we previously dumped > a regular route, so that it matches the current skip counter. > > Fixes: ee28906fd7a1 ("ipv4: Dump route exceptions if requested") > Signed-off-by: Stefano Brivio S

[PATCH] ipv4: Fix off-by-one in route dump counter without netlink strict checking

2019-06-29 Thread Stefano Brivio
In commit ee28906fd7a1 ("ipv4: Dump route exceptions if requested") I added a counter of per-node dumped routes (including actual routes and exceptions), analogous to the existing counter for dumped nodes. Dumping exceptions means we need to also keep track of how many routes are dumped for each no