From 55cc853624aa12270e0786453e1f2fef6e047b17 Mon Sep 17 00:00:00 2001 From: Nuno Antunes Date: Fri, 9 Dec 2011 22:37:28 +0000 Subject: [PATCH] netgraph7: welcome ng_rfc1490. --- etc/mtree/BSD.include.dist | 2 ++ include/Makefile | 3 ++- lib/libnetgraph7/debug.c | 4 +--- sys/conf/files | 2 +- sys/netgraph7/Makefile | 2 +- sys/netgraph7/rfc1490/Makefile | 8 ++++++++ sys/netgraph7/{ => rfc1490}/ng_rfc1490.c | 6 +++--- sys/netgraph7/{ => rfc1490}/ng_rfc1490.h | 0 8 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 sys/netgraph7/rfc1490/Makefile rename sys/netgraph7/{ => rfc1490}/ng_rfc1490.c (99%) rename sys/netgraph7/{ => rfc1490}/ng_rfc1490.h (100%) diff --git a/etc/mtree/BSD.include.dist b/etc/mtree/BSD.include.dist index 65d4b90a39..2d2824578a 100644 --- a/etc/mtree/BSD.include.dist +++ b/etc/mtree/BSD.include.dist @@ -250,6 +250,8 @@ .. pptpgre .. + rfc1490 + .. socket .. tee diff --git a/include/Makefile b/include/Makefile index 7f0a41a855..e2cdf88375 100644 --- a/include/Makefile +++ b/include/Makefile @@ -73,7 +73,8 @@ LSUBDIRS= bus/cam bus/cam/scsi \ netgraph7/hub \ netgraph7/iface netgraph7/ksocket netgraph7/l2tp netgraph7/lmi \ netgraph7/mppc netgraph7/one2many netgraph7/ppp netgraph7/pppoe \ - netgraph7/pptpgre netgraph7/socket netgraph7/tee netgraph7/vjc \ + netgraph7/pptpgre netgraph7/rfc1490 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 \ netproto/key netproto/natm netproto/ncp netproto/smb \ diff --git a/lib/libnetgraph7/debug.c b/lib/libnetgraph7/debug.c index 9934d3a19f..2dc793bd29 100644 --- a/lib/libnetgraph7/debug.c +++ b/lib/libnetgraph7/debug.c @@ -87,8 +87,8 @@ #include #include #include -/* #include +/* #include #include #include @@ -160,9 +160,7 @@ static const struct ng_cookie cookies[] = { COOKIE(PPP), COOKIE(PPPOE), COOKIE(PPTPGRE), -/* COOKIE(RFC1490), -*/ COOKIE(SOCKET), /* COOKIE(SOURCE), diff --git a/sys/conf/files b/sys/conf/files index 77150b5cc1..ba24d9db50 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -1334,7 +1334,7 @@ netgraph7/ppp/ng_ppp.c optional netgraph7_ppp netgraph7/pppoe/ng_pppoe.c optional netgraph7_pppoe netgraph7/pptpgre/ng_pptpgre.c optional netgraph7_pptpgre netgraph7/ng_pred1.c optional netgraph7_pred1 -netgraph7/ng_rfc1490.c optional netgraph7_rfc1490 +netgraph7/rfc1490/ng_rfc1490.c optional netgraph7_rfc1490 netgraph7/socket/ng_socket.c optional netgraph7_socket netgraph7/ng_split.c optional netgraph7_split netgraph7/ng_sppp.c optional netgraph7_sppp diff --git a/sys/netgraph7/Makefile b/sys/netgraph7/Makefile index 95a528c433..4f2be7c726 100644 --- a/sys/netgraph7/Makefile +++ b/sys/netgraph7/Makefile @@ -25,13 +25,13 @@ SUBDIR= UI \ ppp \ pppoe \ pptpgre \ + rfc1490 \ socket \ tee \ vjc # eiface \ # fec \ # netgraph \ -# rfc1490 \ # socket \ # sync_ar \ # sync_sr \ diff --git a/sys/netgraph7/rfc1490/Makefile b/sys/netgraph7/rfc1490/Makefile new file mode 100644 index 0000000000..6645b0eeb5 --- /dev/null +++ b/sys/netgraph7/rfc1490/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD: src/sys/modules/netgraph/rfc1490/Makefile,v 1.1.4.3 2001/12/21 09:00:50 ru Exp $ +# $DragonFly: src/sys/netgraph/rfc1490/Makefile,v 1.2 2003/06/17 04:28:46 dillon Exp $ +# $Whistle: Makefile,v 1.2 1999/01/19 19:39:22 archie Exp $ + +KMOD= ng_rfc1490 +SRCS= ng_rfc1490.c + +.include diff --git a/sys/netgraph7/ng_rfc1490.c b/sys/netgraph7/rfc1490/ng_rfc1490.c similarity index 99% rename from sys/netgraph7/ng_rfc1490.c rename to sys/netgraph7/rfc1490/ng_rfc1490.c index 6c3e1d1584..2c6985a4b1 100644 --- a/sys/netgraph7/ng_rfc1490.c +++ b/sys/netgraph7/rfc1490/ng_rfc1490.c @@ -61,9 +61,9 @@ #include #include -#include "ng_message.h" -#include "netgraph.h" -#include "ng_parse.h" +#include +#include +#include #include "ng_rfc1490.h" /* diff --git a/sys/netgraph7/ng_rfc1490.h b/sys/netgraph7/rfc1490/ng_rfc1490.h similarity index 100% rename from sys/netgraph7/ng_rfc1490.h rename to sys/netgraph7/rfc1490/ng_rfc1490.h -- 2.41.0