]> git.puffer.fish Git - mirror/frr.git/commitdiff
nhrpd: Let struct zebra_privs_t be available
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 11 Oct 2017 13:24:09 +0000 (09:24 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 23 Oct 2017 22:09:23 +0000 (18:09 -0400)
signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>

nhrpd/nhrp_main.c
nhrpd/nhrpd.h

index 3a7186c1d799dfcce0d315d258d11087c8be530f..767907aa531f9099f5d7d20e2a3b8758c3080bf3 100644 (file)
@@ -43,7 +43,7 @@ static zebra_capabilities_t _caps_p [] = {
        ZCAP_DAC_OVERRIDE,      /* for now needed to write to /proc/sys/net/ipv4/<if>/send_redirect */
 };
 
-static struct zebra_privs_t nhrpd_privs = {
+struct zebra_privs_t nhrpd_privs = {
 #if defined(FRR_USER) && defined(FRR_GROUP)
        .user = FRR_USER,
        .group = FRR_GROUP,
index 3071371969f4f4eca33b447c4938009a12c146c4..2ab40a4d39f117bcd54fec420b40bf57496f8e21 100644 (file)
@@ -303,6 +303,8 @@ struct nhrp_interface {
        } afi[AFI_MAX];
 };
 
+extern struct zebra_privs_t nhrpd_privs;
+
 int sock_open_unix(const char *path);
 
 void nhrp_interface_init(void);