Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/bouyer-socketcan]: src/sys/rump/net/lib/libl2tp 1177554



details:   https://anonhg.NetBSD.org/src/rev/102578c28437
branches:  bouyer-socketcan
changeset: 820841:102578c28437
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Thu Feb 16 08:39:11 2017 +0000

description:
1177554

diffstat:

 sys/rump/net/lib/libl2tp/L2TP.ioconf      |   7 +++++
 sys/rump/net/lib/libl2tp/Makefile         |  16 +++++++++++
 sys/rump/net/lib/libl2tp/l2tp_component.c |  42 +++++++++++++++++++++++++++++++
 3 files changed, 65 insertions(+), 0 deletions(-)

diffs (77 lines):

diff -r 246471191f11 -r 102578c28437 sys/rump/net/lib/libl2tp/L2TP.ioconf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/net/lib/libl2tp/L2TP.ioconf      Thu Feb 16 08:39:11 2017 +0000
@@ -0,0 +1,7 @@
+#      $NetBSD: L2TP.ioconf,v 1.1.6.2 2017/02/16 08:39:11 knakahara Exp $
+
+ioconf         l2tp
+
+include                "conf/files"
+
+pseudo-device   l2tp
diff -r 246471191f11 -r 102578c28437 sys/rump/net/lib/libl2tp/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/net/lib/libl2tp/Makefile Thu Feb 16 08:39:11 2017 +0000
@@ -0,0 +1,16 @@
+#      $NetBSD: Makefile,v 1.1.6.2 2017/02/16 08:39:11 knakahara Exp $
+#
+
+.PATH: ${.CURDIR}/../../../../net ${.CURDIR}/../../../../netinet       \
+       ${.CURDIR}/../../../../netinet6
+
+LIB=   rumpnet_l2tp
+COMMENT= L2TPv3 interface
+
+IOCONF=        L2TP.ioconf
+SRCS=  if_l2tp.c in_l2tp.c in6_l2tp.c
+
+SRCS+= l2tp_component.c
+
+.include <bsd.lib.mk>
+.include <bsd.klinks.mk>
diff -r 246471191f11 -r 102578c28437 sys/rump/net/lib/libl2tp/l2tp_component.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/net/lib/libl2tp/l2tp_component.c Thu Feb 16 08:39:11 2017 +0000
@@ -0,0 +1,42 @@
+/*     $NetBSD: l2tp_component.c,v 1.1.6.2 2017/02/16 08:39:11 knakahara Exp $ */
+
+/*
+ * Copyright (c) 2017 Internet Initiative Japan Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include <sys/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: l2tp_component.c,v 1.1.6.2 2017/02/16 08:39:11 knakahara Exp $");
+
+#include <sys/param.h>
+
+#include <rump-sys/kern.h>
+
+int l2tpattach(int);
+
+RUMP_COMPONENT(RUMP_COMPONENT_NET_IF)
+{
+
+       l2tpattach(0);
+}



Home | Main Index | Thread Index | Old Index