summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-08-27syncTheo de Raadt
2008-08-27another upsTheo de Raadt
2008-08-27Some __packed cleanup; Remove another obsolete pack from a none-hardwareMarcus Glocker
struct and pack all other hardware structs which have been forgotten.
2008-08-27move definitions of channels attributes away from ieee80211.h suchDamien Bergamini
that ieee80211.h contains only definitions that are part of the 802.11 standard and not constants used internally by net80211. because channels attributes are exported to userland through the radiotap BPF interface, add the definitions to ieee80211_radiotap.h too (which must be kept in sync with what is used in net80211). also, do not export combinations of channel attributes to userland so that noone get stupid ideas.
2008-08-27pass FCS to radiotap.Damien Bergamini
2008-08-27fix IEEE80211_RADIOTAP_F_SHORTPREDamien Bergamini
2008-08-27another IEEE80211_RADIOTAP_F_FCS candidate.Damien Bergamini
2008-08-27add IEEE80211_RADIOTAP_F_FCS radiotap flag from NetBSD.Damien Bergamini
use it in drivers that leave the 802.11 FCS in frames passed to radiotap BPF. otherwise, userland has no way to know if FCS is included or not as it depends on drivers. this is required by some ports (aircrack). requested by dhill@
2008-08-27hardware may pass us ACK or CTS frames in some cases, so useDamien Bergamini
IEEE80211_ACK_LEN instead of IEEE80211_MIN_LEN for ZYD_MIN_RXBUFSZ and ZYD_MIN_FRAGSZ. silence some warnings while i'm there. change ZYD_FILTER_BSS to use the same value as the vendor's driver that contains some magic (undocumented) bits.
2008-08-27the firmware is responsible for sending management frames, butDamien Bergamini
since we pass received management frames to net80211, net80211 may send replies (like deauth/disassoc), so we just call IF_PURGE(&ic->ic_mgtq) in {ipw,iwi}_start just to be on the safe side of things (so we don't leak mbufs).
2008-08-27override net80211's ic_node_alloc function to allocate a fullDamien Bergamini
bwi_node structure (containing the rate control state). because bwi(4) does not support HostAP or IBSS modes there is no need to maintain a per-node rate control state, so we could as well store it in bwi_softc but that will allow for future improvements. pointed out by Taylor R Campbell (campbell AT mumble DOT net) on tech@
2008-08-27introduce new IEEE80211_STA_ONLY kernel option that can be set toDamien Bergamini
remove IBSS and HostAP support from net80211 and 802.11 drivers. it can be used to shrink RAMDISK kernels for instance (like what was done for wi(4)). it also has the benefit of highlighting what is specific to IBSS and HostAP modes in the code. the cost is that we now have two code paths to maintain.
2008-08-27Fix length check when parsing PPPoE discovery phase packets.Brad Smith
Malicious PPPoE discovery packets could cause the kernel to crash. From canacar@ and inspired by the original fix from NetBSD. ok canacar@
2008-08-27add a C-c target, so we can use it as a prefix for keybindings.Kjell Wooding
Now you can do something like: global-set-key "\^c\^c" compile in your ~/.mg
2008-08-27exposed too much, only expose prototype outside ifdefMartynas Venckus
2008-08-27delete unused pragma ident junkTheo de Raadt
2008-08-27comment fixesMartynas Venckus
2008-08-27fix 128-bit division. gcc mangled arguments when passing to theMartynas Venckus
__udivti3, because MUST_PASS_IN_STACK always returned 1 on amd64; pr#5780 reported by Simon Kuhnle tested by Simon Kuhnle, sthen@, brad@ double-checked & tweak from miod@ ok sthen@, brad@
2008-08-26Fix an if (); typo. ok beck@Jonathan Gray
2008-08-26another ups to knock out of being a uhidTheo de Raadt
2008-08-26syncTheo de Raadt
2008-08-26new devsTheo de Raadt
2008-08-26Fix alignment panic on sparc64 by removing a wrong __packed. WhileMarcus Glocker
there reorder fields in the struct to make it shorter on 64 bit archs. panic reported by jasper@ thanks to miod@ for helping me debug this down
2008-08-26Fix a couple of problems that may make gem(4) get stuck:Mark Kettenis
1. If bus_dmamap_load_mbuf() fails because there are not enough segments in the map, defrag the mbuf. 2. If there are not enough free (hardware ring) descriptors, set IFF_OACTIVE and keep the packet on the queue. 3. If there is some other resource starvation that makes bus_dmamap_load_mbuf() or defragmentation fail, drop the packet. Don't set IFF_OACTIVE, since the Tx ring could be empty and we'd be stuck. 4. Only pass packets that are actually handed off to the hardware to BPF. Do so before handing them off to the hardware to make sure the packet isn't freed behind our back. ok dlg@
2008-08-26Stylus pressure sensor is active low, so invert the logic converting itMiod Vallat
to button #5.
2008-08-26Better strategy to single out onboard bge(4)'s on sparc64 machines.Mark Kettenis
ok deraadt@
2008-08-26When using the not-documented-but-ought-to 'boot sd(...)file' syntax (e.g.Miod Vallat
when mopbooting the bootblocks because one trashed the ones on disk by accident), be sure to use the proper BDEV_SDx rpb device type value, depending on the type of onboard controller. Crank version.
2008-08-26- add FMartynas Venckus
- make inf INF nan NAN comply to standards (eEfFgG) - extend man page bits ok millert@. w/ a man page tweak and ok jmc@
2008-08-26don't zero-pad special values. ok millert@Martynas Venckus
2008-08-26Plug potential memory leak.Mark Kettenis
"looks sane to me" otto@, ok miod@
2008-08-26we need to call pf_pkt_addr_changed here too. found by davidHenning Brauer
2008-08-26call pf_pkt_addr_changed instead of manually clearing the pf state key ptrHenning Brauer
2008-08-26introduce a function to be called when addressing information has changed,Henning Brauer
pf_pkt_addr_changed. atm just clears the state key pointer. calling this is cleaner than having other parts of the stack clearing pointers in the pf part of the mbuf packet header directly.
2008-08-26libbfd and libopcodes no longer built;Jason McIntyre
2008-08-26Update comment to mention the 8211C.Brad Smith
2008-08-26Mention the 8211C.Brad Smith
2008-08-26regenBrad Smith
2008-08-26Add the PCI id for the Broadcom BCM5785 Ethernet controller.Brad Smith
2008-08-26regenJoel Sing
prompted by todd@
2008-08-25correct +name handling; schwarze@usta.deTheo de Raadt
2008-08-25two spelling fixes from Anathae Townsend;Jason McIntyre
2008-08-25- usb stuffJasper Lievisse Adriaanse
2008-08-25Make all combinations of G, P, J and zero-fill work with as littleOtto Moerbeek
effort as possible in most cases; ok djm@
2008-08-25We can install from a CD-ROM now...Joel Sing
2008-08-25use ?= for adjusting RELXDIR for all setsTheo de Raadt
2008-08-25Now that the rest of the infrastructure is in place, actually create aJoel Sing
working installXX.iso for OpenBSD/sgi! ok deraadt@
2008-08-25- add a bunch of enabled usb devices that have been tested.Jasper Lievisse Adriaanse
together with the previous commits by jsing@, OpenBSD/sgi does USB now. ok jsing@ miod@
2008-08-25Make sgivol(8) use the device sector size for reads and writes. This allowsJoel Sing
us to use sgivol on devices which have a sector size != DEV_BSIZE, such as a CD drive. ok miod@ krw@
2008-08-25Add bus_space_read_raw_region_* and bus_space_write_raw_region_* bus spaceJoel Sing
accessors to OpenBSD/sgi. ok miod@
2008-08-25regenJoel Sing