summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add device entry for a Farallon EtherMac PC Card that I won on ebay. Thisimp2005-07-061-0/+1
| | | | | | one is supported by the sn driver. Approved by: re (scottl)
* add pureg/-pureg parameter for controlling pureg ap mode supportsam2005-07-062-1/+22
| | | | | Reviewed by: avatar Approved by: re (scottl)
* add "pureg" mode for ap operation: reject association requests fromsam2005-07-064-2/+23
| | | | | | | 11b-only stations when operating in 11g Reviewed by: avatar Approved by: re (scottl)
* Correct a buffer overflow which occurred in the handling of somecperciva2005-07-061-1/+1
| | | | | | | particularly corrupt deflated data streams. Security: FreeBSD-SA-05:16.zlib Approved by: re (security blanket)
* Fix handling of data frames queued for a station in power save mode:sam2005-07-063-6/+7
| | | | | | | | | | don't mark the MORE_DATA bit when taking it off the ps queue, there's no 802.11 header then; we must wait to do this at encap time so mark the mbuf instead. Reviewed by: avatar Approved by: re (scottl) Obtained from: Atheros
* Fix race condition in handling node reference counts for authenticatingsam2005-07-063-2/+32
| | | | | | | | | stations in ap mode. Track when a node's first auth frame is received and use this to decide whether or not to bump the refcnt. This insures we only ever bump the refcnt once. Reviewed by: avatar Approved by: re (scottl)
* Only update the scan entry state based on newly received frames.avatar2005-07-061-1/+2
| | | | | | | | This fixes duplicative BSS entries(memory leaks as well) listed in "ifconfig dev list scan" when a station fails to associate with an AP. Reviewed by: sam Approved by: re (scottl)
* - Previously when broadcasting to N number of interfaces we would run pfilthompsa2005-07-063-32/+89
| | | | | | | | | | | | | | | | | | | hooks for each outgoing interface but also run pfil hooks _N times_ on the bridge interface. This is changed so pfil hooks are run once for the bridge interface (bridge0) and then only on the outgoing interfaces in the broadcast loop. - Simplify bridge_enqueue() by moving bridge_pfil() to the callers. - Check (inet6_pfil_hook.ph_busy_count >= 0), it may be possible to have a packet filter hooked for only ipv6 but we were only checking if ipv4 hooks were busy. - Minor optimisation for null mbuf check after bridge_pfil(), move it into the if-block as it couldnt possibly be null outside. Prodded by: mlaier Approved by: re (scottl), mlaier (mentor)
* Eliminate MAC entry point mac_create_mbuf_from_mbuf(), which isrwatson2005-07-0514-111/+18
| | | | | | | | | | | redundant with respect to existing mbuf copy label routines. Expose a new mac_copy_mbuf() routine at the top end of the Framework and use that; use the existing mpo_copy_mbuf_label() routine on the bottom end. Obtained from: TrustedBSD Project Sponsored by: SPARTA, SPAWAR Approved by: re (scottl)
* Add MAC Framework and MAC policy entry point mac_check_socket_create(),rwatson2005-07-057-0/+63
| | | | | | | | | | | which is invoked from socket() and socketpair(), permitting MAC policy modules to control the creation of sockets by domain, type, and protocol. Obtained from: TrustedBSD Project Sponsored by: SPARTA, SPAWAR Approved by: re (scottl) Requested by: SCC
* Remove a || 1 that crept into the i8254 commit and was subsequentlyjhb2005-07-055-5/+5
| | | | | | | | | copied and pasted. I had actually tested without this change in my trees as had the other testers. Reported by: bde, Rostislav Krasny rosti dot bsd at gmail dot com Approved by: re (scottl) Pointy hat to: jhb
* Fix for a bug in newreno partial ack handling where if a large amountps2005-07-052-2/+10
| | | | | | | of data is partial acked, snd_cwnd underflows, causing a burst. Found, Submitted by: Noritoshi Demizu Approved by: re
* Use the correct login class when setting a new password.des2005-07-051-1/+1
| | | | | | | PR: 65557, 72949 Submitted by: Stephen P. Cravey <clists@gotbrains.org> Approved by: re (scottl) MFC after: 2 weeks
* remove auto-add of IEEE80211_KEY_GROUP; all the apps that need tosam2005-07-051-3/+0
| | | | | | | set it have been fixed Reviewed by: avatar Approved by: re (scottl)
* Remove obsoleted sysctl interface for switching between standard and 3Comglebius2005-07-052-49/+2
| | | | | | | | | | PPPoE modes. The interface was declared obsoleted before 5.3-RELEASE. When running as access concentrator ng_pppoe(4) supports both modes simultanously. When running as client mode can be swicthed in ppp(8) configuration. Approved by: re (scottl)
* explicitly set IEEE80211_KEY_GROUP instead of depending on kernel kludgesam2005-07-051-1/+1
| | | | | Reviewed by: avatar Approved by: re (scottl)
* Update key handling:sam2005-07-051-12/+27
| | | | | | | | | | | | | | | o use proper api for setting/deleting keys instead of depending on key indices o check mac address to decide whether a key is unicast or group/global o check set_tx on key set to decide whether a group/global key should also be marked as default o explicitly set IEEE80211_KEY_GROUP flag for group keys instead of depending on kernel auto-add kludge With the above changes static wep key handling works. Reviewed by: avatar Approved by: re (scottl)
* o when setting a wpa key, hold a ref on the bss node;sam2005-07-051-5/+17
| | | | | | | | | | fixes a ref cnt leak o make unicast key handling on delete identical to set o change legacy wep key api to reset the 802.11 state machine for backwards compatibility Reviewed by: avatar Approved by: re (scottl)
* In the splnet times, netgraph was functional and synchronous. Nowadays,glebius2005-07-054-3/+82
| | | | | | | | | | | | | | | | | | | | | | an item may be queued and processed later. While this is OK for mbufs, this is a problem for control messages. In the framework: - Add optional callback function pointer to an item. When item gets applied the callback is executed from ng_apply_item(). - Add new flag NG_PROGRESS. If this flag is supplied, then return EINPROGRESS instead of 0 in case if item failed to deliver synchronously and was queued. - Honor NG_PROGRESS in ng_snd_item(). In ng_socket: - When userland sends control message add callback to the item. - If ng_snd_item() returns EINPROGRESS, then sleep. This change fixes possible races in ngctl(8) scripts. Reviewed by: julian Approved by: re (scottl)
* Enhance ia64_flush_dirty() to handle the case in which td != curthread.marcel2005-07-052-23/+52
| | | | | | | | This case is triggered with ptrace(2) and the PT_SETREGS function. Change the return type of the function to int so that errors can be passed on to the caller. Approved by: re (scottl)
* Fix one "wrong b_bufobj" panic in reassignbuf() by moving VI_UNLOCK(vp)pjd2005-07-051-1/+1
| | | | | | | | below KASSERT()s, which means there was no real problem here, we just needed better locking for assertions. OK'ed by: jeff Approved by: re (scottl)
* Update for Bulletin C number 30:phk2005-07-051-20/+28
| | | | | | There will be a leapsecond at the end of 2005. Approved by: re@
* Update hardcoded postfix version number to the current postfix versionsimon2005-07-042-2/+2
| | | | | | | | | 2.2.x. PR: i386/82030 Prodded by: matteo MFC after: 1 week Approved by: re (scottl)
* Handle .Li macro's with quoted arguments, which is used in the ath(4)simon2005-07-041-1/+4
| | | | | | | manual page. Noticed by: brueffer (long ago) Approved by: re (hrs)
* when operating in ap mode, explicitly drop associated/authenticatedsam2005-07-041-19/+25
| | | | | | | stations when transitioning to INIT state (e.g. as a result of changing state at the 802.11 level) Approved by: re (scottl)
* Add support for IODATA USB-RSAQ3 USB-Serial Adapter.hrs2005-07-032-0/+3
| | | | | | Reported by: Tomokazu Hirai Approved by: re (scottl) MFC after: 3 days
* Check the alignment of the IP header before passing the packet up to thethompsa2005-07-031-0/+13
| | | | | | | | | | | | | | | packet filter. This would cause a panic on architectures that require strict alignment such as sparc64, ia64 and ppc. This uses the code block from if_bridge and the newly added macro IP_HDR_ALIGNED_P(). This /might/ be a temporary messure before all NIC drivers are educated to align the header themself. PR: ia64/81284 Obtained from: NetBSD (if_bridge) Approved by: re (dwhite), mlaier (mentor)
* - Update the CPU version check to recognize P4/EMT64 CPUs. [1]jkoshy2005-07-032-8/+13
| | | | | | | | | - Allow libpmc(3) to support P4/EMT64 PMCs on the amd64 architecture and AMD K8 PMCs on the i386. [2] Submitted by: ps [1] Pointy hat: myself [2] Approved by: re (scottl)
* Remove ambiguity from hlen. IPv4 is now indicated by is_ipv4 and we need amlaier2005-07-031-20/+17
| | | | | | | proper hlen value for IPv6 to implement O_REJECT and O_LOG. Reviewed by: glebius, brooks, gnn Approved by: re (scottl)
* o Make ipw(4) more robust against frames received with a bad length.damien2005-07-031-3/+9
| | | | | | | o Minor consistency tweaks. Reviewed by: silby (mentor) Approved by: re (scottl)
* o Add new ids for the Belkin F5D7050damien2005-07-031-3/+10
| | | | | | | | | o Indent usb ids properly o Check the return value of if_alloc() o Call if_free() in ural_detach() Reviewed by: silby (mentor) Approved by: re (scottl)
* Add another ural(4) device (Belkin F5D7050)damien2005-07-031-0/+1
| | | | | Reviewed by: silby (mentor) Approved by: re (scottl)
* MFi386: r1.221 (Use a simpler implementation for the i8254 timecounter).nyan2005-07-032-24/+70
| | | | Approved by: re (scottl)
* Minor grammar fixdelphij2005-07-031-1/+1
| | | | | Submitted by: Wojciech A. Koszek [dunstan at freebsd czest pl] Approved by: re (hrs)
* Switch Unicode charset name from "ISO-10646-UCS-2" to "UTF-16BE".imura2005-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using ISO-10646-UCS-2 will cause a problem when we use our own iconv functions in the future, or port iconv other than GNU libiconv. Each vendors treat "UCS-2" as follows, and endian issue is vendor specific: - Solaris 8 iconv Little Endian with BOM - HP-UX iconv Big Endian - NetBSD/i386 1.6 iconv Little Endian - GNU libiconv Big Endian - glibc(RedHat AS 2.1 x86) iconv Little Endian - IANA Name: ISO-10646-UCS-2 MIBenum: 1000 Source: the 2-octet Basic Multilingual Plane, aka Unicode this needs to specify network byte order: the standard does not specify (it is a 16-bit integer space) Alias: csUnicode - MSDN Little Endian http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemtextencodingclassgetencodingtopic2.asp Now using UTF-16BE is harmless, because - same as UCS-2 with 2 byte range (U+0000 - U+FFFF) - kernel code of each file systems(cd9660, msdosfs, ntfs) believes Unicode is a 2 byte character at this time. - UDF has only 2 byte range of Unicode filenames. - It's defined at RFC2781. So I believe it's time to change before starting new RELENG_6. :) Approved by: re (scottl)
* Implement functions calls from within DDB on ia64. On ia64 a functionmarcel2005-07-024-16/+58
| | | | | | | | | | | | | | | | | | | | | | | pointer doesn't point to the first instruction of that function, but rather to a descriptor. The descriptor has the address of the first instruction, as well as the value of the global pointer. The symbol table doesn't know anything about descriptors, so if you lookup the name of a function you get the address of the first instruction. The cast from the address, which is the result of the symbol lookup, to a function pointer as is done in db_fncall is therefore invalid. Abstract this detail behind the DB_CALL macro. By default DB_CALL is defined as db_fncall_generic, which yields the old behaviour. On ia64 the macro is defined as db_fncall_ia64, in which a descriptor is constructed to yield a valid function pointer. While here, introduce DB_MAXARGS. DB_MAXARGS replaces the existing (local) MAXARGS. The DB_MAXARGS macro can be defined by platforms to create a convenient maximum. By default this will be the legacy 10. On ia64 we define this macro to be 8, for 8 is the maximum number of arguments that can be passed in registers. This avoids having to implement spilling of arguments on the memory stack. Approved by: re (dwhite)
* Check the alignment of the IP header before passing the packet up to thethompsa2005-07-025-27/+64
| | | | | | | | | | | | | | | | | | | packet filter. This would cause a panic on architectures that require strict alignment such as sparc64 (tier1) and ia64/ppc (tier2). This adds two new macros that check the alignment, these are compile time dependent on __NO_STRICT_ALIGNMENT which is set for i386 and amd64 where alignment isn't need so the cost is avoided. IP_HDR_ALIGNED_P() IP6_HDR_ALIGNED_P() Move bridge_ip_checkbasic()/bridge_ip6_checkbasic() up so that the alignment is checked for ipfw and dummynet too. PR: ia64/81284 Obtained from: NetBSD Approved by: re (dwhite), mlaier (mentor)
* Don't ask about CD numbers if not installing from CD.dwhite2005-07-021-6/+8
| | | | Approved by: re
* Remove the CPU_ENABLE_SSE option from the i386 and pc98 architectures,delphij2005-07-0211-38/+7
| | | | | | | | | | | | | | | | | | | | | | | as they are already default for I686_CPU for almost 3 years, and CPU_DISABLE_SSE always disables it. On the other hand, CPU_ENABLE_SSE does not work for I486_CPU and I586_CPU. This commit has: - Removed the option from conf/options.* - Removed the option and comments from MD NOTES files - Simplified the CPU_ENABLE_SSE ifdef's so they don't deal with CPU_ENABLE_SSE from kernel configuration. (*) For most users, this commit should be largely no-op. If you used to place CPU_ENABLE_SSE into your kernel configuration for some reason, it is time to remove it. (*) The ifdef's of CPU_ENABLE_SSE are not removed at this point, since we need to change it to !defined(CPU_DISABLE_SSE) && defined(I686_CPU), not just !defined(CPU_DISABLE_SSE), if we really want to do so. Discussed on: -arch Approved by: re (scottl)
* Fix a buglet that was present in the ia64 code and that got inheritedmarcel2005-07-023-0/+3
| | | | | | | | | | | | | | | | | | by amd64 and i386: For buffered writes we collect data and write it out a ${DEV_BSIZE}-sized block at a time. The fragsz variable is used to keep track of how much data we have collected in the buffer so far and it's reset to zero immediately after writing a block to the dump device. When the last, possibly partially filled buffer is flushed, we didn't reset fragsz to 0 and as such would stop reflecting reality. Since we currently only need to do buffered writes once, this isn't a problem. However, when kernel dumps are made by hand (say by callling doadump from within DDB), the improperly cleared state from the first call to dumpsys causes the next call to dumpsys to create an invalid code file. This change resets fragsz after flushing the partially filled buffer so that it fixes the two problems at once. Approved by: re (scottl)
* Add a missing ** to the 'command' command.dannyboy2005-07-021-1/+1
| | | | | | | | PR: 79877 Submitted by: Kazuaki Oda <ybbkaz@yahoo.co.jp> Reviewed by: ru Approved by: re MFC after: 1 day
* Fix the alpha build by using the correct argument types for _kvm_kvatop().scottl2005-07-021-1/+1
| | | | | Submitted by: marcel Approved by: re (implicit)
* Fix for a bug in the change that defers sack option processing untilps2005-07-014-8/+10
| | | | | | | | | | after PAWS checks. The symptom of this is an inconsistency in the cached sack state, caused by the fact that the sack scoreboard was not being updated for an ACK handled in the header prediction path. Found by: Andrey Chernov. Submitted by: Noritoshi Demizu, Raja Mukerji. Approved by: re
* Fix for a SACK crash caused by a bug in tcp_reass(). tcp_reass()ps2005-07-012-2/+6
| | | | | | | | | | | | does not clear tlen and frees the mbuf (leaving th pointing at freed memory), if the data segment is a complete duplicate. This change works around that bug. A fix for the tcp_reass() bug will appear later (that bug is benign for now, as neither th nor tlen is referenced in tcp_input() after the call to tcp_reass()). Found by: Pawel Jakub Dawidek. Submitted by: Raja Mukerji, Noritoshi Demizu. Approved by: re
* MFi386: r1.221: use simple timecounter that is aware of irq0 being off.peter2005-07-011-7/+34
| | | | Approved by: re
* Mistakingly undefined VN_KNOTE_LOCKED in my previous commit.ssouhlal2005-07-011-1/+1
| | | | | Noticed by: Antoine Brodin <antoine.brodin@laposte.net> Approved by: re (scottl)
* Fix the recent panics/LORs/hangs created by my kqueue commit by:ssouhlal2005-07-0116-75/+176
| | | | | | | | | | | | | | | | | - Introducing the possibility of using locks different than mutexes for the knlist locking. In order to do this, we add three arguments to knlist_init() to specify the functions to use to lock, unlock and check if the lock is owned. If these arguments are NULL, we assume mtx_lock, mtx_unlock and mtx_owned, respectively. - Using the vnode lock for the knlist locking, when doing kqueue operations on a vnode. This way, we don't have to lock the vnode while holding a mutex, in filt_vfsread. Reviewed by: jmg Approved by: re (scottl), scottl (mentor override) Pointyhat to: ssouhlal Will be happy: everyone
* Upon relection, we shouldn't allow the tuple structs to be modified byimp2005-07-013-11/+7
| | | | | | | the functor, so make it a const pointer, and chase down the resulting const-poisoning. Approved by: re (scottl)
* Up the count of busses supported by usbd(8) from 4 to 40. With the adventjhb2005-07-011-1/+1
| | | | | | | | | | of USB2 "duplicate" psuedo busses, it is not at all uncommon for machines to have more than 4 USB busses nowadays. PR: bin/81533 Submitted by: Darren Pilgrim dmp at bitfreak dot org Approved by: re (scottl) MFC after: 1 week
* Use a simpler implementation for the i8254 timecounter when using the lapicjhb2005-07-012-24/+70
| | | | | | | | | | timer since irq0 isn't being driven at hz in that case and we don't need to try to handle edge cases with rollover, etc. that require irq0 to be firing for the timecounter to actually work. Submitted by: phk Tested by: schweikh Approved by: re (scottl)
OpenPOWER on IntegriCloud