summaryrefslogtreecommitdiffstats
path: root/sys/net
Commit message (Collapse)AuthorAgeFilesLines
* - add dom_if{attach,detach} framework.ume2003-10-172-0/+50
| | | | | | - transition to use ifp->if_afdata. Obtained from: KAME
* Correct handling of cloning loop avoidance: rtalloc1 may return a nullsam2003-10-161-1/+2
| | | | | | pointer in which case we should not do the unlock. Supported by: FreeBSD Foundatin
* AF_LINK sockaddr has to be attached to ifp->if_addrlist until theume2003-10-161-3/+11
| | | | | | | end, as many of the code assumes that TAILQ_FIRST(ifp->if_addrlist) is non-null. Submitted by: itojun
* - support AES counter mode for ESP.ume2003-10-131-4/+4
| | | | | | | | - use size_t as return type of schedlen(), as there's no error check needed. - clear key schedule buffer before freeing. Obtained from: KAME
* - support AES XCBC MAC for AHume2003-10-131-1/+2
| | | | | | - correct SADB_X_AALG_RIPEMD160HMAC to 8 Obtained from: KAME
* Comment spelling fix.rwatson2003-10-121-1/+1
|
* fix braino: null the pointer who's memory we just free'd, not some othersam2003-10-111-1/+1
| | | | pointers that are (potentially) used later
* insure local variable is initialized prior to usesam2003-10-071-1/+1
|
* return(code) -> return (code)ume2003-10-071-2/+2
| | | | Obtained from: KAME
* fix typo that caused a panic when processing an ICMP redirectsam2003-10-051-1/+1
| | | | Sponsored by: FreeBSD Foundation
* Locking for updates to routing table entries. Each rtentry gets a mutexsam2003-10-048-192/+254
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that covers updates to the contents. Note this is separate from holding a reference and/or locking the routing table itself. Other/related changes: o rtredirect loses the final parameter by which an rtentry reference may be returned; this was never used and added unwarranted complexity for locking. o minor style cleanups to routing code (e.g. ansi-fy function decls) o remove the logic to bump the refcnt on the parent of cloned routes, we assume the parent will remain as long as the clone; doing this avoids a circularity in locking during delete o convert some timeouts to MPSAFE callouts Notes: 1. rt_mtx in struct rtentry is guarded by #ifdef _KERNEL as user-level applications cannot/do-no know about mutex's. Doing this requires that the mutex be the last element in the structure. A better solution is to introduce an externalized version of struct rtentry but this is a major task because of the intertwining of rtentry and other data structures that are visible to user applications. 2. There are known LOR's that are expected to go away with forthcoming work to eliminate many held references. If not these will be resolved prior to release. 3. ATM changes are untested. Sponsored by: FreeBSD Foundation Obtained from: BSD/OS (partly)
* add a stub for bpfattach2 so bpf is not required with the 802.11sam2003-10-041-0/+8
| | | | | | module or related drivers Spotted by: Dan Lukes <dan@obluda.cz>
* When direct dispatching an netisr (net.isr.enable=1), if there are alreadyrwatson2003-10-031-13/+21
| | | | | | | | | | | | | | | | | | any queued packets for the isr, process those packets before the newly submitted packet, maintaining ordering of all packets being delivered to the netisr. Remove the bypass counter since we don't bypass anymore. Leave the comment about possible problems and options since later performance optimization may change the strategy for addressing ordering problems here. Specifically, this maintains the strong isr ordering guarantee; additional parallelism and lower latency may be possible by moving to weaker guarantees (per-interface, for example). We will probably at some point also want to remove the one instance netisr dispatch limit currently enforced by a mutex, but it's not clear that's 100% safe yet, even in the netperf branch. Reviewed by: sam, others
* trivial locking rtsock_cbsam2003-10-031-0/+11
| | | | Sponsored by: FreeBSD Foundation
* cleanups prior to adding locking (and in some cases to eliminate locking):sam2003-10-033-177/+169
| | | | | | | | | | | | | o move route_cb to be private to rtsock.c o replace global static route_proto by locals o eliminate global #define shorthands for info references o remove some register decls o ansi-fy function decls o move items to be close in scope to their usage o add rt_dispatch function for dispatching the actual message o cleanup tangled logic for doing all-but-me msg send Support by: FreeBSD Foundation
* Create a tunable for net.isr.enable so that it may be set fromrwatson2003-10-021-0/+1
| | | | inception, rather than having to wait for the boot to finish.
* Temporarily turn net.isr.enable back off again until patches torwatson2003-10-011-1/+1
| | | | correct potential nits in packet ordering are resolved.
* Enable net.isr.enable by default, causing "delivery to completion"rwatson2003-10-011-1/+1
| | | | | | | | | | | | | | | (direct dispatch) in interrupt threads when the netisr in question isn't already active. If a netisr is already active, or direct dispatch is already in progress, we queue the packet for later delivery. Previously, this option was disabled by default. I have measured 20%+ performance improvements in IP packet forwarding with this enabled. Please report any problems ASAP, especially relating to stack depth or out-of-order packet processing. Discussed with: jlemon, peter Sponsored by: DARPA, Network Associates Laboratories
* By popular demand, added the "static ARP" per-interface option.ru2003-10-011-0/+1
|
* Correct pfil_run_hooks return handling: if the return value is non-zerosam2003-09-301-5/+3
| | | | | | | | | then the mbuf has been consumed by a hook; otherwise beware of a null mbuf return (gack). In particular the bridge was doing the wrong thing. While in the ipv6 code make it's handling of pfil_run_hooks identical to netbsd. Pointed out by: Pyun YongHyeon <yongari@kt-is.co.kr>
* I don't know from where the notion that device driver should orphk2003-09-281-1/+1
| | | | | | | | | | | | | | even could call VOP_REVOKE() on vnodes associated with its dev_t's has originated, but it stops right here. If there are things people belive destroy_dev() needs to learn how to do, please tell me about it, preferably with a reproducible test case. Include <sys/uio.h> in bluetooth code rather than rely on <sys/vnode.h> to do so. The fact that some of the USB code needs to include <sys/vnode.h> still disturbs me greatly, but I do not have time to chase that.
* Correctly name r_unit member tun_unit.phk2003-09-272-5/+4
| | | | Remove unused tun_wsel member.
* o update PFIL_HOOKS support to current API used by netbsdsam2003-09-233-117/+349
| | | | | | | | | | | o revamp IPv4+IPv6+bridge usage to match API changes o remove pfil_head instances from protosw entries (no longer used) o add locking o bump FreeBSD version for 3rd party modules Heavy lifting by: "Max Laier" <max@love2party.net> Supported by: FreeBSD Foundation Obtained from: NetBSD (bits of pfil.h and pfil.c)
* While cleaning out my tree, fix another strict alias warning that wouldpeter2003-09-221-1/+1
| | | | be happening if we didn't stop compiling with -fno-strict-aliasing.
* fix build on 64-bit platformssam2003-09-171-1/+1
|
* Minor overhaul and add locking.sam2003-09-171-305/+409
| | | | | | | | | | | | | | | o replace magic constants with #defines (e.g. ETHER_ADDR_LEN) o move mib variables to net.link.ether.bridge with backwards compatible entries for well-known items maintained under BURN_BRIDGES o revamp debugging support so it is conditioanlly compiled with BRIDGE_DEBUG (on currently) and runtime controlled by net.link.ether.bridge.debug o change timeout to MPSAFE callout o optimize lookup for common case of two interfaces o optimize forwarding path to take IFNET lock only when needed o make boot-time printf dependent on bootverbose o sundry style changes (ANSI decls, extraneous spaces, etc.) Sponsored by: FreeBSD Foundation
* Enable IPv6 for Token Ring.mdodd2003-09-141-4/+0
|
* Cosmetic cleanups.mdodd2003-09-141-19/+21
|
* Cosmetic adjustment.mdodd2003-09-141-2/+1
|
* Fix a bunch of off-by-one errors in the range checking code.ru2003-09-111-1/+1
|
* Add locking. We use a single lock to guard the global vlan list and alsosam2003-09-051-17/+47
| | | | | | | | to protect the vlan state in each ifnet (e.g. vlan count). The latter is probably better handled through an ifnet-centric means but since changes are infrequent shouldn't matter for now. Sponsored by: FreeBSD Foundation
* Reduce window during which a race can occur when detachingsam2003-09-041-2/+3
| | | | | an interface from each descriptor that references it. This is just a bandaid; the locking here needs to be redone.
* Introduce error checking for calls to M_PREPEND():rwatson2003-08-291-1/+3
| | | | | ether_output() when prepending netatalk AFA_PHASE2 llc headers (TRYWAIT). ether_output() when prepending ethernet header to a frame (DONTWAIT).
* Change instances of callout_init that specify MPSAFE behaviour tosam2003-08-191-1/+1
| | | | | use CALLOUT_MPSAFE instead of "1" for the second parameter. This does not change the behaviour; it just makes the intent more clear.
* add R_Zalloc definition that returns pre-zero'd memorysam2003-08-191-0/+2
|
* use ETHER_IS_MULTICAST instead of explicit checksam2003-08-191-1/+1
|
* Also ifdef the variable which becomes unused w/o INET6, fixing the buildsilby2003-08-091-0/+2
| | | | | | after the previous commit. Noticed by: alc
* #ifdef INET6 the if_loop packet defrag; since only the ipv6 stack (might)silby2003-08-091-0/+2
| | | | | | | require this to be done, there's no reason to waste time doing it if ipv6 isn't compiled in. MFC after: 1 week
* Remove the ATMIOCENA and ATMIOCDIS ioctl. Everyting has been convertedharti2003-08-061-8/+1
| | | | | to use the new OPENVCC and CLOSEVCC calls that allow the sepcification of traffic parameters for the connections.
* Remove the last vestiges of ATM raw mode. This has not been useful for aharti2003-08-061-3/+0
| | | | | long time and has already been removed from the only driver that supported it (en(4)) and from the man page.
* Define a flag for asynchronuous VC open/close operations as usedharti2003-08-051-1/+2
| | | | by the NATM stuff.
* add support for using kqueue to watch bpf sockets.jmg2003-08-052-9/+77
| | | | | Submitted by: Brian Buchanan of nCircle, Inc. Tested on: i386 and sparc64
* Implement a mechanism by which ATM drivers can inform interestedharti2003-07-292-1/+85
| | | | | | | parts of the system about certain kinds of events, like changes in the ABR rate, changes in the carrier state, PVC changes. The main consumers of these events are the harp(4) pseudo-driver and the ILMI daemon via ng_atm(4).
* Use M_WAITOK instead of M_WAIT in sppp_attach().gj2003-07-261-1/+1
|
* add monitor modesam2003-07-211-0/+2
|
* Disabling multicast on vlan interface caused kernel panic.ume2003-07-191-0/+2
| | | | | | PR: kern/40723 Submitted by: Hideki ONO <ono@kame.net> MFC after: 1 week
* Add mutex for routing entries.hsu2003-07-191-1/+8
| | | | Reviewed by: bmilekic, silby
* Correct the device identifiers for the ProATM cards.harti2003-07-181-2/+2
|
* Implement an utility function that can be used by device drivers toharti2003-07-152-0/+59
| | | | | | | implement the ATMIOCGVCCS ioctls. This routine handles changing VCC tables (which can occure because we cannot hold the driver mutex while allocating memory) with a loop and a re-allocation, should the table not fit in the allocated memory.
* The mbuf put on the interface queue contains the 4-byte pseudoheader.harti2003-07-151-1/+2
| | | | Account for this in the byte count.
OpenPOWER on IntegriCloud