summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ip.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-08-18 13:04:52 +0000
committerbrian <brian@FreeBSD.org>2001-08-18 13:04:52 +0000
commitcfa5d0ff529c7c68582be2d05f344e470d61c5df (patch)
treea0dbd40d60699c490ea869291dd1aa069e6a2682 /usr.sbin/ppp/ip.c
parentfb43a54a68c52f79dc2f14a17ce4618c023e958e (diff)
downloadFreeBSD-src-cfa5d0ff529c7c68582be2d05f344e470d61c5df.zip
FreeBSD-src-cfa5d0ff529c7c68582be2d05f344e470d61c5df.tar.gz
Run correctly on a machine built without AF_INET6 support
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r--usr.sbin/ppp/ip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c
index 30b6cb6..38f5ed2 100644
--- a/usr.sbin/ppp/ip.c
+++ b/usr.sbin/ppp/ip.c
@@ -79,6 +79,7 @@
#include "ncp.h"
#include "bundle.h"
#include "tun.h"
+#include "probe.h"
#define OPCODE_QUERY 0
@@ -941,7 +942,7 @@ ipv6_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
{
int nb;
- if (bundle->ncp.ipv6cp.fsm.state != ST_OPENED) {
+ if (!probe.ipv6_available || bundle->ncp.ipv6cp.fsm.state != ST_OPENED) {
log_Printf(LogWARN, "ipv6_Input: IPV6CP not open - packet dropped\n");
m_freem(bp);
return NULL;
OpenPOWER on IntegriCloud