summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_patch.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix panic in ng_patch(4) caused by checksum flags being added to mbuf flags.melifaro2012-04-221-1/+1
| | | | | | | Tested by: Maxim Ignatenko <gelraen.ua@gmail.com> Approved by: kib(mentor) MFC after: 3 days
* Use M_WAITOK flag instead M_WAIT for malloc.ae2011-04-181-5/+6
| | | | | Suggested by: glebius MFC after: 1 week
* * Include sys/systm.h for KASSERT()ae2010-06-151-6/+3
| | | | | | | | * Remove unneeded includes and comment * Replace home made OFFSETOF() macro with standard offsetof() Pointed out by: bde Approved by: kib (mentor)
* Style(9) fixes:ae2010-06-101-31/+43
| | | | | | | | | | | * Sort includes * Replace #define<SPACE> to #define<TAB> * Split declarations and initializations * Split long lines Requested by: kib Approved by: kib (mentor) MFC after: 1 month
* New netgraph node ng_patch(4). It performs data modification of packetsae2010-06-091-0/+566
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
OpenPOWER on IntegriCloud