summaryrefslogtreecommitdiffstats
path: root/sys/net
Commit message (Collapse)AuthorAgeFilesLines
* Redo the sigio locking.alfred2002-05-014-7/+3
| | | | | | | | | | | Turn the sigio sx into a mutex. Sigio lock is really only needed to protect interrupts from dereferencing the sigio pointer in an object when the sigio itself is being destroyed. In order to do this in the most unintrusive manner change pgsigio's sigio * argument into a **, that way we can lock internally to the function.
* "pointers are not permitted as case values", so force the macros to ints.obrien2002-05-011-2/+2
|
* Revert the change of #includes in sys/filedesc.h and sys/socketvar.h.tanimura2002-04-302-8/+14
| | | | | | | | | | Requested by: bde Since locking sigio_lock is usually followed by calling pgsigio(), move the declaration of sigio_lock and the definitions of SIGIO_*() to sys/signalvar.h. While I am here, sort include files alphabetically, where possible.
* Move us yet closer to IFM_* definitions in NetBSD.phk2002-04-291-42/+42
|
* Follow NetBSD and s/IFM_1000_TX/IFM_1000_T/phk2002-04-281-2/+2
|
* Add a global sx sigio_lock to protect the pointer to the sigio objecttanimura2002-04-271-1/+3
| | | | | | | | | | of a socket. This avoids lock order reversal caused by locking a process in pgsigio(). sowakeup() and the callers of it (sowwakeup, soisconnected, etc.) now require sigio_lock to be locked. Provide sowwakeup_locked(), soisconnected_locked(), and so on in case where we have to modify a socket and wake up a process atomically.
* just merged cosmetic changes from KAME to ease sync between KAME and FreeBSD.suz2002-04-198-22/+78
| | | | | | | (based on freebsd4-snap-20020128) Reviewed by: ume MFC after: 1 week
* Cosmetical change: remove empty line to reduce diffs to RELENG_4fjoe2002-04-141-1/+0
|
* Add hostap 802.11 media type.imp2002-04-121-0/+2
| | | | From wi_hostap stuff by Thomas Skibo
* Add two more IEEE80211 defines for status.imp2002-04-111-0/+2
|
* Swap a bzero for an M_ZERO. Borris approved this ages ago, butdwmalone2002-04-101-2/+1
| | | | | | | the hard drive with the patch on it went south before I committed it. Approved by: bp
* Add missing 'struct ifreq ifr;' that was forgotten in the last commit.peter2002-04-101-0/+1
|
* fixed a kernel crash when enabling multicast on vlan interfacesuz2002-04-101-4/+9
| | | | | | | owing to a NULL argument to vlan_ioctl() at if_allmulti(). Reviewed by: ume MFC after: 1 week
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-045-11/+12
| | | | | | | 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
* Replace (deprecated ?) FREE() macro with direct calls to free()luigi2002-04-048-22/+22
|
* Fix incorrect m_free - m_freem() usage.luigi2002-04-041-3/+2
|
* Fix a couple of incorrect m_free() vs. m_freem() usages and related issues.luigi2002-04-043-31/+20
| | | | Reviewed-by: brooks
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-019-26/+30
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* Make `route add -inet6 default ::1 -ifp gif0' work actually.ume2002-04-011-5/+1
| | | | | | The change between 1.13 and 1.14 is specific to AF_INET. MFC after: 1 week
* - Merge the pdq driver (if_fpa and if_fea) from NetBSD.mdodd2002-03-292-6/+11
| | | | | Among other things this gets us ifmedia support. - Update fddi_ifattach() to take an additional argument.
* - Define fddibroadcastaddr in if_fddisubr.c.mdodd2002-03-292-5/+108
| | | | - Add fddi_ifdetach() and fddi_ioctl().
* - Use ifp->if_broadcastaddr when possible.mdodd2002-03-291-4/+2
| | | | - Remove unnecessary preprocessor conditional.
* - Add a comment.mdodd2002-03-291-2/+4
| | | | | - Whitespace. - Remove forgotten duplicate assignments in fddi_ifattach().
* - Update interface statistics on error conditions.mdodd2002-03-291-13/+50
| | | | | | | - Make sure the interface is UP and RUNNING in fddi_input(). - Reorder and comment packet tests in fddi_input(). - Call if_attach() in fddi_ifattach(). - Test for a valid return from ifaddr_byindex().
* - Whitespace changes.mdodd2002-03-291-8/+17
| | | | | | - Formatting. - Use macro, not magic numbers. - Move a dropanyway label in fddi_input() to end of function.
* Back a small part of the last patch.mdodd2002-03-291-3/+3
|
* - Simplify first arg of nd6_storelladdr().mdodd2002-03-291-15/+29
| | | | | | | - Use struct fddi_header where appropriate. - Use bcopy() rather than memcpy(). - Use FDDI_ADDR_LEN macro instead of ETHER_ADDR_LEN macro. - Add loadable module support.
* - Use net/fddi.h rather than netinet/if_fddi.h.mdodd2002-03-291-21/+21
| | | | | | - Use FDDI_ADDR_LEN rather than a magic number or a sizeof(). - Hide distracting sizeof() behind FDDI_HDR_LEN macro. - Don't use sizeof(struct llc) in areas where we mean LLC_SNAPFRAMELEN.
* Sync defines with NetBSD.mdodd2002-03-291-13/+30
| | | | Define FDDI_ADDR_LEN and use it.
* Remove unnecessary LLC defines and use the standard ones.mdodd2002-03-291-16/+6
|
* - style(9) fixes for 'return'.mdodd2002-03-291-22/+21
| | | | | - retire RTALLOC1 and ARPRESOLVE macros. - use IFP2AC to hide discracting casts.
* Un-ifdef.mdodd2002-03-291-37/+0
|
* De-register.mdodd2002-03-291-10/+10
|
* Sync with NetBSD.mdodd2002-03-291-45/+60
|
* Fixed some style bugs in the removal of __P(()). The main ones werebde2002-03-2411-42/+38
| | | | | | not removing tabs before "__P((", and not outdenting continuation lines to preserve non-KNF lining up of code with parentheses. Switch to KNF formatting and/or rewrap the whole prototype in some cases.
* Work around zlib bug where using a deflate window size of 8 willjedgar2002-03-231-1/+1
| | | | cause memory corruption.
* Fix a bug introduced in 1.11 (and also MFCd to stable AND the security branch)dillon2002-03-201-1/+5
| | | | | | | | | | | | | | | | | | | | that causes a machine to panic when the kernel PPP / DEFLATE code is used. 1.11 moved a ZFREE to a point after the structural members were clobbered by stores into a union'd structure. This commit fixes the bug and adds a big whopping comment to make sure the code isn't 'cleaned up' again :-) Ian Dowse came up with the same patch independantly 68 seconds before I did, talk about Karma! I would also like to thank Eugene Grosbein for marathon work in tracking the problem down by udpating his -stable based on date over and over again to close in on the commit that caused his crashes. PR: kern/35969 Reviewed by: Ian Dowse <iedowse@maths.tcd.ie> X-MFC after: immediately
* Remove __P.alfred2002-03-1941-394/+383
|
* Add hooks for very basic IPFilter support in bridging. Set,cjc2002-03-181-5/+42
| | | | | | | | | | | | | # sysctl net.link.ether.bdg_ipf=1 To enable. Just like ipfw(8) bridging, only input packets are filtered in the bridge. Filtering works just like in the IP layer, ipf(8) first, then ipfw(8). And just like in the IP layer, both are independent, one need not be run to use the other. (Note: This will not work in, but doesn't break, the bridge.ko module. The ipl.ko module would need to be fixed before that is worth worrying about.) Reviewed by: luigi
* Missed this file for select SMP fixes associated with rev 1.93 ofalfred2002-03-141-2/+0
| | | | kern/sys_generic.c
* Simplify the interface cloning framework by handling unitmux2002-03-119-252/+95
| | | | | | | | | unit allocation with a bitmap in the generic layer. This allows us to get rid of the duplicated rman code in every clonable interface. Reviewed by: brooks Approved by: phk
* Use revoke_and_destroy_dev() instead of destroy_dev() when removing /dev/netgreen2002-03-051-1/+1
| | | | | | | pseudo-devices when an interface goes away. Otherwise, an open /dev/net/foo0 when the interface is removed can cause a crash. Not objected to by: jlemon
* Remove duplicated and wrong sc->sc_last_recv setting. It unbreaksmaxim2002-03-051-4/+1
| | | | | | | | | | | active-filter in pppd(8). PR: kern/12281 Submitted by: Tim Moore <moore@bricoworks.com> Not objected by: peter Reviewed by: ru Approved by: ru MFC after: 1 week
* Unbreak bridge.ko. Replace an unresolved symbol with the actions itcjc2002-03-051-1/+3
| | | | | | | | was meant to take. Submitted by: luigi Approved by: luigi MFC after: 3 days
* Add cloning support to the loopback interface.brooks2002-03-041-56/+99
| | | | Submitted by: mux
* Change the network interface cloning API so the destroy function returnsbrooks2002-03-046-11/+14
| | | | | | | | an int errorcode instead of void in preperation for merging cloning of the loopback device. Submitted by: mux MFC after: 2 weeks
* Fix warnings.peter2002-02-281-2/+2
|
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredjhb2002-02-272-4/+4
| | | | reference.
* Fix warnings in the gif(4) driver so it compiles with -Werror.brooks2002-02-261-4/+6
|
* Did someone turn on -Werror or something?dillon2002-02-261-0/+2
| | | | Fix kernel breakage.
OpenPOWER on IntegriCloud