diff options
author | Brian Somers <brian@FreeBSD.org> | 2001-08-18 13:04:52 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 2001-08-18 13:04:52 +0000 |
commit | c5109a323c15887ea535d49b4de8fd314bd5cb8b (patch) | |
tree | a0dbd40d60699c490ea869291dd1aa069e6a2682 /usr.sbin/ppp/ip.c | |
parent | 1d3d76d47f932538c245ca363dbd93a7f1345b01 (diff) | |
download | src-c5109a323c15887ea535d49b4de8fd314bd5cb8b.tar.gz src-c5109a323c15887ea535d49b4de8fd314bd5cb8b.zip |
Run correctly on a machine built without AF_INET6 support
Notes
Notes:
svn path=/head/; revision=81888
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r-- | usr.sbin/ppp/ip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c index 30b6cb6f668b..38f5ed232933 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; |