summaryrefslogtreecommitdiffstats
path: root/src/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-12-10 21:26:40 +0000
committerRoy Marples <roy@marples.name>2019-12-10 21:26:40 +0000
commita7d959f815e5d717374865094c564ac36f98ffbd (patch)
tree9e5c3f17179440eeb694f21efe16996cfcb16df3 /src/ipv6nd.c
parent3ac9885e95854fd82dc498fbc3871a04b5ed1c69 (diff)
downloaddhcpcd-a7d959f815e5d717374865094c564ac36f98ffbd.tar.xz
privsep: prefer IN_PRIVSEP macros
Diffstat (limited to 'src/ipv6nd.c')
-rw-r--r--src/ipv6nd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c
index e7eec427..20016df5 100644
--- a/src/ipv6nd.c
+++ b/src/ipv6nd.c
@@ -286,7 +286,7 @@ ipv6nd_open(struct dhcpcd_ctx *ctx)
return -1;
ctx->nd_fd = fd;
- if (!(ctx->options & DHCPCD_PRIVSEP))
+ if (!(IN_PRIVSEP(ctx)))
eloop_event_add(ctx->eloop, fd, ipv6nd_handledata, ctx);
return fd;
}
@@ -366,7 +366,7 @@ ipv6nd_sendrsprobe(void *arg)
logdebugx("%s: sending Router Solicitation", ifp->name);
#ifdef PRIVSEP
- if (ifp->ctx->options & DHCPCD_PRIVSEP) {
+ if (IN_PRIVSEP(ifp->ctx)) {
if (ps_inet_sendnd(ifp, &msg) == -1)
logerr(__func__);
goto sent;
@@ -438,7 +438,7 @@ ipv6nd_sendadvertisement(void *arg)
logdebugx("%s: sending NA for %s", ifp->name, ia->saddr);
#ifdef PRIVSEP
- if (ifp->ctx->options & DHCPCD_PRIVSEP) {
+ if (IN_PRIVSEP(ifp->ctx)) {
if (ps_inet_sendnd(ifp, &msg) == -1)
logerr(__func__);
goto sent;
@@ -1883,7 +1883,7 @@ ipv6nd_startrs1(void *arg)
#endif
}
- if (!(ifp->ctx->options & DHCPCD_PRIVSEP)) {
+ if (!(IN_PRIVSEP(ifp->ctx))) {
#ifdef __sun
if (ipv6nd_open(ifp) == -1) {
logerr(__func__);