summaryrefslogtreecommitdiffstats
path: root/ripngd/ripngd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ripngd/ripngd.c')
-rw-r--r--ripngd/ripngd.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index df5f31cf..94a5efbc 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -34,7 +34,6 @@
#include "distribute.h"
#include "plist.h"
#include "routemap.h"
-#include "privs.c"
#include "if_rmap.h"
#include "ripngd/ripngd.h"
@@ -53,8 +52,6 @@ enum
ripng_changed_route,
};
-extern struct zebra_privs_t ripngd_privs;
-
/* Prototypes. */
void
ripng_output_process (struct interface *, struct sockaddr_in6 *, int);
@@ -156,19 +153,12 @@ ripng_make_socket (void)
#endif /* SIN6_LEN */
ripaddr.sin6_port = htons (RIPNG_PORT_DEFAULT);
- if (ripngd_privs.change (ZPRIVS_RAISE))
- zlog_err ("ripng_make_socket: could not raise privs");
-
ret = bind (sock, (struct sockaddr *) &ripaddr, sizeof (ripaddr));
if (ret < 0)
{
zlog (NULL, LOG_ERR, "Can't bind ripng socket: %s.", strerror (errno));
return ret;
}
-
- if (ripngd_privs.change (ZPRIVS_LOWER))
- zlog_err ("ripng_make_socket: could not lower privs");
-
return sock;
}
@@ -1707,7 +1697,7 @@ ripng_output_process (struct interface *ifp, struct sockaddr_in6 *to,
ret = route_map_apply (ripng->route_map[rinfo->type].map,
(struct prefix *) p, RMAP_RIPNG,
- &rinfo);
+ rinfo);
if (ret == RMAP_DENYMATCH)
{