From 26efbc7b99e06ed3c2f0bf83fde5f94c08d22889 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 11 Oct 2017 09:24:09 -0400 Subject: [PATCH] nhrpd: Let struct zebra_privs_t be available signed-off-by: Donald Sharp --- nhrpd/nhrp_main.c | 2 +- nhrpd/nhrpd.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nhrpd/nhrp_main.c b/nhrpd/nhrp_main.c index 3a7186c1d7..767907aa53 100644 --- a/nhrpd/nhrp_main.c +++ b/nhrpd/nhrp_main.c @@ -43,7 +43,7 @@ static zebra_capabilities_t _caps_p [] = { ZCAP_DAC_OVERRIDE, /* for now needed to write to /proc/sys/net/ipv4//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, diff --git a/nhrpd/nhrpd.h b/nhrpd/nhrpd.h index 3071371969..2ab40a4d39 100644 --- a/nhrpd/nhrpd.h +++ b/nhrpd/nhrpd.h @@ -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); -- 2.39.5