summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pppd/main.c
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2006-11-12 17:36:58 +0000
committerume <ume@FreeBSD.org>2006-11-12 17:36:58 +0000
commit123b22cab49d957a75e365be7d07f23fa26082d1 (patch)
tree05937561403a5398bf451b11d2cefcf5cbc84a4d /usr.sbin/pppd/main.c
parentec7b0d883d92cf6c453d056a4e76013949ea633a (diff)
downloadFreeBSD-src-123b22cab49d957a75e365be7d07f23fa26082d1.zip
FreeBSD-src-123b22cab49d957a75e365be7d07f23fa26082d1.tar.gz
Teach an IPV6CP to pppd(8).
The eui64.[ch] and ipv6cp.[ch] were taken from ppp-2.3.11. However, our stock pppd(8) doesn't provide option_t nor some utility functions. So, I made some hacks to adjust to our stock pppd(8). The sys_bsd.c part was taken from NetBSD with some modifications to adjust to our stock pppd(8). MFC after: 1 week
Diffstat (limited to 'usr.sbin/pppd/main.c')
-rw-r--r--usr.sbin/pppd/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/pppd/main.c b/usr.sbin/pppd/main.c
index c2d0abf..7bb104d 100644
--- a/usr.sbin/pppd/main.c
+++ b/usr.sbin/pppd/main.c
@@ -46,6 +46,9 @@ static char rcsid[] = "$FreeBSD$";
#include "fsm.h"
#include "lcp.h"
#include "ipcp.h"
+#ifdef INET6
+#include "ipv6cp.h"
+#endif
#include "upap.h"
#include "chap.h"
#include "ccp.h"
@@ -152,6 +155,9 @@ struct protent *protocols[] = {
&cbcp_protent,
#endif
&ipcp_protent,
+#ifdef INET6
+ &ipv6cp_protent,
+#endif
&ccp_protent,
#ifdef IPX_CHANGE
&ipxcp_protent,
OpenPOWER on IntegriCloud