summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2010-06-09 12:25:57 +0000
committerae <ae@FreeBSD.org>2010-06-09 12:25:57 +0000
commit7e4a5049a909e56f254c0d76a7f2cd789a3254f8 (patch)
tree2879e4bf20198fb81dbfc8b7d824548eee01a238 /sys/conf
parent946bad94504213222b8c7a23425b35a0e20a26bd (diff)
downloadFreeBSD-src-7e4a5049a909e56f254c0d76a7f2cd789a3254f8.zip
FreeBSD-src-7e4a5049a909e56f254c0d76a7f2cd789a3254f8.tar.gz
New netgraph node ng_patch(4). It performs data modification of packets
passing through. Modifications are restricted to a subset of C language operations on unsigned integers of 8, 16, 32 or 64 bit size. These are: set to new value (=), addition (+=), subtraction (-=), multiplication (*=), division (/=), negation (= -), bitwise AND (&=), bitwise OR (|=), bitwise eXclusive OR (^=), shift left (<<=), shift right (>>=). Several operations are all applied to a packet sequentially in order they were specified by user. Submitted by: Maxim Ignatenko <gelraen.ua at gmail.com> Vadim Goncharov <vadimnuclight at tpu.ru> Discussed with: net@ Approved by: mav (mentor) MFC after: 1 month
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/NOTES1
-rw-r--r--sys/conf/files1
-rw-r--r--sys/conf/options1
3 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index 6d12f99..8cad894 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -706,6 +706,7 @@ options NETGRAPH_MPPC_ENCRYPTION
options NETGRAPH_NETFLOW
options NETGRAPH_NAT
options NETGRAPH_ONE2MANY
+options NETGRAPG_PATCH
options NETGRAPH_PIPE
options NETGRAPH_PPP
options NETGRAPH_PPPOE
diff --git a/sys/conf/files b/sys/conf/files
index 12f5e4d..0808e7f 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -2470,6 +2470,7 @@ netgraph/ng_mppc.c optional netgraph_mppc_compression | \
netgraph/ng_nat.c optional netgraph_nat inet libalias
netgraph/ng_one2many.c optional netgraph_one2many
netgraph/ng_parse.c optional netgraph
+netgraph/ng_patch.c optional netgraph_patch
netgraph/ng_pipe.c optional netgraph_pipe
netgraph/ng_ppp.c optional netgraph_ppp
netgraph/ng_pppoe.c optional netgraph_pppoe
diff --git a/sys/conf/options b/sys/conf/options
index c58d901..9563cc8 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -486,6 +486,7 @@ NETGRAPH_MPPC_ENCRYPTION opt_netgraph.h
NETGRAPH_NAT opt_netgraph.h
NETGRAPH_NETFLOW opt_netgraph.h
NETGRAPH_ONE2MANY opt_netgraph.h
+NETGRAPH_PATCH opt_netgraph.h
NETGRAPH_PIPE opt_netgraph.h
NETGRAPH_PPP opt_netgraph.h
NETGRAPH_PPPOE opt_netgraph.h
OpenPOWER on IntegriCloud