diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-04-20 02:41:30 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-17 02:27:08 +0200 |
commit | c94d18955e8a1e239c063c62ddde00559c91840c (patch) | |
tree | cd6eece075ce45414a77fdc7b715cf14076b8ac0 /vrrpd/vrrp_ndisc.c | |
parent | doc: add VRRP documentation (diff) | |
download | frr-c94d18955e8a1e239c063c62ddde00559c91840c.tar.xz frr-c94d18955e8a1e239c063c62ddde00559c91840c.zip |
vrrpd: use frr_elevate_privs
Missed a few in the uplift.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r-- | vrrpd/vrrp_ndisc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vrrpd/vrrp_ndisc.c b/vrrpd/vrrp_ndisc.c index 8a439e97c..8081533eb 100644 --- a/vrrpd/vrrp_ndisc.c +++ b/vrrpd/vrrp_ndisc.c @@ -211,11 +211,10 @@ int vrrp_ndisc_una_send_all(struct vrrp_router *r) void vrrp_ndisc_init(void) { - vrrp_privs.change(ZPRIVS_RAISE); + frr_elevate_privs(&vrrp_privs) { ndisc_fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_IPV6)); } - vrrp_privs.change(ZPRIVS_LOWER); if (ndisc_fd > 0) { DEBUGD(&vrrp_dbg_sock, |