summaryrefslogtreecommitdiffstats
path: root/sys/modules/netgraph/patch/Makefile
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/modules/netgraph/patch/Makefile
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/modules/netgraph/patch/Makefile')
-rw-r--r--sys/modules/netgraph/patch/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/modules/netgraph/patch/Makefile b/sys/modules/netgraph/patch/Makefile
new file mode 100644
index 0000000..b6c4741
--- /dev/null
+++ b/sys/modules/netgraph/patch/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= ng_patch
+SRCS= ng_patch.c
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud