summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/route.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-08-18 12:31:54 +0000
committerbrian <brian@FreeBSD.org>2001-08-18 12:31:54 +0000
commitfb43a54a68c52f79dc2f14a17ce4618c023e958e (patch)
treed87984ecf2a90f9fce0a0b2e7bb82a211979be6b /usr.sbin/ppp/route.c
parent7fdf4b8b81201c3569ba9b1b02163dafa5cd3bb5 (diff)
downloadFreeBSD-src-fb43a54a68c52f79dc2f14a17ce4618c023e958e.zip
FreeBSD-src-fb43a54a68c52f79dc2f14a17ce4618c023e958e.tar.gz
Build properly with -DNOINET6
Diffstat (limited to 'usr.sbin/ppp/route.c')
-rw-r--r--usr.sbin/ppp/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/route.c b/usr.sbin/ppp/route.c
index b29bce2..3472eb7 100644
--- a/usr.sbin/ppp/route.c
+++ b/usr.sbin/ppp/route.c
@@ -504,9 +504,9 @@ route_UpdateMTU(struct bundle *bundle)
for (cp = sp; cp < ep; cp += rtm->rtm_msglen) {
rtm = (struct rt_msghdr *)cp;
route_ParseHdr(rtm, sa);
- if (sa[RTAX_DST] && (sa[RTAX_DST]->sa_family == AF_INET ||
+ if (sa[RTAX_DST] && (sa[RTAX_DST]->sa_family == AF_INET
#ifndef NOINET6
- sa[RTAX_DST]->sa_family == AF_INET6
+ || sa[RTAX_DST]->sa_family == AF_INET6
#endif
) &&
sa[RTAX_GATEWAY] && rtm->rtm_index == bundle->iface->index) {
OpenPOWER on IntegriCloud