summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* - Add a missing PROC_SUNLOCK() in tdsignal()Jeff Roberson2007-06-111-1/+3
| | | | Notes: svn path=/head/; revision=170586
* Clean up, and sometimes remove, a number of audit-related implementationRobert Watson2007-06-113-32/+3
| | | | | | | | | comments. Obtained from: TrutstedBSD Project Notes: svn path=/head/; revision=170585
* - Move p_ru to the zero'd section of the proc to keep stats accurate.Jeff Roberson2007-06-111-1/+1
| | | | Notes: svn path=/head/; revision=170584
* Add CPU_XSCALE_81342 before I forget again.Olivier Houchard2007-06-111-1/+2
| | | | Notes: svn path=/head/; revision=170583
* Introduce pmap_kenter_supersection(), which maps 16MB super-sections intoOlivier Houchard2007-06-113-2/+97
| | | | | | | | the kernel pmap. Document a bit more the behavior of the xscale core 3. Notes: svn path=/head/; revision=170582
* Re-acquire the PROC_SLOCK before calling calcru(), and release it after,Olivier Houchard2007-06-111-0/+2
| | | | | | | | | since calcru() expects it to be locked. Reviewed by: attilio Notes: svn path=/head/; revision=170581
* - Validate incoming addresses and sizes for connectx and bindx.Randall Stewart2007-06-111-5/+16
| | | | | | | - For non-sys call version pass the msg_flags. Notes: svn path=/head/; revision=170580
* Bump __FreeBSD_version for TCP LRO support.Andre Oppermann2007-06-111-1/+1
| | | | Notes: svn path=/head/; revision=170579
* Add reporting and toggling of TCP LRO (large receive offload) support toAndre Oppermann2007-06-112-1/+11
| | | | | | | ifconfig(8). Notes: svn path=/head/; revision=170578
* Correct corrupt read when the read starts at a non-aligned offset.Remko Lodder2007-06-111-4/+6
| | | | | | | | | | | PR: kern/77234 MFC After: 1 week Approved by: imp (mentor) Requested by: many many people Submitted by: Andriy Gapon <avg at icyb dot net dot ua> Notes: svn path=/head/; revision=170577
* Add IFCAP_LRO flag for drivers to announce their TCP Large Receive OffloadAndre Oppermann2007-06-111-0/+1
| | | | | | | capabilities. Notes: svn path=/head/; revision=170576
* Exclude inet_addr.c from the build.Olivier Houchard2007-06-111-1/+1
| | | | | | | | | | It only provides inet_aton(), which is already provided by the libc. This causes multiple symbol definitions when linking statically. Reviewed by: darrenr Notes: svn path=/head/; revision=170575
* Fix a spacing nit.Warner Losh2007-06-111-1/+0
| | | | Notes: svn path=/head/; revision=170574
* Prefer __packed to __attribute__((__packed__)).Warner Losh2007-06-111-1/+1
| | | | | | | OK'd by sam@ months ago... Notes: svn path=/head/; revision=170573
* Exclude wlan_scan_* from PAE like the rest of wlan.Andrew Thompson2007-06-111-0/+2
| | | | Notes: svn path=/head/; revision=170571
* Remove some ioctls that were ill-thought out. There is no userMatt Jacob2007-06-112-128/+14
| | | | | | | | | impact as no softwware using these ioctls was ever committed. Redo locking for ispioctl. Notes: svn path=/head/; revision=170570
* Move the oversize ethernet frame size check into DIAGNOSTIC,Andrew 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 Notes: svn path=/head/; revision=170567
* Create group ftp by default. This is gid 14 as this is the historicalCeri Davies2007-06-112-3/+4
| | | | | | | | | | | | | | | id used by sysinstall when enabling anonymous FTP. Change the default group used by sysinstall for setting up anonymous FTP from operator to ftp; there is no reason to use operator and there are potential security issues when doing so. PR: 93284 Approved by: ru (mentor) Reviewed by: simon Notes: svn path=/head/; revision=170566
* Back out the previous commit which added an M_LRO mbuf flagAndrew Gallatin2007-06-113-5/+2
| | | | | | | | to defeat the mtu check in ether_input. Mbuf flags are too scarce. Discussed with: sam Notes: svn path=/head/; revision=170565
* Check against maxsegsz being zero in bus_dma_tag_create and return EINVALMatt Jacob2007-06-112-0/+8
| | | | | | | | | if it is. Reviewed by: scott long Notes: svn path=/head/; revision=170564
* Only try and set a segment lim size to 1 << 32 iff bus_size_t > 4.Matt Jacob2007-06-111-2/+6
| | | | Notes: svn path=/head/; revision=170563
* Silence a gcc warning in a more canonical way (evl = NULL rather than &evl).Warner Losh2007-06-111-2/+1
| | | | | | | I saw warnings here at one point on the arm build. Notes: svn path=/head/; revision=170561
* Allow drivers, such as cxgb and mxge, which support LRO to bypassAndrew Gallatin2007-06-113-2/+5
| | | | | | | | | the MTU check in ether_input() on LRO merged frames. Discussed with: kmacy Notes: svn path=/head/; revision=170560
* Small LRO related fixes for mxge:Andrew Gallatin2007-06-112-5/+39
| | | | | | | | | | - Allow LRO to be enabled / disabled at runtime - Fix a double-free at module unload time. - Only update timestamp in lro merge when it is present in the frame Sponsored by: Myricom Notes: svn path=/head/; revision=170559
* When we return from a "show" function without printing anything exceptBruce Evans2007-06-111-6/+6
| | | | | | | | | | | | | | | a warning, return 1 instead of 0 to indicate that we didn't print anything, so that top-level callers don't print a spurious newline. This is mainly to fix output formatting when stderr is redirected. It also helps in some cases when stderr is interleaved with stdout, depending on the details of the interleaving (this program has the usual null explicit support for syncing stderr with stdout). Return 1 instead of -1 after printing the "malloc failed" warning, since the return value is boolean. Notes: svn path=/head/; revision=170558
* Add missing \n to printfPoul-Henning Kamp2007-06-111-1/+1
| | | | Notes: svn path=/head/; revision=170557
* MFp4 (missed in net80211 megaupdate)Andrew Thompson2007-06-112-7/+25
| | | | | | | | | | | - Use a seperate taskqueue+thread for reset tasks since iwi_ops will block. - Return from iwi_ops if the interface has been downed - The firmware will fail if we are already associated - Add myself to the copyright Notes: svn path=/head/; revision=170554
* Add wlan_scan_ap and wlan_scan_sta to platforms that include wlan.Andrew Thompson2007-06-114-0/+8
| | | | Notes: svn path=/head/; revision=170552
* Fix what seems to be a copy-paste buglet (`moused_type' is usedGiorgos Keramidas2007-06-111-3/+30
| | | | | | | | | | | | | | in the description of `moused_flags', instead of the later), and add a description of `moused_XXX_flags' where `XXX' is the port name of a non-default moused invocation -- including an example of using "-3" with the default moused(8) instance, but no special flags for moused(8) invocations handling 3-button USB mice (which seems a very common scenario these days). MFC after: 3 days Notes: svn path=/head/; revision=170551
* Fix an aliasing bug which was finally detected by gcc-4.2. fdlibm hasBruce Evans2007-06-111-1/+1
| | | | | | | | | | | | hundreds of similar aliasing bugs, but all except this one seem to have been fixed by Cygnus and/or NetBSD before the modified version of fdlibm was imported into FreeBSD in 1994. PR: standards/113147 Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu> Notes: svn path=/head/; revision=170550
* Add new files in the net80211 changes.Andrew Thompson2007-06-111-1/+3
| | | | Notes: svn path=/head/; revision=170549
* Add inet_ntoa_r, a reentrant version of inet_ntoa. This isXin LI2007-06-115-2/+25
| | | | | | | | | available on a lot of platforms, as well as libkern for years. Submitted by: "MQ" Notes: svn path=/head/; revision=170548
* Use tabs after #define.Stefan Farfeleder2007-06-111-5/+5
| | | | | | | | Obtained from: NetBSD Spotted by: njl Notes: svn path=/head/; revision=170547
* Expand DECLARE_USB_DMA_T inline in the one place it is used and eliminateWarner Losh2007-06-112-9/+6
| | | | | | | from usb_port.h. Notes: svn path=/head/; revision=170546
* Eliminate USB_ATTACH_SETUP and USB_MATCH_SETUP. They are no longer inWarner Losh2007-06-111-9/+0
| | | | | | | the tree. Notes: svn path=/head/; revision=170545
* Prefer device_printf over printf.Warner Losh2007-06-112-45/+34
| | | | Notes: svn path=/head/; revision=170544
* Minor tweak.Warner Losh2007-06-111-4/+2
| | | | Notes: svn path=/head/; revision=170543
* Prefer device_printf to printfWarner Losh2007-06-111-44/+41
| | | | | | | | | Eliminate rue_unit from softc # saves ~200 bytes Notes: svn path=/head/; revision=170542
* Prefer device_printf to printfWarner Losh2007-06-112-40/+36
| | | | | | | | | Remove keu_unit from softc # this change saves about 180 bytes in the module, all in text Notes: svn path=/head/; revision=170541
* Get rid of useless devinfo stuffWarner Losh2007-06-111-40/+28
| | | | | | | | | | Kill bogus bzero prefer device_printf to printf Reviewed by: alfred@ Notes: svn path=/head/; revision=170540
* Prefer device_printf to printf where sane.Warner Losh2007-06-112-33/+29
| | | | | | | Elimiante cue_unit from softc. Notes: svn path=/head/; revision=170539
* Don't lose leading '/' for pathnames exactly 101 bytes long.Tim Kientzle2007-06-112-8/+25
| | | | | | | Also, update the test harness to exercise this case. Notes: svn path=/head/; revision=170538
* - Don't force to be the GDB port since dcons(4) is in GENERIC now.Hidetoshi Shimokawa2007-06-111-1/+5
| | | | | | | | | To enable the GDB port of dcons(4), you need to put dcons_gdb=1 in /boot/loader.conf. Notes: svn path=/head/; revision=170537
* note 802.11 changesSam Leffler2007-06-111-0/+13
| | | | Notes: svn path=/head/; revision=170536
* add 11n statsSam Leffler2007-06-111-17/+60
| | | | Notes: svn path=/head/; revision=170535
* o add 11n knobSam Leffler2007-06-112-10/+22
| | | | | | | o gcc42 stuff Notes: svn path=/head/; revision=170534
* o add minimal radiotap support for 11nSam Leffler2007-06-113-15/+191
| | | | Notes: svn path=/head/; revision=170533
* track net80211 changes to get scan results ioctlSam Leffler2007-06-111-5/+5
| | | | Notes: svn path=/head/; revision=170532
* Update for revised 802.11 support:Sam Leffler2007-06-114-171/+959
| | | | | | | | | | | | | | | | | | | | | | | o revised channel handling support; ifconfig now queries the kernel to find the list of available channels and handles channel promotion; channel attributes can be specified as part of the channel; e.g. 36:a for channel 36 in 11a (as opposed to turbo A or HT A) o use channel list to map between freq and IEEE channel #; this eliminates all knowledge of how the mapping is done and fixes handling of cases where channels overlap in the IEEE channel # space but are distinct in the frequency+attributes space (e.g. PSB) o add new knobs: bgscan, ff (Atheors fast frames), dturbo (Atheros Dynamic Turbo mode), bgscanidle, bgscanintvl, scanvalid, roam:rssi11a, roam:rssi11b, roam:rssi11g, roam:rate11a, roam:rate11b, roam:rate11g (roaming parameters), burst, doth (forthcoming 11h support) o print contents of WME, ATH, WPA, RSN, information elements with -v option o print signal strength in dBm o print noise floor in dBm o add list txpow to print tx power caps/channel o change default channel display in status to be more informative Notes: svn path=/head/; revision=170531
* Update 802.11 wireless support:Sam Leffler2007-06-1169-4853/+13028
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=170530