run IPCP only if we have IPv4 in kernel
Obtained from: NetBSD (rev 1.19) MFC after: 1 month
This commit is contained in:
parent
e3f4d3b5e8
commit
dda374a24d
@ -430,7 +430,13 @@ static const struct cp lcp = {
|
||||
};
|
||||
|
||||
static const struct cp ipcp = {
|
||||
PPP_IPCP, IDX_IPCP, CP_NCP, "ipcp",
|
||||
PPP_IPCP, IDX_IPCP,
|
||||
#ifdef INET /* don't run IPCP if there's no IPv4 support */
|
||||
CP_NCP,
|
||||
#else
|
||||
0,
|
||||
#endif
|
||||
"ipcp",
|
||||
sppp_ipcp_up, sppp_ipcp_down, sppp_ipcp_open, sppp_ipcp_close,
|
||||
sppp_ipcp_TO, sppp_ipcp_RCR, sppp_ipcp_RCN_rej, sppp_ipcp_RCN_nak,
|
||||
sppp_ipcp_tlu, sppp_ipcp_tld, sppp_ipcp_tls, sppp_ipcp_tlf,
|
||||
|
Loading…
x
Reference in New Issue
Block a user