summaryrefslogtreecommitdiffstats
path: root/sys/netns
Commit message (Collapse)AuthorAgeFilesLines
* Use m_length() instead of home-rolled versions.phk2002-09-182-10/+3
|
* Remove extraneous extern from function prototype introduced in rev.1.14.sobomax2002-09-101-1/+1
|
* Make these less broken.sobomax2002-09-062-10/+10
|
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-252-2/+2
|
* Fix bug which has been there since rev 1.1 where && was used instead of &.hsu2002-06-091-1/+1
|
* Back out my lats commit of locking down a socket, it conflicts with hsu's work.tanimura2002-05-314-129/+24
| | | | Requested by: hsu
* Lock down a socket, milestone 1.tanimura2002-05-204-24/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a socket buffer. The mutex in the receive buffer also protects the data in struct socket. o Determine the lock strategy for each members in struct socket. o Lock down the following members: - so_count - so_options - so_linger - so_state o Remove *_locked() socket APIs. Make the following socket APIs touching the members above now require a locked socket: - sodisconnect() - soisconnected() - soisconnecting() - soisdisconnected() - soisdisconnecting() - sofree() - soref() - sorele() - sorwakeup() - sotryfree() - sowakeup() - sowwakeup() Reviewed by: alfred
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-1/+1
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Remove __P.alfred2002-03-202-3/+3
|
* Initialise the intrq_present fields at runtime, not link time. This allowsmsmith2002-01-081-2/+1
| | | | | | us to load protocols at runtime, and avoids the use of common variables. Also fix the ip6_intrq assignment so that it works at all.
* Give struct socket structures a ref counting interface similar todillon2001-11-172-3/+3
| | | | | | | vnodes. This will hopefully serve as a base from which we can expand the MP code. We currently do not attempt to obtain any mutex or SX locks, but the door is open to add them when we nail down exactly how that part of it is going to work.
* Desupport FreeBSD/vaxpeter2001-11-032-6/+0
|
* * 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