summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | adds DLINK2 DWA120 device.weongyo2009-07-272-0/+3
| | | | | | | | | | | | PR: usb/136950 Reported by: Alexander Kuznetsov <skritku at gmail.com> Approved by: re (kib)
* | urtw(4) supports RTL8187B chipset now.weongyo2009-07-271-4/+4
| | | | | | | | Approved by: re (kib)
* | This patch does the following:qingli2009-07-274-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Allow loopback route to be installed for address assigned to interface of IFF_POINTOPOINT type. - Install loopback route for an IPv4 interface addreess when the "useloopback" sysctl variable is enabled. Similarly, install loopback route for an IPv6 interface address when the sysctl variable "nd6_useloopback" is enabled. Deleting loopback routes for interface addresses is unconditional in case these sysctl variables were disabled after an interface address has been assigned. Reviewed by: bz Approved by: re
* | Fix the freebsd32 versions of semsys(), shmsys(), and msgsys() to use thejhb2009-07-271-6/+6
| | | | | | | | | | | | | | old ABI versions of the relevant control system call (e.g. freebsd7_freebsd32_msgctl() instead of freebsd32_msgctl() for msgsys()). Approved by: re (kib)
* | We don't support ephemeral IDs in FreeBSD and without this fix ZFS canpjd2009-07-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | panic when in zfs_fuid_create_cred() when userid is negative. It is converted to unsigned value which makes IS_EPHEMERAL() macro to incorrectly report that this is ephemeral ID. The most reasonable solution for now is to always report that the given ID is not ephemeral. PR: kern/132337 Submitted by: Matthew West <freebsd@r.zeeb.org> Tested by: Thomas Backman <serenity@exscape.org>, Michael Reifenberger <mike@reifenberger.com> Approved by: re (kib) MFC after: 2 weeks
* | Mesh fixes, namely:rpaulo2009-07-275-91/+155
| | | | | | | | | | | | | | | | | | | | | | | | * don't clobber proxy entries * HWMP seq number processing, including discard of old frames * flush routing table entries based on nexthop * print route flags in ifconfig * more debugging messages and comments Proxy changes submitted by sam. Approved by: re (kib)
* | Refine the MacBook hack to only match early models that have Intel ICH.rpaulo2009-07-272-2/+8
| | | | | | | | | | Discussed with: kjim Approved by: re (kib)
* | Fix the handling of unordered messages when usingtuexen2009-07-271-1/+7
| | | | | | | | | | | | | | PR-SCTP. Approved by: re, rrs (mentor) MFC after: 3 weeks.
* | * Document the dev.asmc.N.light.control sysctl. [1]rpaulo2009-07-271-10/+17
| | | | | | | | | | | | | | | | * Add more models that have the SMC. PR: 137168 [1] Submitted by: Patrick Lamaiziere <patfbsd at davenulle.org> Approved by: re (kib)
* | Get rid of unused field. This will also be deletedtuexen2009-07-271-1/+0
| | | | | | | | | | | | in the official speciication of the SCTP socket API. Approved by:re, rrs (mentor)
* | Note that COMPAT_43 requires COMPAT_FREEBSD7 too.kib2009-07-261-3/+3
| | | | | | | | | | Submitted by: Steve Kargl Approved by: re (kensmith)
* | The parser for Rockridge symlinks tended to insertkientzle2009-07-261-8/+8
| | | | | | | | | | | | | | | | extra slashes at the beginning of absolute targets. Thanks to Jung-uk Kim for pointing this out to me. Approved by: re (kib)
* | Add a missing unlock for the inp lock whentuexen2009-07-261-0/+1
| | | | | | | | | | | | | | returning early from sctp_add_to_readq(). Approved by: re, rrs (mentor) MFC after: 2 weeks.
* | Restore PATA device probe order, broken by PMP support implementation,mav2009-07-261-1/+17
| | | | | | | | | | | | | | | | requesting IDENTIFY from slave device first. This order is important for proper cable type detection by master device. PR: kern/136438 Approved by: re (kib)
* | Update epair(4) to the new netisr implementation and polishbz2009-07-2611-112/+301
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | things a bit: - use dpcpu data to track the ifps with packets queued up, - per-cpu locking and driver flags - along with .nh_drainedcpu and NETISR_POLICY_CPU. - Put the mbufs in flight reference count, preventing interfaces from going away, under INVARIANTS as this is a general problem of the stack and should be solved in if.c/netisr but still good to verify the internal queuing logic. - Permit changing the MTU to virtually everythinkg like we do for loopback. Hook epair(4) up to the build. Approved by: re (kib)
* | Make the in-kernel logic for the SIOCSIFVNET, SIOCSIFRVNET ioctlsbz2009-07-263-58/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (ifconfig ifN (-)vnet <jname|jid>) work correctly. Move vi_if_move to if.c and split it up into two functions(*), one for each ioctl. In the reclaim case, correctly set the vnet before calling if_vmove. Instead of silently allowing a move of an interface from the current vnet to the current vnet, return an error. (*) There is some duplicate interface name checking before actually moving the interface between network stacks without locking and thus race prone. Ideally if_vmove will correctly and automagically handle these in the future. Suggested by: rwatson (*) Approved by: re (kib)
* | Make ifconfig ifN -vnet <jname|jid> actually work:bz2009-07-261-7/+20
| | | | | | | | | | | | | | | | | | | | - fix ifconfig to ignore the non-existent interface in the current network stack in case of '-vnet'. - in ifconfig: actually use the local variables defined for the vnet functions rather than modifying the global. Reviewed by: rwatson Approved by: re (kib)
* | Eliminate a stale paragraph from the BUGS section. This "bug" wasalc2009-07-261-8/+1
| | | | | | | | | | | | eliminated in r195693. Approved by: re (kensmith)
* | Fix syntax error, makefile comments start with #.kib2009-07-251-1/+1
| | | | | | | | | | Submitted by: bde Approved by: re (kensmith)
* | Add note, that ahci(4) and siis(4) supersede ata(4) drivers.mav2009-07-251-0/+3
| | | | | | | | Approved by: re (implicitly)
* | PMP provides 16 targets (15 drives + itself).mav2009-07-251-1/+1
| | | | | | | | Approved by: re (implicitly)
* | Libarchive recognizes hardlinked files on ISO images,kientzle2009-07-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | but returned them incorrectly, causing tar to actually erase the resulting file while trying to restore the link. This one-line fix corrects the hardlink descriptions to avoid this problem. Thanks to Jung-uk Kim for pointing this out. Approved by: re (kib)
* | Add ahci and siis drivers to NOTES.mav2009-07-251-0/+9
| | | | | | | | Approved by: re (implicitly)
* | Some jail parameters (in particular, "ip4" and "ip6" for IP addressjamie2009-07-257-165/+277
| | | | | | | | | | | | | | | | | | restrictions) were found to be inadequately described by a boolean. Define a new parameter type with three values (disable, new, inherit) to handle these and future cases. Approved by: re (kib), bz (mentor) Discussed with: rwatson
* | Change the name displayed in sysinstall(8) from 'Wizard Mode'trasz2009-07-253-4/+4
| | | | | | | | | | | | | | to 'Expert Mode', to make it less confusing to new users, to whom a 'wizard' is a set of simple dialogs with the 'next >>>' button. Approved by: re (kensmith)
* | Catch ipfw up to the rest of the vimage code.julian2009-07-251-109/+163
| | | | | | | | | | | | It got left behind when it moved to its new location. Approved by: re (kensmith)
* | Improvement on the last change, this gives a precisejfv2009-07-243-18/+18
| | | | | | | | | | | | | | way to tell the one and only interface that a vlan event is for. Thanks to John Baldwin for the patch. Approved by: re
* | Introduce a new sysctl process mib, kern.proc.groups which adds thebrooks2009-07-243-2/+81
| | | | | | | | | | | | | | | | | | | | | | | | ability to retrieve the group list of each process. Modify procstat's -s option to query this mib when the kinfo_proc reports that the field has been truncated. If the mib does not exist, fall back to the truncated list. Reviewed by: rwatson Approved by: re (kib) MFC after: 2 weeks
* | Bump __FreeBSD_version for the introduction of OBJT_SG.jhb2009-07-241-1/+1
| | | | | | | | Approved by: re (kensmith)
* | This delta fixes two bugs:jfv2009-07-243-7/+25
| | | | | | | | | | | | | | | | | | | | | | - When a vlan event occurs a check was not made that the event was actually for the interface, thus resulting in a panic. All three drivers have this vulnerability. Add a check for this condition. - Secondly, there was a duplicate buf_ring free in the em driver resulting in a panic on unload. Remove. Approved by: re
* | A small number of systems in the ICH9/10 family have a flashjfv2009-07-241-22/+2
| | | | | | | | | | | | | | | | | | part that is made up of 8K banks rather than 4K, if these systems are using bank 1 then the last change in this code breaks the bank read, resulting in an invalid checksum of the eeprom during driver load. This change fixes this. Approved by: re
* | revert OACTIVE part of r195845; instead fix the comment so it does not refersam2009-07-241-1/+13
| | | | | | | | | | | | to the old hack removed in r193312 Approved by: re (implicit)
* | Update for vaps:sam2009-07-249-114/+32
| | | | | | | | | | | | | | | | | | o do not force monitor mode; the wlanX ifnet must be an ahdemo mode vap o move channel change work before marking ifnet up to avoid churning the state machine o change default ifnet name to "wlan0" Approved by: re (kensmith)
* | correct handling of IFF_PROMISC; this should not be pushed to the parentsam2009-07-241-1/+2
| | | | | | | | | | | | | | device except for monitor and ahdemo mode vaps Reviewed by: rpaulo Approved by: re (kensmith)
* | monitor mode vaps are meant to be read-only so they can operate on anysam2009-07-241-5/+18
| | | | | | | | | | | | | | | | frequency w/o regulatory issues, do this by hooking if_transmit and if_output with routines that discard all transmits Reviewed by: thompsa, cbzimmer (intent) Approved by: re (kensmith)
* | o kill old code no longer needed after r193312sam2009-07-241-14/+3
| | | | | | | | | | | | o count output packets+errors for frames sent through ieee80211_output Approved by: re (kensmith)
* | Remove debugging that crept in with previous commit.jhb2009-07-241-5/+1
| | | | | | | | | | Reported by: nwhitehorn Approved by: re (kib)
* | Revert the changes to struct kinfo_proc in r194498. Instead, fillbrooks2009-07-243-8/+26
| | | | | | | | | | | | | | | | | | | | in up to 16 (KI_NGROUPS) values and steal a bit from ki_cr_flags (all bits currently unused) to indicate overflow with the new flag KI_CRF_GRP_OVERFLOW. This fixes procstat -s. Approved by: re (kib)
* | Add a new type of VM object: OBJT_SG. An OBJT_SG object is very similar tojhb2009-07-2424-19/+313
| | | | | | | | | | | | | | | | | | | | | | a device pager (OBJT_DEVICE) object in that it uses fictitious pages to provide aliases to other memory addresses. The primary difference is that it uses an sglist(9) to determine the physical addresses for a given offset into the object instead of invoking the d_mmap() method in a device driver. Reviewed by: alc Approved by: re (kensmith) MFC after: 2 weeks
* | Move the check to ensure the locate database has the minimum required sizejhb2009-07-242-3/+2
| | | | | | | | | | | | | | | | | | | | when using mmap() before invoking mmap(). This avoids a confusing error message when locate is invoked against a zero-size database after the recent change to make mmap() fail requests to map 0 bytes. Submitted by: Jaakko Heinonen jh of saunalahti dot fi Approved by: re (kensmith) MFC after: 1 week
* | Make libkvm work on live systems and crashdumps with andbz2009-07-234-9/+412
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | without VIMAGE virtualization in the kernel. If we cannot resolve a symbol try to see if we can find it with prefix of the virtualized subsystem, currently only "vnet_entry" by identifying either the vnet of the current process for a live system or the vnet of proc0 (or of dumptid if compiled in a non-default way). The way this is done currently allows us to only touch libkvm but no single application. Once we are going to virtualize more subsystems we will have to review this decision for better scaling. Submitted by: rwatson (initial version of kvm_vnet.c, lots of ideas) Reviewed by: rwatson Approved by: re (kib)
* | Introduce and use a sysinit-based initialization scheme for virtualrwatson2009-07-2328-721/+397
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | network stacks, VNET_SYSINIT: - Add VNET_SYSINIT and VNET_SYSUNINIT macros to declare events that will occur each time a network stack is instantiated and destroyed. In the !VIMAGE case, these are simply mapped into regular SYSINIT/SYSUNINIT. For the VIMAGE case, we instead use SYSINIT's to track their order and properties on registration, using them for each vnet when created/ destroyed, or immediately on module load for already-started vnets. - Remove vnet_modinfo mechanism that existed to serve this purpose previously, as well as its dependency scheme: we now just use the SYSINIT ordering scheme. - Implement VNET_DOMAIN_SET() to allow protocol domains to declare that they want init functions to be called for each virtual network stack rather than just once at boot, compiling down to DOMAIN_SET() in the non-VIMAGE case. - Walk all virtualized kernel subsystems and make use of these instead of modinfo or DOMAIN_SET() for init/uninit events. In some cases, convert modular components from using modevent to using sysinit (where appropriate). In some cases, do minor rejuggling of SYSINIT ordering to make room for or better manage events. Portions submitted by: jhb (VNET_SYSINIT), bz (cleanup) Discussed with: jhb, bz, julian, zec Reviewed by: bz Approved by: re (VIMAGE blanket)
* | Eliminate unnecessary cache and TLB flushes by pmap_change_attr(). (Thisalc2009-07-231-4/+11
| | | | | | | | | | | | optimization was implemented in the amd64 version roughly 1 year ago.) Approved by: re (kensmith)
* | Fix serial console on Apple Xserve G5 by falling back to input-device-1nwhitehorn2009-07-231-9/+32
| | | | | | | | | | | | | | | | | | | | if input-device is unavailable. The Xserve G5 defaults to using screen/keyboard for output-device/input-device even if these are not installed, and then falls back to serial ports at boot time. Reviewed by: marcel Hardware from: grehan Approved by: re (kib)
* | Add the -d switch to the usage message.brian2009-07-231-1/+1
| | | | | | | | | | | | Submitted by: Emil Mikulic - emil at dmr dot ath dot cx Approved by: re (kib) MFC after: 1 week
* | It is believed the last of the base system that could have an issue withkensmith2009-07-221-10/+10
| | | | | | | | | | | | | | IDs larger than 16-bits has been updated so adjust sysinstall to allow IDs up to the current system-wide size of 32-bits. Approved by: re (kib)
* | It is believed the last subsystem that limited ID sizes to somethingkensmith2009-07-221-7/+18
| | | | | | | | | | | | | | | | | | | | other than the current system-wide size (32-bits) has been updated so for now just cautiously turn the check off. While here fix the check for IDs being too large which doesn't work due to type mis-matches. Reviewed by: jhb (previous version) Approved by: re (kib) MFC after: 1 month (type mis-match fixes only)
* | When vfs.newnfs.callback_addr is set to an IPv4 address, thermacklem2009-07-221-1/+1
| | | | | | | | | | | | | | | | experimental NFSv4 client might try and use it as an IPv6 address, breaking callbacks. The fix simply initializes the isinet6 variable for this case. Approved by: re (kensmith), kib (mentor)
* | Fix extattr_list_file(2) on ZFS in case the attribute directorytrasz2009-07-221-3/+3
| | | | | | | | | | | | | | | | | | | | doesn't exist and user doesn't have write access to the file. Without this fix, it returns bogus value instead of 0. For some reason this didn't manifest on my kernel compiled with -O0. PR: kern/136601 Submitted by: Jaakko Heinonen <jh at saunalahti dot fi> Approved by: re (kib)
* | Add changes to the experimental nfs client to use the PBDRY flag forrmacklem2009-07-223-7/+14
| | | | | | | | | | | | | | | | msleep(9) when a vnode lock or similar may be held. The changes are just a clone of the changes applied to the regular nfs client by r195703. Approved by: re (kensmith), kib (mentor)
OpenPOWER on IntegriCloud