summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-08-13 15:47:23 +0200
committerDavid Lamparter <equinox@diac24.net>2019-09-03 17:18:35 +0200
commit0cf6db21eca516d825431d4a747748a94c890aad (patch)
tree9cd6d2fa6df5f91024a4edc160d4c759bd93d942 /ospfd
parenttools: extend checkpatch.pl for frr_{with,each} (diff)
downloadfrr-0cf6db21eca516d825431d4a747748a94c890aad.tar.xz
frr-0cf6db21eca516d825431d4a747748a94c890aad.zip
*: frr_elevate_privs -> frr_with_privs
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_network.c2
-rw-r--r--ospfd/ospfd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c
index 1415a6e8b..b8e2dac70 100644
--- a/ospfd/ospf_network.c
+++ b/ospfd/ospf_network.c
@@ -190,7 +190,7 @@ int ospf_sock_init(struct ospf *ospf)
/* silently return since VRF is not ready */
return -1;
}
- frr_elevate_privs(&ospfd_privs) {
+ frr_with_privs(&ospfd_privs) {
ospf_sock = vrf_socket(AF_INET, SOCK_RAW, IPPROTO_OSPFIGP,
ospf->vrf_id, ospf->name);
if (ospf_sock < 0) {
diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c
index b91a55f63..e48a5b4d3 100644
--- a/ospfd/ospfd.c
+++ b/ospfd/ospfd.c
@@ -2097,7 +2097,7 @@ static int ospf_vrf_enable(struct vrf *vrf)
old_vrf_id);
if (old_vrf_id != ospf->vrf_id) {
- frr_elevate_privs(&ospfd_privs) {
+ frr_with_privs(&ospfd_privs) {
/* stop zebra redist to us for old vrf */
zclient_send_dereg_requests(zclient,
old_vrf_id);