aboutsummaryrefslogtreecommitdiff
path: root/sys/netns
Commit message (Collapse)AuthorAgeFilesLines
* Finish driving a stake through the heart of netns and the associatedPeter Wemm2003-03-0522-6041/+0
| | | | | | | | | ifdefs scattered around the place - its dead Jim! The SMB stuff had stolen AF_NS, make it official. Notes: svn path=/head/; revision=111926
* Update netisr handling; Each SWI now registers its queue, and all queueJonathan Lemon2003-03-043-27/+15
| | | | | | | | | | | | | drain routines are done by swi_net, which allows for better queue control at some future point. Packets may also be directly dispatched to a netisr instead of queued, this may be of interest at some installations, but currently defaults to off. Reviewed by: hsu, silby, jayanth, sam Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=111888
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-197-19/+19
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-217-19/+19
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Use m_length() instead of home-rolled versions.Poul-Henning Kamp2002-09-182-10/+3
| | | | Notes: svn path=/head/; revision=103554
* Remove extraneous extern from function prototype introduced in rev.1.14.Maxim Sobolev2002-09-101-1/+1
| | | | Notes: svn path=/head/; revision=103174
* Make these less broken.Maxim Sobolev2002-09-062-10/+10
| | | | Notes: svn path=/head/; revision=103021
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-252-2/+2
| | | | Notes: svn path=/head/; revision=102412
* Fix bug which has been there since rev 1.1 where && was used instead of &.Jeffrey Hsu2002-06-091-1/+1
| | | | Notes: svn path=/head/; revision=98060
* Back out my lats commit of locking down a socket, it conflicts with hsu's work.Seigo Tanimura2002-05-314-129/+24
| | | | | | | Requested by: hsu Notes: svn path=/head/; revision=97658
* Lock down a socket, milestone 1.Seigo 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 Notes: svn path=/head/; revision=96972
* Change callers of mtx_init() to pass in an appropriate lock type name. InJohn Baldwin2002-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 Notes: svn path=/head/; revision=93818
* Remove __P.Alfred Perlstein2002-03-202-3/+3
| | | | Notes: svn path=/head/; revision=92745
* Initialise the intrq_present fields at runtime, not link time. This allowsMike Smith2002-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. Notes: svn path=/head/; revision=89069
* Give struct socket structures a ref counting interface similar toMatthew Dillon2001-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. Notes: svn path=/head/; revision=86487
* Desupport FreeBSD/vaxPeter Wemm2001-11-032-6/+0
| | | | Notes: svn path=/head/; revision=85972
* * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT.Bosko Milekic2000-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. Notes: svn path=/head/; revision=70254
* Lock down the network interface queues. The queue mutex must be obtainedJonathan Lemon2000-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. Notes: svn path=/head/; revision=69152
* Clean up some loose ends in the network code, including the X.25 and ISOPeter Wemm2000-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 Notes: svn path=/head/; revision=57178
* Move the *intrq variables into net/intrq.c and unconditionallyBrian Somers2000-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 Notes: svn path=/head/; revision=56555
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-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. Notes: svn path=/head/; revision=55205
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2822-22/+22
| | | | Notes: svn path=/head/; revision=50477
* Make INET a proper option.Eivind Eklund1998-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>. Notes: svn path=/head/; revision=32350
* Remove unneeded member nsp_head from struct nspcb.Poul-Henning Kamp1997-04-141-2/+1
| | | | Notes: svn path=/head/; revision=24938
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-2222-22/+22
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Bring back netns so that Netcon can take over support for it, as agreed.Jordan K. Hubbard1996-10-1721-0/+6021
| | | | | | | | 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-1322-6027/+1
| | | | | | | during my last commit.) Notes: svn path=/head/; revision=14094
* Fix a bunch of spelling errors in the comment fields ofMike Pritchard1996-01-303-6/+6
| | | | | | | a bunch of system include files. Notes: svn path=/head/; revision=13765
* Moved inline functions for insque() and remque() to <sys/queue.h>.Bruce Evans1995-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. Notes: svn path=/head/; revision=12592
* Completed function declarations and/or added prototypes.Bruce Evans1995-11-212-4/+7
| | | | Notes: svn path=/head/; revision=12453
* Reviewed by: julian and jhay@mikom.csir.co.zaJulian Elischer1995-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 Notes: svn path=/head/; revision=11819
* Fix TCP_DEBUG support so that LINT compiles again (deReiserize).Bruce Evans1995-10-101-4/+5
| | | | Notes: svn path=/head/; revision=11391
* Eliminate sloppy common-style declarations. There should be none left forBruce Evans1995-07-2913-36/+34
| | | | | | | the LINT configuation. Notes: svn path=/head/; revision=9759
* Remove trailing whitespace.Rodney W. Grimes1995-05-307-27/+27
| | | | Notes: svn path=/head/; revision=8876
* Make networking domains drop-ins, through the magic of GNU ld. (Some day,Garrett 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. Notes: svn path=/head/; revision=8426
* Removed redundant newlines that were in some panic strings.David Greenman1995-03-192-4/+4
| | | | Notes: svn path=/head/; revision=7170
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'Bruce Evans1995-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. Notes: svn path=/head/; revision=7090
* Include <sys/systm.h> to get inlines for spl*() so that LINT kernel links.Bruce Evans1994-11-152-2/+4
| | | | Notes: svn path=/head/; revision=4503
* Made idempotent.Paul Richards1994-08-2111-11/+66
| | | | | | | Submitted by: paul Notes: svn path=/head/; revision=2174
* Added $Id$David Greenman1994-08-0222-0/+22
| | | | Notes: svn path=/head/; revision=1817
* BSD 4.4 Lite Kernel SourcesRodney W. Grimes1994-05-2422-0/+5987
Notes: svn path=/head/; revision=1541