]> git.proxmox.com Git - mirror_frr.git/commit
zebra: netlink_request consolidataion
authorChirag Shah <chirag@cumulusnetworks.com>
Tue, 11 Dec 2018 05:33:16 +0000 (21:33 -0800)
committerChirag Shah <chirag@cumulusnetworks.com>
Mon, 31 Dec 2018 22:38:32 +0000 (14:38 -0800)
commit718f9b0f88116af5e035556058ba2e4bf803cf15
treea307d95761bff1db834a57f687eaf5d9fcab3d14
parente9e9a7f2b7ba6712ebc39d3eeecb89774ef5f08c
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>
zebra/if_netlink.c
zebra/kernel_netlink.c
zebra/rt_netlink.c