Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtnetlink: fix Link ListByKind response #233

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

boussole
Copy link

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.

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.

Signed-off-by: Andrey Grafin <conquistador@yandex-team.ru>
@boussole boussole force-pushed the link_list_by_kind_fix branch from 25821ed to 585c357 Compare August 8, 2024 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant