summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_pipe.c
Commit message (Collapse)AuthorAgeFilesLines
* Assume the link to be dead if bit error rate (BER) parameter is set to 1.zec2011-05-241-1/+30
| | | | | | | | | | | When a transition from link alive to link dead configuration or vice versa occurs, notify any upstream and / or downstream peers using NGM_FLOW messagges. Link state notification using NGM_FLOW messages is modelled around around already existing code in ng_ether.c. MFC after: 3 days
* Node constructor methods are supposed to be called in syscallglebius2011-04-181-3/+1
| | | | | | | context always. Convert nodes to consistently use M_WAITOK flag for memory allocation. Reviewed by: julian
* Simplify ng_pipe locking model by relying on the netgraph frameworkzec2010-11-241-147/+85
| | | | | | | | | | | | | | | | | to provide serialization of calls into the node, which is accomplished by markng the node as single-threaded (NGF_FORCE_WRITER). The price we pay is that each ng_pipe instance now has its own callout handler which polls for queued frames on each clock tick, as long as the pipe has any frames in its internal queues. OTOH, we got rid of the global ng_pipe mutex, so from now on multiple ng_pipe instances can operate in parallel. This change also fixes counting of forwarded frames when an ng_pipe node is not enforcing any packet impairments. While here, attempt to improve adherance to style(9) throughout otherwise mostly unreadable code. MFC after: 3 days
* Fix a double-free bug which can occur if both bit error rate and packetzec2010-07-061-2/+3
| | | | | | | duplication probability are configured on a ng_pipe node. Submitted by: Jeffrey Ahrenholtz MFC after: 3 days
* Avoid undefined behaviour.trasz2010-04-301-8/+11
| | | | Reviewed by: zec@
* Start copyright notice with /*-joel2010-04-071-1/+1
|
* Merge the remainder of kern_vimage.c and vimage.h into vnet.c andrwatson2009-08-011-1/+2
| | | | | | | | | | vnet.h, we now use jails (rather than vimages) as the abstraction for virtualization management, and what remained was specific to virtual network stacks. Minor cleanups are done in the process, and comments updated to reflect these changes. Reviewed by: bz Approved by: re (vimage blanket)
* Retire the MALLOC and FREE macros. They are an abomination unto style(9).des2008-10-231-5/+5
| | | | MFC after: 3 months
* Add Marko's pipe node.julian2008-09-031-0/+1053
This allows one to do flow modulation similar to dummynet between arbitrary nodes.
OpenPOWER on IntegriCloud