diff options
author | Chirag Shah <chirag@cumulusnetworks.com> | 2018-12-11 06:33:16 +0100 |
---|---|---|
committer | Chirag Shah <chirag@cumulusnetworks.com> | 2018-12-31 23:38:32 +0100 |
commit | 718f9b0f88116af5e035556058ba2e4bf803cf15 (patch) | |
tree | a307d95761bff1db834a57f687eaf5d9fcab3d14 /zebra/kernel_netlink.c | |
parent | Merge pull request #3546 from opensourcerouting/ospf-show-neighbor-fix (diff) | |
download | frr-718f9b0f88116af5e035556058ba2e4bf803cf15.tar.xz frr-718f9b0f88116af5e035556058ba2e4bf803cf15.zip |
zebra: netlink_request consolidataion
Make netlink_request api generic where it can be used
for dump or querying specific information request.
nelink request nlm flags (NLM_F_ROOT | NLM_F_MATCH) are
used to dump purpose, if client wants to query spcific
MAC or IP using netlink_request does not require to set
them.
nlm struct is passed by the caller of netlink_request,
it can also set the nlm request flags.
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'zebra/kernel_netlink.c')
-rw-r--r-- | zebra/kernel_netlink.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c index afc398585..894200b96 100644 --- a/zebra/kernel_netlink.c +++ b/zebra/kernel_netlink.c @@ -1039,7 +1039,6 @@ int netlink_request(struct nlsock *nl, struct nlmsghdr *n) } /* Fill common fields for all requests. */ - n->nlmsg_flags = NLM_F_ROOT | NLM_F_MATCH | NLM_F_REQUEST; n->nlmsg_pid = nl->snl.nl_pid; n->nlmsg_seq = ++nl->seq; |