From c3c06a51aaa0b0371831915681cbaefd04717cca Mon Sep 17 00:00:00 2001 From: vivek Date: Fri, 19 Feb 2016 14:18:35 -0800 Subject: [PATCH] Zebra: Tweak netlink socket creation function Since the netlink socket is per namespace and not per VRF, do not invoke vrf_socket(). Note: This needs to be changed when we support multiple namespaces - needed only for upstreaming. Signed-off-by: Vivek Venkatraman Reviewed-by: Donald Sharp Ticket: CM-9206 Reviewed By: CCR-4127 Testing Done: --- zebra/rt_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index ea3c45c778..0721df7a4d 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -161,7 +161,7 @@ netlink_socket (struct nlsock *nl, unsigned long groups, ns_id_t ns_id) return -1; } - sock = vrf_socket (AF_NETLINK, SOCK_RAW, NETLINK_ROUTE, ns_id); + sock = socket (AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (sock < 0) { zlog (NULL, LOG_ERR, "Can't open %s socket: %s", nl->name, -- 2.39.5