summaryrefslogtreecommitdiffstats
path: root/sys/netns
Commit message (Collapse)AuthorAgeFilesLines
* * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT.bmilekic2000-12-211-1/+1
| | | | | | | | | | | | | | | | | | This is because calls with M_WAIT (now M_TRYWAIT) may not wait forever when nothing is available for allocation, and may end up returning NULL. Hopefully we now communicate more of the right thing to developers and make it very clear that it's necessary to check whether calls with M_(TRY)WAIT also resulted in a failed allocation. M_TRYWAIT basically means "try harder, block if necessary, but don't necessarily wait forever." The time spent blocking is tunable with the kern.ipc.mbuf_wait sysctl. M_WAIT is now deprecated but still defined for the next little while. * Fix a typo in a comment in mbuf.h * Fix some code that was actually passing the mbuf subsystem's M_WAIT to malloc(). Made it pass M_WAITOK instead. If we were ever to redefine the value of the M_WAIT flag, this could have became a big problem.
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-252-11/+3
| | | | | | | | | | | | | | 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.
* Clean up some loose ends in the network code, including the X.25 and ISOpeter2000-02-131-2/+1
| | | | | | | #ifdefs. Clean out unused netisr's and leftover netisr linker set gunk. Tested on x86 and alpha, including world. Approved by: jkh
* Move the *intrq variables into net/intrq.c and unconditionallybrian2000-01-241-1/+3
| | | | | | | | | | | include this in all kernels. Declare some const *intrq_present variables that can be checked by a module prior to using *intrq to queue data. Make the if_tun module capable of processing atm, ip, ip6, ipx, natm and netatalk packets when TUNSIFHEAD is ioctl()d on. Review not required by: freebsd-hackers
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-297-7/+7
| | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
* $Id$ -> $FreeBSD$peter1999-08-2822-22/+22
|
* Make INET a proper option.eivind1998-01-081-1/+3
| | | | | | | | | | | | This will not make any of object files that LINT create change; there might be differences with INET disabled, but hardly anything compiled before without INET anyway. Now the 'obvious' things will give a proper error if compiled without inet - ipx_ip, ipfw, tcp_debug. The only thing that _should_ work (but can't be made to compile reasonably easily) is sppp :-( This commit move struct arpcom from <netinet/if_ether.h> to <net/if_arp.h>.
* Remove unneeded member nsp_head from struct nspcb.phk1997-04-141-2/+1
|
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-2222-22/+22
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1422-22/+22
| | | | | | | | 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.
* Bring back netns so that Netcon can take over support for it, as agreed.jkh1996-10-1721-0/+6021
| | | | | This was actually easier than I thought - CVS is smart enough to handle "resurrections" now. :-)
* finish killing off netns. (For some reason, CVS `undeleted' thesewollman1996-02-1322-6027/+1
| | | | during my last commit.)
* Fix a bunch of spelling errors in the comment fields ofmpp1996-01-303-6/+6
| | | | a bunch of system include files.
* Moved inline functions for insque() and remque() to <sys/queue.h>.bde1995-12-032-2/+4
| | | | | | | Protected them with `#ifdef KERNEL' so that <sys/queue.h> is valid C++. Added the necessary #includes of <sys/queue.h>. These functions are bogus and should be replaced by the queue macros.
* Completed function declarations and/or added prototypes.bde1995-11-212-4/+7
|
* Reviewed by: julian and jhay@mikom.csir.co.zajulian1995-10-261-1/+2
| | | | | | | | | | | | | | | | | | | | | Submitted by: Mike Mitchell, supervisor@alb.asctmd.com This is a bulk mport of Mike's IPX/SPX protocol stacks and all the related gunf that goes with it.. it is not guaranteed to work 100% correctly at this time but as we had several people trying to work on it I figured it would be better to get it checked in so they could all get teh same thing to work on.. Mikes been using it for a year or so but on 2.0 more changes and stuff will be merged in from other developers now that this is in. Mike Mitchell, Network Engineer AMTECH Systems Corporation, Technology and Manufacturing 8600 Jefferson Street, Albuquerque, New Mexico 87113 (505) 856-8000 supervisor@alb.asctmd.com
* Fix TCP_DEBUG support so that LINT compiles again (deReiserize).bde1995-10-101-4/+5
|
* Eliminate sloppy common-style declarations. There should be none left forbde1995-07-2913-36/+34
| | | | the LINT configuation.
* Remove trailing whitespace.rgrimes1995-05-307-27/+27
|
* Make networking domains drop-ins, through the magic of GNU ld. (Some day,wollman1995-05-112-4/+9
| | | | | | there may even be LKMs.) Also, change the internal name of `unixdomain' to `localdomain' since AF_LOCAL is now the preferred name of this family. Declare netisr correctly and in the right place.
* Removed redundant newlines that were in some panic strings.dg1995-03-192-4/+4
|
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'bde1995-03-162-2/+4
| | | | | | (except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones.
* Include <sys/systm.h> to get inlines for spl*() so that LINT kernel links.bde1994-11-152-2/+4
|
* Made idempotent.paul1994-08-2111-11/+66
| | | | Submitted by: paul
* Added $Id$dg1994-08-0222-0/+22
|
* BSD 4.4 Lite Kernel Sourcesrgrimes1994-05-2422-0/+5987
OpenPOWER on IntegriCloud