summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Ensure that 1-to-1 style SCTP sockets can only be connected once.tuexen2011-09-144-59/+32
| | | | | | | | Allow implicit setup also for 1-to-1 style sockets as described in the latest version of the socket API ID. Approved by: re MFC after: 1 month
* Reduce USB memory usage during enumeration.hselasky2011-09-141-3/+4
| | | | | | | | | | We are allocating some kilobytes of extra memory during USB device enumeration. This does not change alot under FreeBSD, but makes sense for various embedded operating systems using the FreeBSD USB stack, which have less memory resources available. Approved by: re (kib) MFC after: 1 week
* Fix the handling of the flowlabel and DSCP value in the SCTP_PEER_ADDR_PARAMStuexen2011-09-146-64/+137
| | | | | | | | socket option. Honor the net.inet6.ip6.auto_flowlabel sysctl setting. Approved by: re (bz) MFC after: 1 month.
* Allow WPA PSKs up to 63 characters, the max length according tobrueffer2011-09-131-1/+1
| | | | | | | | | wpa_supplicant.conf(5). Up to now, the PSK was truncated to 15 characters (the length of the input field). PR: 159559 Submitted by: Gavin Chappell <gavin.chappell@gmail.com> Approved by: re (kib)
* Include descriptions for keymaps missing from INDEX.keymaps. This fixesgavin2011-09-131-0/+16
| | | | | | | | the five keymaps referred to only by filename on the keymap selection screen of bsdinstall. Approved by: re (kib) MFC after: 1 week
* Modify vfs_register() to use a hash calculationrmacklem2011-09-132-1/+56
| | | | | | | | | | | | | | | on vfc_name to set vfc_typenum, so that vfc_typenum doesn't change when file systems are loaded in different orders. This keeps NFS file handles from changing, for file systems that use vfc_typenum in their fsid. This change is controlled via a loader.conf variable called vfs.typenumhash, since vfc_typenum will change once when this is enabled. It defaults to 1 for 9.0, but will default to 0 when MFC'd to stable/8. Tested by: hrs Reviewed by: jhb, pjd (earlier version) Approved by: re (kib) MFC after: 1 month
* Fix typos in error messages.brueffer2011-09-131-3/+3
| | | | | | Found by: kib Approved by: re (kib) MFC after: 1 week
* Fix csup to allow case insensitive server names in the auth file,brueffer2011-09-131-1/+1
| | | | | | | | | just as advertised in the manpage. PR: 158652 Submitted by: stephen Approved by: re (kib) MFC after: 1 week
* Do not try to change the mode or ownership of the root of the mountpointkib2011-09-131-0/+27
| | | | | | | | | when newly established mdmfs mount is readonly. PR: bin/128427 Tested and reviewed by: jchandra MFC after: 1 week Approved by: re (bz)
* Improve the sleep_delay sysctl description by specifying which unitbrueffer2011-09-131-1/+1
| | | | | | | | | the number is in. PR: 159975 Submitted by: gcooper Approved by: re (kib) MFC after: 1 week
* - Fix compiler warning in ADD_64() macro.davidch2011-09-131-1/+1
| | | | | | Approved by: re Obtained from: dimitry@andic.com MFC after: One week
* zfs boot subroutines: correctly specify type of an integer literalavg2011-09-131-1/+1
| | | | | | | Found by adding more warning flags to zfs boot blocks build. Approved by: re (kib) MFC after: 1 week
* gpt/zfs boot blocks: reduce optimizing CFLAGS to -O1avg2011-09-133-29/+4
| | | | | | | | | | | | | | | | | | | | | | gpt and zfs boot blocks are not nearly as size-constrained as boot2 from which they inherited their current optimization and anti-optimization options. As such the current options do not provide any benefit, but make debugging of the code much harder. Also, it has been demonstrated that combination of -mrtd and -fno-unit-at-a-time may result in mis-compilation of the boot code with the current base gcc. Additionally, intermediate assembly file filtering is removed for zfsboot. The new boot blocks are all compile- and boot- tested using qemu. gptzfsboot is tested with real hardware. Reported by: Peter Jeremy <peterjeremy@acm.org> [miscompilation] Discussed with: bde, jhb Tested by: Sebastian Chmielewski <chmielsster@gmail.com> [gptzfsboot] Approved by: re (kib) MFC after: 3 weeks
* zfstest: cleanup the code, improve functionality and diagnosticsavg2011-09-131-16/+40
| | | | | | | | | | | | The utility is not connected to the build, so it should be safe to update it. To do: move the utility to tools/. Some code is provided by Peter Jeremy <peterjeremy@acm.org> Tested by: Sebastian Chmielewski <chmielsster@gmail.com>, Peter Jeremy <peterjeremy@acm.org> (earlier versions) Approved by: re (kib) MFC after: 4 days
* Update ObsoleteFiles.inc:pluknet2011-09-131-0/+5
| | | | | | | | - liblwres shared library version bumped with bind98 import - named.reload removed in favor of rc.d Approved by: re (kib) No objection: dougb
* Fix cpio on ARM.kientzle2011-09-132-4/+4
| | | | | | | PR: bin/160430 Submitted by: Ian Lepore Approved by: re (Kostik Belousov) MFC after: 7 days
* Merge from openresolv 3.4.4 in the vendor branch.hrs2011-09-136-47/+55
| | | | Approved by: re (kib)
* - Add an warning when ifconfig_IF_ipv6 has no inet6 keyword in fronthrs2011-09-131-2/+10
| | | | | | | | of an IPv6 address. (r225489) - Use eval for ${ifconfig_args} to fix an issue fixed in r223506. (r225489) Approved by: re (bz)
* Add $ipv6_cpe_wanif to enable functionality required for IPv6 CPEhrs2011-09-137-5/+39
| | | | | | | | | | | | | | | | | | | | | | | | | (r225485). When setting an interface name to it, the following configurations will be enabled: 1. "no_radr" is set to all IPv6 interfaces automatically. 2. "-no_radr accept_rtadv" will be set only for $ipv6_cpe_wanif. This is done just before evaluating $ifconfig_IF_ipv6 in the rc.d scripts (this means you can manually supersede this configuration if necessary). 3. The node will add RA-sending routers to the default router list even if net.inet6.ip6.forwarding=1. This mode is added to conform to RFC 6204 (a router which connects the end-user network to a service provider network). To enable packet forwarding, you still need to set ipv6_gateway_enable=YES. Note that accepting router entries into the default router list when packet forwarding capability and a routing daemon are enabled can result in messing up the routing table. To minimize such unexpected behaviors, "no_radr" is set on all interfaces but $ipv6_cpe_wanif. Approved by: re (bz)
* - Add ":origin" label to the interface id for resolvconf(8). (r223149)hrs2011-09-124-52/+164
| | | | | | | | | | | | - Add -u option to enable adding :[RA-source-address] to the interface id. (r223149) - s/INET6_ADDRSTRLEN/sizeof(ntopbuf)/ (r223149) - Fix a bug that can prevent -D from being overridden by -d. (r223149) - /-P pidfile/-p pidfile/ for consistency with rtadvd(8). (r223149) - Fix -F flag handling to support receiving RAs even when ip6.forwarding=1. (r225150) Approved by: re (kib)
* - Fix a bug that can lead to displaying an incorrect value. (r224210)hrs2011-09-128-188/+240
| | | | | | | | | | | | | | - Fix an abnormal termination caused by twice of "rtadvctl disable". (r224303) - Use poll() to wait for the control message socket instead of a spin loop. (r224304) - s/cmsg_/cm_/ to avoid conflict with CMSG_* symbols for struct cmsghdr. (r224619) - Ignore an interface that never sent RAs for graceful shut-down. (r224620) - Refine log messages. (r225148) - Fix SIGSEGV when receiving RAs that contain RDNSS and/or DNSSL options. (r225149) Approved by: re (kib)
* Allow the ipfw.ko module built with a kernel to honor any IPFIREWALL_*jhb2011-09-127-7/+7
| | | | | | | | | | options defined in the kernel config. This more closely matches the behavior of other modules which inherit configuration settings from the kernel configuration during a kernel + modules build. Reviewed by: luigi Approved by: re (kib) MFC after: 1 week
* Connect the vxge(4) module to the i386/amd64 build.brueffer2011-09-121-0/+3
| | | | | Catcher of stupid errors: kib Approved by: re (kib)
* dump_write() returns ENXIO if the dump is trying to be written outsideattilio2011-09-121-2/+5
| | | | | | | | | | | | | | | | of the device boundry. While this is generally ok, the problem is that all the consumers handle similar cases (and expect to catch) ENOSPC for this (for a reference look at minidumpsys() and dumpsys() constructions). That ends up in consumers not recognizing the issue and amd64 failing to retry if the number of pages grows up during minidump. Fix this by returning ENOSPC in dump_write() and while here add some more diagnostic on involved values. Sponsored by: Sandvine Incorporated In collabouration with: emaste Approved by: re (kib) MFC after: 10 days
* Partially revert 222753: If a CardBus card stores its CIS in a BAR, deletejhb2011-09-121-0/+1
| | | | | | | | | the BAR after parsing the CIS. This forces the resource range to be reallocated if the BAR is reused by the device. Submitted by: deischen Reviewed by: imp Approved by: re (kib)
* Add missing lib32 parts for the previous changes:pluknet2011-09-121-0/+15
| | | | | | removal of Objective-C support and libpkg; libsbuf version bump Approved by: re (kib)
* Fix error return codes for ioctls on init/lock state devices.ed2011-09-121-1/+2
| | | | | | | | | | | In revision 223722 we introduced support for driver ioctls on init/lock state devices. Unfortunately the call to ttydevsw_cioctl() clobbers the value of the error variable, meaning that in many cases ioctl() will now return ENOTTY, even though the ioctl() was processed properly. Reported by: Boris Samorodov <bsam ipt ru> Patch by: jilles@ Approved by: re@ (kib@)
* dsp_ioctl: fix type of variable used to store ioctl requestavg2011-09-121-1/+2
| | | | | | | | PR: kern/156433 Submitted by: Grigori Goronzy <greg@chown.ath.cx> Reviewed by: hselasky Approved by: re (kib) MFC after: 1 week
* The jump target shall be after the padding, not into it.kib2011-09-111-1/+2
| | | | | | Reported by: alc Approved by: re (bz) MFC after: 2 weeks
* Fix a zyd(4) comment typo that was copy+pasted into most kernel config files.brueffer2011-09-1110-10/+10
| | | | | | | PR: 160276 Submitted by: MATSUMIYA Ryo <matsumiya@mma.club.uec.ac.jp> Approved by: re (kib) MFC after: 1 week
* Perform amd64-specific microoptimizations for native syscall entrykib2011-09-113-19/+13
| | | | | | | | | | | | sequence. The effect is ~1% on the microbenchmark. In particular, do not restore registers which are preserved by the C calling sequence. Align the jump target. Avoid unneeded memory accesses by calculating some data in syscall entry trampoline. Reviewed by: jhb Approved by: re (bz) MFC after: 2 weeks
* Inline the syscallenter() and syscallret(). This reduces the time measuredkib2011-09-1111-165/+229
| | | | | | | | by the syscall entry speed microbenchmarks by ~10% on amd64. Submitted by: jhb Approved by: re (bz) MFC after: 2 weeks
* Fix the order of parameters passed to the HT frame duration calculation.adrian2011-09-111-4/+5
| | | | Approved by: re (kib)
* Refactor auto-quirk solution so that we break as few externalhselasky2011-09-106-22/+20
| | | | | | | | | drivers as possible. PR: usb/160299 Approved by: re (kib) Suggested by: rwatson MFC after: 0 days
* Add ftp4.se.freebsd.org to the IPv4 and IPv6 mirror lists.brueffer2011-09-102-0/+3
| | | | | | PR: 157210, 157211 Submitted by: Niclas Zeising <zeising@lysator.liu.se> Approved by: re (kib)
* Improve implementation of the Nagle algorithm for SCTP:tuexen2011-09-091-6/+12
| | | | | | | Don't delay the final fragment of a fragmented user message. Approved by: re MFC after: 4 weeks
* Sync pf.os with OpenBSD:delphij2011-09-081-4/+7
| | | | | | | | | - Update OpenBSD fingerprints through OpenBSD 4.9 - Fix typos. Obtained from: OpenBSD MFC after: 2 weeks Approved by: re (kib)
* Improve the informations reported in case of busy buffers during the shutdown:attilio2011-09-085-11/+27
| | | | | | | | | | | | | | | | | | | - Axe out the SHOW_BUSYBUFS option and uses a tunable for selectively enable/disable it, which is defaulted for not printing anything (0 value) but can be changed for printing (1 value) and be verbose (2 value) - Improves the informations outputed: right now, there is no track of the actual struct buf object or vnode which are referenced by the shutdown process, but it is printed the related struct bufobj object which is not really helpful - Add more verbosity about the state of the struct buf lock and the vnode informations, with the latter to be activated separately by the sysctl Sponsored by: Sandvine Incorporated Reviewed by: emaste, kib Approved by: re (ksmith) MFC after: 10 days
* Fix SSL memory handlig for (EC)DH cipher suites, in particular fordelphij2011-09-082-7/+21
| | | | | | | | | multi-threaded use of ECDH. Security: CVE-2011-3210 Reviewed by: stas Obtained from: OpenSSL CVS Approved by: re (kib)
* Don't use the whole free space when resizing partition to a larger sizeae2011-09-081-6/+6
| | | | | | | | | | | on a disk with non zero stripesize (e.g. disks with 4k sector size)[1]. Also do not use automatic alignment when size is exactly specified, but an alignment is not. Use automatic alignment only for case when user omits both "-s" and "-a" options. Reported by: Mikael Fridh <frimik at gmail> [1] Approved by: re (kib) MFC after: 1 week
* Update the TSF and next-TBTT methods to work for the AR5416 and later NICs.adrian2011-09-0819-55/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is another commit in a series of TDMA support fixes for the 11n NICs. * Move ath_hal_getnexttbtt() into the HAL; write methods for it. This returns a timer value in TSF, rather than TU. * Move ath_hal_getcca() and ath_hal_setcca() into the HAL too, where they likely now belong. * Create a new HAL capability: HAL_CAP_LONG_RXDESC_TSF. The pre-11n NICs write 15 bit TSF snapshots into the RX descriptor; the AR5416 and later write 32 bit TSF snapshots into the RX descriptor. * Use the new capability to choose between 15 and 31 bit TSF adjustment functions in ath_extend_tsf(). * Write ar5416GetTsf64() and ar5416SetTsf64() methods. ar5416GetTsf64() tries to compensate for TSF changes at the 32 bit boundary. According to yin, this fixes the TDMA beaconing on 11n chipsets and TDMA stations can now associate/talk, but there are still issues with traffic stability which need to be investigated. The ath_hal_extendtsf() function is also used in RX packet timestamping; this may improve adhoc mode on the 11n chipsets. It also will affect the timestamps seen in radiotap frames. Submitted by: Kang Yin Su <cantona@cantona.net> Approved by: re (kib)
* vge(4) hardwares poll media status and generates an interruptyongari2011-09-072-7/+13
| | | | | | | | | | | | | | | | | | | whenever the link state is changed. Using software based polling for media status tracking is known to cause MII access failure under certain conditions once link is established so vge(4) used to rely on link status change interrupt. However DEVICE_POLLING completely disables generation of all kind of interrupts on vge(4) such that this resulted in not detecting link state change event. This means vge(4) does not correctly detect established/lost link with DEVICE_POLLING. Losing the interrupt made vge(4) not to send any packets to peer since vge(4) does not try to send any packets when there is no established link. Work around the issue by generating link state change interrupt with DEVICE_POLLING. PR: kern/160442 Approved by: re (kib)
* Fix whitespace.trasz2011-09-071-1/+1
| | | | | Submitted by: amdmi3 Approved by: re (rwatson)
* Add a definition for ASYNC_CAUSE_CLR. It's not used yet, but theadrian2011-09-071-0/+1
| | | | | | | | reference driver does clear the async interrupts after each service. I'll tinker with this in a future commit. Obtained from: Atheros Approved by: re (kib)
* Correct a typo.bz2011-09-071-1/+1
| | | | | | Submitted by: gcooper Reviewed by: nwhitehorn Approved by: re (kib)
* Fix two problems:bz2011-09-072-4/+8
| | | | | | | | | | | | 1) if no default gateway is given the route command will fail and the script will abort with an error leading to an endless loop unless configuration is cancelled or changed. [1] 2) In the IPv6 case add -inet6 to not alter the legacy IP default route. Reported by: Oleg Ginzburg (olevole olevole.ru) [1] Tested by: Oleg Ginzburg (olevole olevole.ru) [1] Approved by: re (kib)
* Shorten a variable access some using a cached value rather thanbz2011-09-071-2/+1
| | | | | | | | casting the input argument again, making the code more readable. Reviewed by: jhb MFC after: 2 weeks Approved by: re (kib)
* Work around a kernel panic triggered by forkbomb with an rctl ruletrasz2011-09-061-0/+11
| | | | | | | | such as j:name:maxproc:sigkill=100. Proper fix - deferring psignal to a taskqueue - is somewhat complicated and thus will happen after 9.0. Approved by: re (kib)
* Fix 5ghz calibration logic when using AR9280 w/ fast clock.adrian2011-09-061-8/+9
| | | | | | | | | | | | | | | | | | When the fast clock (44mhz) is enabled for 5ghz HT20, the dual ADCs aren't enabled. Trying to do the ADC calibrations here would result in calibration never completing; this resulted in IQ calibration never running and thus performance issues in 11a/11n HT20 mode. Leave it enabled for non-fastclock (40mhz) 11a mode and HT40 modes. This has been fixed in discussion with Felix Fietkau (nbd) and discussions with the Atheros baseband team. Linux ath9k now has a similar fix. Approved by: re (kib)
* Fix the addac serial load register write for AR5416.adrian2011-09-061-1/+1
| | | | | Obtained from: Linux, Atheros Approved by: re (kib)
OpenPOWER on IntegriCloud