summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/link.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/link.c')
-rw-r--r--usr.sbin/ppp/link.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.sbin/ppp/link.c b/usr.sbin/ppp/link.c
index 7b81fd9..6a2481c 100644
--- a/usr.sbin/ppp/link.c
+++ b/usr.sbin/ppp/link.c
@@ -29,6 +29,7 @@
#include <sys/types.h>
#include <netinet/in_systm.h>
+#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <netinet/ip.h>
@@ -57,8 +58,10 @@
#include "mp.h"
#include "iplist.h"
#include "slcompress.h"
-#include "ipcp.h"
+#include "ncpaddr.h"
#include "ip.h"
+#include "ipcp.h"
+#include "ipv6cp.h"
#include "auth.h"
#include "pap.h"
#include "chap.h"
@@ -317,10 +320,16 @@ static const struct {
u_short proto;
struct mbuf *(*fn)(struct bundle *, struct link *, struct mbuf *);
} despatcher[] = {
- { PROTO_IP, ip_Input },
+ { PROTO_IP, ipv4_Input },
+#ifndef NOINET6
+ { PROTO_IPV6, ipv6_Input },
+#endif
{ PROTO_MP, mp_Input },
{ PROTO_LCP, lcp_Input },
{ PROTO_IPCP, ipcp_Input },
+#ifndef NOINET6
+ { PROTO_IPV6CP, ipv6cp_Input },
+#endif
{ PROTO_PAP, pap_Input },
{ PROTO_CHAP, chap_Input },
{ PROTO_CCP, ccp_Input },
OpenPOWER on IntegriCloud