..
lmi
..
+ mppc
+ ..
ppp
..
pptpgre
netgraph7/bridge netgraph7/cisco netgraph7/deflate netgraph7/echo \
netgraph7/etf netgraph7/ether netgraph7/frame_relay netgraph7/hole \
netgraph7/iface netgraph7/ksocket netgraph7/l2tp netgraph7/lmi \
- netgraph7/ppp \
+ netgraph7/mppc netgraph7/ppp \
netgraph7/pptpgre netgraph7/socket netgraph7/tee netgraph7/vjc \
bus/cam bus/usb bus/pccard bus/pci bus/isa bus/ppbus bus/smbus \
netproto/atm netproto/ipsec netproto/ipx \
#include <netgraph7/ksocket/ng_ksocket.h>
#include <netgraph7/l2tp/ng_l2tp.h>
#include <netgraph7/lmi/ng_lmi.h>
-/*
#include <netgraph7/mppc/ng_mppc.h>
+/*
#include <netgraph7/one2many/ng_one2many.h>
*/
#include <netgraph7/ppp/ng_ppp.h>
COOKIE(KSOCKET),
COOKIE(L2TP),
COOKIE(LMI),
-/*
COOKIE(MPPC),
+/*
COOKIE(ONE2MANY),
+*/
COOKIE(PPP),
+/*
COOKIE(PPPOE),
*/
COOKIE(PPTPGRE),
netgraph7/ksocket/ng_ksocket.c optional netgraph7_ksocket
netgraph7/l2tp/ng_l2tp.c optional netgraph7_l2tp
netgraph7/lmi/ng_lmi.c optional netgraph7_lmi
-netgraph7/ng_mppc.c optional netgraph7_mppc_compression
-netgraph7/ng_mppc.c optional netgraph7_mppc_encryption
+netgraph7/mppc/ng_mppc.c optional netgraph7_mppc_compression
+netgraph7/mppc/ng_mppc.c optional netgraph7_mppc_encryption
netgraph7/ng_nat.c optional netgraph7_nat
netgraph7/ng_one2many.c optional netgraph7_one2many
netgraph7/netgraph/ng_parse.c optional netgraph7
ksocket \
l2tp \
lmi \
+ mppc \
netgraph \
ppp \
pptpgre \
--- /dev/null
+# $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $
+# $FreeBSD: src/sys/modules/netgraph/mppc/Makefile,v 1.3.2.4 2001/12/21 09:00:49 ru Exp $
+# $DragonFly: src/sys/netgraph/mppc/Makefile,v 1.3 2006/09/16 18:39:13 swildner Exp $
+
+KMOD= ng_mppc
+SRCS= ng_mppc.c opt_netgraph.h
+
+NETGRAPH_MPPC_COMPRESSION?= 0
+NETGRAPH_MPPC_ENCRYPTION?= 1
+
+.if ${NETGRAPH_MPPC_COMPRESSION} > 0
+# XXX These files don't exist yet, but hopefully someday they will...
+.PATH: ${.CURDIR}/../../net
+SRCS+= mppcc.c mppcd.c
+.endif
+
+.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
+.PATH: ${.CURDIR}/../../crypto
+.PATH: ${.CURDIR}/../../crypto/rc4
+SRCS+= rc4.c sha1.c
+.endif
+
+opt_netgraph.h:
+ touch ${.TARGET}
+.if ${NETGRAPH_MPPC_COMPRESSION} > 0
+ echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET}
+.endif
+.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
+ echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET}
+.endif
+
+.include <bsd.kmod.mk>
#include <sys/errno.h>
#include <sys/syslog.h>
-#include "ng_message.h"
-#include "netgraph.h"
+#include <netgraph7/ng_message.h>
+#include <netgraph7/netgraph.h>
#include "ng_mppc.h"
#include "opt_netgraph.h"