summaryrefslogtreecommitdiffstats
path: root/vrrpd/vrrp_ndisc.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-04-20 02:41:30 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-17 02:27:08 +0200
commitc94d18955e8a1e239c063c62ddde00559c91840c (patch)
treecd6eece075ce45414a77fdc7b715cf14076b8ac0 /vrrpd/vrrp_ndisc.c
parentdoc: add VRRP documentation (diff)
downloadfrr-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.c3
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,