aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/ip.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2001-08-18 13:04:52 +0000
committerBrian Somers <brian@FreeBSD.org>2001-08-18 13:04:52 +0000
commitc5109a323c15887ea535d49b4de8fd314bd5cb8b (patch)
treea0dbd40d60699c490ea869291dd1aa069e6a2682 /usr.sbin/ppp/ip.c
parent1d3d76d47f932538c245ca363dbd93a7f1345b01 (diff)
downloadsrc-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.c3
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;