summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_sppp.h
diff options
context:
space:
mode:
authorrik <rik@FreeBSD.org>2004-03-24 17:24:01 +0000
committerrik <rik@FreeBSD.org>2004-03-24 17:24:01 +0000
commitf062ee581efd7818cff2a968dea0ee508ac27522 (patch)
tree1fdba100341080f741dc6592fe2f53205030368d /sys/netgraph/ng_sppp.h
parent5d9dc609bbb856e76072a16c2588bc4182fba433 (diff)
downloadFreeBSD-src-f062ee581efd7818cff2a968dea0ee508ac27522.zip
FreeBSD-src-f062ee581efd7818cff2a968dea0ee508ac27522.tar.gz
sppp (4) to netgraph (4) node. As always: I'l connect it to the
system after extra check. Approved by: imp (mentor) Approved by: julian (in general)
Diffstat (limited to 'sys/netgraph/ng_sppp.h')
-rw-r--r--sys/netgraph/ng_sppp.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/sys/netgraph/ng_sppp.h b/sys/netgraph/ng_sppp.h
new file mode 100644
index 0000000..2616f03
--- /dev/null
+++ b/sys/netgraph/ng_sppp.h
@@ -0,0 +1,42 @@
+/*
+ * ng_sppp.h Netgraph to Sppp module.
+ *
+ * Copyright (C) 2002-2004 Cronyx Engineering.
+ * Copyright (C) 2002-2004 Roman Kurakin <rik@cronyx.ru>
+ *
+ * This software is distributed with NO WARRANTIES, not even the implied
+ * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * Authors grant any other persons or organisations a permission to use,
+ * modify and redistribute this software in source and binary forms,
+ * as long as this message is kept with the software, all derivative
+ * works or modified versions.
+ *
+ * $FreeBSD$
+ * Cronyx Id: ng_sppp.h,v 1.1.2.6 2004/03/01 15:17:21 rik Exp $
+ */
+
+#ifndef _NETGRAPH_SPPP_H_
+#define _NETGRAPH_SPPP_H_
+
+/* Node type name and magic cookie */
+#define NG_SPPP_NODE_TYPE "sppp"
+#define NGM_SPPP_COOKIE 1040804655
+
+/* Interface base name */
+#define NG_SPPP_IFACE_NAME "sppp"
+#define NG_SPPP_IFACE_NAME_MAX 15
+
+/* My hook names */
+#define NG_SPPP_HOOK_DOWNSTREAM "downstream"
+
+/* Netgraph commands */
+enum {
+ NGM_SPPP_GET_IFNAME = 1, /* returns struct ng_sppp_ifname */
+};
+
+struct ng_sppp_ifname {
+ char ngif_name[NG_SPPP_IFACE_NAME_MAX + 1];
+};
+
+#endif /* _NETGRAPH_SPPP_H_ */
OpenPOWER on IntegriCloud