]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Zebra: Tweak netlink socket creation function
authorvivek <vivek@cumulusnetworks.com>
Fri, 19 Feb 2016 22:18:35 +0000 (14:18 -0800)
committervivek <vivek@cumulusnetworks.com>
Fri, 19 Feb 2016 22:18:35 +0000 (14:18 -0800)
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 <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-9206
Reviewed By: CCR-4127
Testing Done:

zebra/rt_netlink.c

index ea3c45c778020c022451b223c35b5bda84ade423..0721df7a4d9624af06301c79b638c3ee5ed8e5b6 100644 (file)
@@ -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,