On 11/27/16 9:50 PM, 张胜举 wrote:
> No, when dump request must be processed by multiple 'recv/recvmsg' system
> calls, 
> idx stores which dev/neigh the previous call have processed, so that next
> call will scan 
> from the right place.  

I have tested multiple calls and I do not see redundant information or missing 
information. 

> 
> So no matter whether the dev/neigh is filtered, the idx should be increased
> anyway.

No, it does not. Again, idx is the index in the list of devices/ of interest. 
It is NOT a device index nor is it the absolute index in the list. It is a 
relative index. The filter is the same across recvmsg calls so the idx count is 
absolutely fine.

Produce a test case that fails.

Reply via email to