From 718f9b0f88116af5e035556058ba2e4bf803cf15 Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Mon, 10 Dec 2018 21:33:16 -0800 Subject: 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 --- zebra/kernel_netlink.c | 1 - 1 file changed, 1 deletion(-) (limited to 'zebra/kernel_netlink.c') diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c index afc3985854..894200b96e 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; -- cgit v1.2.3