babeld: Make the zebra_privs_t available for use

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-10-11 09:19:43 -04:00
parent 2c73b25897
commit 346526cc5b
2 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,7 @@ static zebra_capabilities_t _caps_p [] =
ZCAP_BIND ZCAP_BIND
}; };
static struct zebra_privs_t babeld_privs = struct zebra_privs_t babeld_privs =
{ {
#if defined(FRR_USER) #if defined(FRR_USER)
.user = FRR_USER, .user = FRR_USER,

View File

@ -113,6 +113,8 @@ struct babel
struct thread *t_update; /* timers */ struct thread *t_update; /* timers */
}; };
extern struct zebra_privs_t babeld_privs;
extern void babeld_quagga_init(void); extern void babeld_quagga_init(void);
extern int input_filter(const unsigned char *id, extern int input_filter(const unsigned char *id,
const unsigned char *prefix, unsigned short plen, const unsigned char *prefix, unsigned short plen,