From 7e4a5049a909e56f254c0d76a7f2cd789a3254f8 Mon Sep 17 00:00:00 2001 From: ae Date: Wed, 9 Jun 2010 12:25:57 +0000 Subject: 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 Vadim Goncharov Discussed with: net@ Approved by: mav (mentor) MFC after: 1 month --- sys/modules/netgraph/Makefile | 1 + sys/modules/netgraph/patch/Makefile | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 sys/modules/netgraph/patch/Makefile (limited to 'sys/modules/netgraph') diff --git a/sys/modules/netgraph/Makefile b/sys/modules/netgraph/Makefile index 70861cb..dc44ac7 100644 --- a/sys/modules/netgraph/Makefile +++ b/sys/modules/netgraph/Makefile @@ -35,6 +35,7 @@ SUBDIR= async \ netflow \ netgraph \ one2many \ + patch \ pipe \ ppp \ pppoe \ 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 -- cgit v1.1