rtnetlink icon indicating copy to clipboard operation
rtnetlink copied to clipboard

rtnetlink: fix Link ListByKind response

Open boussole opened this issue 7 months ago • 0 comments

the linux kernel handles a RTM_GETLINK request even in case of incorrent kind filter. if it finds requested kind it responds with a list of this kind of links and marks every message in a response by NLM_F_DUMP_FILTERED flag. Otherwise it sends all available links w/o NLF_F_DUMP_FILTERED. So, looks much better to return to a callee empty link list if there are no links of requested kind.

boussole avatar Jul 16 '24 18:07 boussole