summaryrefslogtreecommitdiff
path: root/sys/netns/ns_ip.c
Commit message (Collapse)AuthorAgeFilesLines
* Lock down the network interface queues. The queue mutex must be obtainedJonathan Lemon2000-11-251-11/+2
| | | | | | | | | | | | | | | | | before adding/removing packets from the queue. Also, the if_obytes and if_omcasts fields should only be manipulated under protection of the mutex. IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on the queue. An IF_LOCK macro is provided, as well as the old (mutex-less) versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which needs them, but their use is discouraged. Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF, which takes care of locking/enqueue, and also statistics updating/start if necessary. Notes: svn path=/head/; revision=69152
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Bring back netns so that Netcon can take over support for it, as agreed.Jordan K. Hubbard1996-10-171-0/+441
| | | | | | | | This was actually easier than I thought - CVS is smart enough to handle "resurrections" now. :-) Notes: svn path=/head/; revision=18998
* finish killing off netns. (For some reason, CVS `undeleted' theseGarrett Wollman1996-02-131-440/+0
| | | | | | | during my last commit.) Notes: svn path=/head/; revision=14094
* Eliminate sloppy common-style declarations. There should be none left forBruce Evans1995-07-291-2/+1
| | | | | | | the LINT configuation. Notes: svn path=/head/; revision=9759
* Removed redundant newlines that were in some panic strings.David Greenman1995-03-191-2/+2
| | | | Notes: svn path=/head/; revision=7170
* Added $Id$David Greenman1994-08-021-0/+1
| | | | Notes: svn path=/head/; revision=1817
* BSD 4.4 Lite Kernel SourcesRodney W. Grimes1994-05-241-0/+440
Notes: svn path=/head/; revision=1541