summaryrefslogtreecommitdiffstats
path: root/sys/net
Commit message (Collapse)AuthorAgeFilesLines
* Allow the LACP state to be queried from userland which at the moment is thethompsa2007-07-054-0/+88
| | | | | | | actor and partner peer info. Print out the active aggregator and per port data in verbose mode from ifconfig. Approved by: re (mux)
* Link pf 4.1 to the build:mlaier2007-07-031-1/+3
| | | | | | | | - move ftp-proxy from libexec to usr.sbin - add tftp-proxy - new altq mtag link Approved by: re (kensmith)
* Commit the change from FAST_IPSEC to IPSEC. The FAST_IPSECgnn2007-07-031-1/+1
| | | | | | | | option is now deprecated, as well as the KAME IPsec code. What was FAST_IPSEC is now IPSEC. Approved by: re Sponsored by: Secure Computing
* Continue pre-7.0 privilege cleanup: update suser(9) comments to be priv(9)rwatson2007-07-021-2/+2
| | | | | | comments. Approved by: re (bmah)
* Sync comments to code: we now use priv_check() rather than suser() torwatson2007-06-261-16/+16
| | | | | | determine privilege. Approved by: re (bmah)
* Check the correct port to see if synced is true.thompsa2007-06-221-2/+2
| | | | | | | PR: misc/113958 Submitted by: Aaron Needles Approved by: re (bmah) MFC after: 1 week
* Silence some gcc 4 warnings. It is expected that the bpf_movein() routinecsjp2007-06-171-0/+2
| | | | | | will intialize the the header length and re-initialize the mbuf pointer to reference the mbuf that is allocated after moving user supplied packet data in.
* - Conditionally pickup Giant around the network interfacecsjp2007-06-151-3/+4
| | | | | | | | | | | | | | ioctl routines if we are running with !mpsafenet - Change un-conditional Giant acquisition around ifpromisc to occur only if we are running with !mpsafenet With these locking bits in place, we can now remove the Giant requirement from BPF, so drop the D_NEEDGIANT device flag. This change removes Giant acquisitions around BPF device handlers (read, write, ioctl etc). MFC after: 1 month Discussed with: rwatson
* Add the vlan tag to the bridge route table. This allows a vlan trunk to bethompsa2007-06-132-26/+54
| | | | | | | bridged, previously legitimate traffic was not passed as the bridge could not tell that it was on a different Ethernet segment. All non-tagged traffic is treated as vlan1 as per IEEE 802.1Q-2003
* Remove IPX over IP tunneling support, which allows IPX routing over IPrwatson2007-06-131-1/+1
| | | | | | | | | | tunnels, and was not MPSAFE. The code can be easily restored in the event that someone with an IPX over IP tunnel configuration can work with me to test patches. This removes one of five remaining consumers of NET_NEEDS_GIANT. Approved by: re (kensmith)
* Use if_capenable to allow LRO enabled drivers to bypassgallatin2007-06-121-1/+2
| | | | the MTU check in ether_input().
* non-functional cleanupthompsa2007-06-124-142/+108
| | | | | | | - remove dead code - use consistent variable names - gc unused defines - whitespace cleanup
* Add IFCAP_LRO flag for drivers to announce their TCP Large Receive Offloadandre2007-06-111-0/+1
| | | | capabilities.
* Move the oversize ethernet frame size check into DIAGNOSTIC,gallatin2007-06-111-0/+2
| | | | | | | | as was proposed when it was originally added. This allows LRO to work on non-DIAGNOSTIC kernels without consuming any mbuf flags. Discussed with: sam
* Back out the previous commit which added an M_LRO mbuf flaggallatin2007-06-111-2/+1
| | | | | to defeat the mtu check in ether_input. Mbuf flags are too scarce. Discussed with: sam
* Allow drivers, such as cxgb and mxge, which support LRO to bypassgallatin2007-06-111-1/+2
| | | | | | the MTU check in ether_input() on LRO merged frames. Discussed with: kmacy
* Add missing \n to printfphk2007-06-111-1/+1
|
* Update 802.11 wireless support:sam2007-06-111-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o major overhaul of the way channels are handled: channels are now fully enumerated and uniquely identify the operating characteristics; these changes are visible to user applications which require changes o make scanning support independent of the state machine to enable background scanning and roaming o move scanning support into loadable modules based on the operating mode to enable different policies and reduce the memory footprint on systems w/ constrained resources o add background scanning in station mode (no support for adhoc/ibss mode yet) o significantly speedup sta mode scanning with a variety of techniques o add roaming support when background scanning is supported; for now we use a simple algorithm to trigger a roam: we threshold the rssi and tx rate, if either drops too low we try to roam to a new ap o add tx fragmentation support o add first cut at 802.11n support: this code works with forthcoming drivers but is incomplete; it's included now to establish a baseline for other drivers to be developed and for user applications o adjust max_linkhdr et. al. to reflect 802.11 requirements; this eliminates prepending mbufs for traffic generated locally o add support for Atheros protocol extensions; mainly the fast frames encapsulation (note this can be used with any card that can tx+rx large frames correctly) o add sta support for ap's that beacon both WPA1+2 support o change all data types from bsd-style to posix-style o propagate noise floor data from drivers to net80211 and on to user apps o correct various issues in the sta mode state machine related to handling authentication and association failures o enable the addition of sta mode power save support for drivers that need net80211 support (not in this commit) o remove old WI compatibility ioctls (wicontrol is officially dead) o change the data structures returned for get sta info and get scan results so future additions will not break user apps o fixed tx rate is now maintained internally as an ieee rate and not an index into the rate set; this needs to be extended to deal with multi-mode operation o add extended channel specifications to radiotap to enable 11n sniffing Drivers: o ath: add support for bg scanning, tx fragmentation, fast frames, dynamic turbo (lightly tested), 11n (sniffing only and needs new hal) o awi: compile tested only o ndis: lightly tested o ipw: lightly tested o iwi: add support for bg scanning (well tested but may have some rough edges) o ral, ural, rum: add suppoort for bg scanning, calibrate rssi data o wi: lightly tested This work is based on contributions by Atheros, kmacy, sephe, thompsa, mlaier, kevlo, and others. Much of the scanning work was supported by Atheros. The 11n work was supported by Marvell.
* Cast the ioctl define to the type of the variable being switched on.mjacob2007-06-101-2/+2
|
* Correct the definition of PFIL_HOOKED() so that it comparesgallatin2007-06-081-1/+1
| | | | | | | | | the value of ph_nhooks to zero, not the address. This removes extranious calls to pfil_run_hooks (and an rw lock) from the network stack's critical path when no pfil hooks are active. Reviewed by: csjp Sponsored by: Myricom Inc.
* Remove GIANT_REQUIRED for upcoming changes in FireWire stack.simokawa2007-06-051-4/+0
|
* - Added a new Ethernet media type (2500BaseSX) to support BCM5708 controllersdavidch2007-06-051-0/+4
| | | | | | | | which support a 2.5Gbps mode over fiber using next page extensions during autonegotiation. Typically only found in blade systems which also include a Broadcom 2.5Gbps capable switch. MFC after: 2 weeks
* Remove a KASSERT intended to help the developer, the condition is no longerthompsa2007-05-301-0/+2
| | | | | | | valid since the span code was added. PR: kern/113170 MFC after: 1 week
* Sync ether_ioctl() with ioctl(2) and ifnet.if_ioctlyar2007-05-292-2/+2
| | | | | | | | | | | as to the type of the command argument: int -> u_long. These types have different widths in the 64-bit world. Add a note to UPDATING because the change breaks KBI on 64-bit platforms. Discussed on: -net, -current Reviewed by: bms, ru
* Some minor cleanups:glebius2007-05-221-22/+15
| | | | | | | | | | | | | | - In rt_check() remove the senderr() macro and the "bad" label. They used to simplify code, but now aren't. - Remove extra RT_LOCK_ASSERT() in rt_setgate(). The RT_REMREF macro does this. - In rtfree() convert panics to KASSERTs. - Strict the routing API: rtfree() should be called only in a case when we are completely sure we've got the last reference on the rtentry. In all other cases RTFREE_LOCKED() macro should be used. If the reference isn't the last one spit out a warning printf. Correct the only(?) case for this in rt_check(). - Fix typos in comments.
* - packets on the input interface were counted twicethompsa2007-05-201-13/+1
| | | | - Use IFQ_HANDOFF instead of rolling our own
* Compare the partner system priority when choosing the aggregator.thompsa2007-05-192-1/+11
|
* Implement the Marker Protocol. A marker frame is placed on the interface queuethompsa2007-05-192-32/+131
| | | | | | | | | | | | | of each port and any further packets are blocked, when the all the marker frames have been returned to us from the remote network device then we can be sure that all interface queues are empty. This is needed when a port is added or removed from the aggregation since it will affect the hash based distribution, if the queues are not empty then a packet from an existing connection may be placed on a different interface and arrive out of order. This was previously achieved by suppressing transmission for 1 second, now that there is an active feedback this timeout as been increased to 3 seconds and used as a fallback.
* Check return value of m_pullup() in firewire_input().rwatson2007-05-191-0/+2
| | | | | CID: 2105 Found with: Coverity Prevent(tm)
* Fix a mbuf leak where sc_start fails or the protocol is none.thompsa2007-05-191-2/+4
|
* Fix locking assert where we should hold the reader lock.thompsa2007-05-182-2/+2
|
* Update the comments on if_alloc(), if_free(), if_free_type(), andbrooks2007-05-161-12/+26
| | | | | | | | if_attach. Remove a comment about pre-3.0 network drivers from if_attach(). Be a bit more consistant about whitespace near comments.
* The struct if_data members ifi_recvquota and ifi_xmitquota have beenbrooks2007-05-162-4/+2
| | | | | unused for ages. Rename them to ifi_spare_char1 and ifi_spare_char2 respectively to indicate this face.
* Fix unused variable error with !INET6thompsa2007-05-151-1/+2
| | | | Reported by: Artem Naluzhny, Frank Terhaar-Yonkers
* Feed ipv6 flowlabel to hash calculation.thompsa2007-05-151-1/+3
| | | | Obtained from: NetBSD
* Change from a mutex to a read/write lock. This allows the tx port to bethompsa2007-05-154-83/+132
| | | | | selected simultaneously by multiple senders and transmit/receive is not serialised between aggregated interfaces.
* Add prototypes for ether_aton_r() and ether_ntoa_r() missed in previousrwatson2007-05-131-0/+2
| | | | commit.
* Integrate the Camellia Block Cipher. For more information see RFC 4132gnn2007-05-091-0/+2
| | | | | | | and its bibliography. Submitted by: Tomoyuki Okazaki <okazaki at kick dot gr dot jp> MFC after: 1 month
* - Correctly check if lp_ioctl is nullthompsa2007-05-071-20/+9
| | | | | - Remove lagg_ether_purgemulti as its no longer needed - Mark the interface as up if any ports are active rather than just the primary
* The purgemulti call is not needed since all the ports have already been ↵thompsa2007-05-071-3/+0
| | | | detached.
* Call if_setlladdr() on the aggregation port from a taskqueue so the softc lockthompsa2007-05-072-5/+89
| | | | | is not held. The short delay between aggregating the port and setting the MAC address is fine.
* Avoid touching various unsafe parts if the interface is disappearing.thompsa2007-05-073-8/+16
|
* Change from using if_delmulti() to if_delmulti_ifma() as it simplifies the codethompsa2007-05-074-81/+37
| | | | | | and is safe to use if the ifp has disappeared. Suggested by: bms
* Fix flag descriptions.thompsa2007-05-031-2/+2
|
* - Add a disabled state for ports that can not be aggregatedthompsa2007-05-033-6/+21
| | | | - Refine check for lacp links, set to disabled if not suitable
* Fix a couple of typos in a comment.yar2007-05-021-2/+2
|
* Set the master flag on the right variable.thompsa2007-05-021-1/+1
|
* Test for IFM_FDX rather than IFM_HDX as the half-duplex bit may not be set eventhompsa2007-05-021-1/+1
| | | | if the link is not full-duplex.
* Rename the trunk(4) driver to lagg(4) as it is too similar to vlan trunking.thompsa2007-04-179-1916/+1916
| | | | | | | | | | | The name trunk is misused as the networking term trunk means carrying multiple VLANs over a single connection. The IEEE standard for link aggregation (802.3 section 3) does not talk about 'trunk' at all while it is used throughout IEEE 802.1Q in describing vlans. The lagg(4) driver provides link aggregation, failover and fault tolerance. Discussed on: current@
* Fix a case where the multicast addresses were not removed from some ports. Thethompsa2007-04-121-32/+49
| | | | | first port to be removed from the trunk would free the multicast list so subsequent removed ports didnt have their multicast addresses removed.
OpenPOWER on IntegriCloud