summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_rfc1490.h
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-06-13 15:44:00 +0000
committerjulian <julian@FreeBSD.org>2004-06-13 15:44:00 +0000
commitdc9a24e5fa24af15022eb5ccfb420d0c55bc476e (patch)
treee02982ae9d89f38d216f0fc5b9b2048626c02bff /sys/netgraph/ng_rfc1490.h
parent4707be9db2b74eec181c39fa563612a16cbda5f8 (diff)
downloadFreeBSD-src-dc9a24e5fa24af15022eb5ccfb420d0c55bc476e.zip
FreeBSD-src-dc9a24e5fa24af15022eb5ccfb420d0c55bc476e.tar.gz
Add the capacity for the rfc1490 node to handle cisco style encasulation
which is often used alongside rfc1490 in frame relay links. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
Diffstat (limited to 'sys/netgraph/ng_rfc1490.h')
-rw-r--r--sys/netgraph/ng_rfc1490.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/netgraph/ng_rfc1490.h b/sys/netgraph/ng_rfc1490.h
index 3468e26..2950988 100644
--- a/sys/netgraph/ng_rfc1490.h
+++ b/sys/netgraph/ng_rfc1490.h
@@ -1,4 +1,3 @@
-
/*
* ng_rfc1490.h
*
@@ -45,7 +44,7 @@
/* Node type name */
#define NG_RFC1490_NODE_TYPE "rfc1490"
-#define NGM_RFC1490_COOKIE 861060632
+#define NGM_RFC1490_COOKIE 1086947474
/* Hook names */
#define NG_RFC1490_HOOK_DOWNSTREAM "downstream"
@@ -53,4 +52,10 @@
#define NG_RFC1490_HOOK_PPP "ppp"
#define NG_RFC1490_HOOK_ETHERNET "ethernet"
+/* Netgraph commands */
+enum {
+ NGM_RFC1490_SET_ENCAP, /* sets encapsulation method */
+ NGM_RFC1490_GET_ENCAP, /* gets current encapsulation method */
+};
+
#endif /* _NETGRAPH_NG_RFC1490_H_ */
OpenPOWER on IntegriCloud