summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+0
| | | | | | | error: variable 'bp' set but not use Approved by: dim MFC After: 3 days
* Consumers of bpfdetach() expect it to remove all bpf_if structs from thelstewart2012-01-101-22/+31
| | | | | | | | | | | | | | | | | | | | | | | bpf_iflist list which reference the specified ifnet. The existing implementation only removes the first matching bpf_if found in the list, effectively leaking list entries if an ifnet has been bpfattach()ed multiple times with different DLTs. Fix the leak by performing the detach logic in a loop, stopping when all bpf_if structs referencing the specified ifnet have been detached and removed from the bpf_iflist list. Whilst here, also: - Remove the unnecessary "bp->bif_ifp == NULL" check, as a bpf_if should never exist in the list with a NULL ifnet pointer. - Except when INVARIANTS is in the kernel config, silently ignore the case where no bpf_if referencing the specified ifnet is found, as it is harmless and does not require user attention. Reviewed by: csjp MFC after: 1 week
* Enable hardware RNG for VIA Nano processors.jkim2012-01-093-3/+4
| | | | PR: kern/163974
* Add support for >2TB disks in GEOM RAID for Intel metadata format.jimharris2012-01-092-50/+123
| | | | | | Reviewed by: mav Approved by: scottl MFC after: 1 week
* Get rid of a spurious warning on the console when booting the kernelpluknet2012-01-091-2/+13
| | | | | | | | | | | | | | | | | | | | from the interactive loader(8) prompt and beastie_disable="YES" is set in loader.conf(5). In this case menu.rc is not evaluated and consequently menu-unset does not have a body yet. This results in the ficl warning "menu-unset not found" when try-menu-unset invokes menu-unset. Check for beastie_disable="YES" explicitly, so that the try-menu-unset word will not attempt to invoke menu-unset because the menu will have never been configured. [1] Use the sfind primitive as a last resort as an additional safer approach conjuring a foreign word safely. [2] PR: kern/163938 Submitted by: Devin Teske [1] Reviewed by: Devin Teske [2] Reported and tested by: dim MFC after: 1 week X-MFC with: r228985
* Convert the per-interface address list lock from a mutex to a reader/writerjhb2012-01-092-13/+12
| | | | | | lock. Reviewed by: bz
* Can't pass MSIZE to m_cljget(), an mbuf can't be attached as external storageglebius2012-01-091-2/+1
| | | | to another mbuf.
* enable stop_scheduler_on_panic by defaultavg2012-01-092-1/+8
| | | | | | My plan is to make this behavior unconditional before 10.0 release. X-MFC after: r228424 (if ever)
* Backout of backout: we need SI_SUB_PROTO_DOMAIN for pfsync, sinceglebius2012-01-091-1/+1
| | | | it needs existing inetdomain on startup.
* Revert sub argument of MODULE_DECLARE back to r226532.glebius2012-01-092-2/+2
| | | | Noticed by: bz
* In FreeBSD we determine presence of pfsync(4) at run-time, notglebius2012-01-093-36/+4
| | | | | at compile time, so define NPFSYNC to 1 always. While here, remove unused defines.
* Bunch of fixes to pfsync(4) module load/unload:glebius2012-01-093-173/+158
| | | | | | | | | | | | | | | | | | | | | o Make the pfsync.ko actually usable. Before this change loading it didn't register protosw, so was a nop. However, a module /boot/kernel did confused users. o Rewrite the way we are joining multicast group: - Move multicast initialization/destruction to separate functions. - Don't allocate memory if we aren't going to join a multicast group. - Use modern API for joining/leaving multicast group. - Now the utterly wrong pfsync_ifdetach() isn't needed. o Move module initialization from SYSINIT(9) to moduledata_t method. o Refuse to unload module, unless asked forcibly. o Improve a bit some FreeBSD porting code: - Use separate malloc type. - Simplify swi sheduling. This change is probably wrong from VIMAGE viewpoint, however pfsync wasn't VIMAGE-correct before this change, too. Glanced at by: bz
* o Fix panic on module unload, that happened due to mutex beingglebius2012-01-091-52/+27
| | | | | | | | | | | | | | destroyed prior to pfsync_uninit(). To do this, move all the initialization to the module_t method, instead of SYSINIT(9). o Fix another panic after module unload, due to not clearing the m_addr_chg_pf_p pointer. o Refuse to unload module, unless being unloaded forcibly. o Revert the sub argument to MODULE_DECLARE, to the stable/8 value. This change probably isn't correct from viewpoint of VIMAGE, but the module wasn't VIMAGE-correct before the change, as well. Glanced at by: bz
* Add aligned_alloc(3).ed2012-01-095-9/+56
| | | | | | | | | The C11 folks reinvented the wheel by introducing an aligned version of malloc(3) called aligned_alloc(3), instead of posix_memalign(3). Instead of returning the allocation by reference, it returns the address, just like malloc(3). Reviewed by: jasone@
* Whitespace-only fix. Translators, please feel free to ignore.wblock2012-01-091-3/+4
| | | | | | Approved by: gjb (mentor) MFC after: 3 days X-MFC-with: r227774, r227777, r227800
* Clarity improvements.wblock2012-01-091-8/+8
| | | | | Approved by: gjb (mentor) MFC after: 3 days
* X11BASE has been deprecated for a long time and will die sooneadler2012-01-096-9/+9
| | | | | | Approved by: x11 (eadler) Approved by: brucec MFC after: 1 week
* Avoid LOR between vfs_busy() lock and covered vnode lock on quotaon().kib2012-01-082-4/+34
| | | | | | | | | | | | | The vfs_busy() is after covered vnode lock in the global lock order, but since quotaon() does recursive VFS call to open quota file, we usually end up locking covered vnode after mp is busied in sys_quotactl(). Change the interface of VFS_QUOTACTL(), requiring that mp was unbusied by fs code, and do not try to pick up vfs_busy() reference in ufs quotaon, esp. if vfs_busy cannot succeed due to unmount being performed. Reported and tested by: pho MFC after: 1 week
* There is no longer a need to abstract ${rcvar_manpage} as we are notdougb2012-01-082-3/+2
| | | | attempting to maintain compatibility with NetBSD for some years now.
* Correct an error of omission in the implementation of the truncationalc2012-01-082-66/+113
| | | | | | | | | | | | | | | | | | | | | | | operation on POSIX shared memory objects and tmpfs. Previously, neither of these modules correctly handled the case in which the new size of the object or file was not a multiple of the page size. Specifically, they did not handle partial page truncation of data stored on swap. As a result, stale data might later be returned to an application. Interestingly, a data inconsistency was less likely to occur under tmpfs than POSIX shared memory objects. The reason being that a different mistake by the tmpfs truncation operation helped avoid a data inconsistency. If the data was still resident in memory in a PG_CACHED page, then the tmpfs truncation operation would reactivate that page, zero the truncated portion, and leave the page pinned in memory. More precisely, the benevolent error was that the truncation operation didn't add the reactivated page to any of the paging queues, effectively pinning the page. This page would remain pinned until the file was destroyed or the page was read or written. With this change, the page is now added to the inactive queue. Discussed with: jhb Reviewed by: kib (an earlier version) MFC after: 3 weeks
* Fix a typo. (s/nessesary/necessary/)hrs2012-01-081-1/+1
|
* Make it possible to use alternative source hardware addressglebius2012-01-081-10/+19
| | | | | | | | | | | | | in the ARP datagram generated by arprequest(). If caller doesn't supply the address, then it is either picked from CARP or hardware address of the interface is taken. While here, make several minor fixes: - Hold IF_ADDR_RLOCK(ifp) while traversing address list. - Remove not true comment. - Access internet address and mask via in_ifaddr fields, rather than ifaddr.
* Provide IA_MASKSIN() macro similar to IA_SIN() and IA_DSTSIN().glebius2012-01-081-0/+1
|
* Copy ifa->if_data to ifam->ifam_data. This was forgotten in r228571.glebius2012-01-081-0/+1
| | | | Submitted by: bz
* Move arprequest() declaration to if_ether.h.glebius2012-01-083-5/+2
|
* Don't include <sys/timeb.h>.ed2012-01-081-1/+1
| | | | | Including this header file causes a compilation warning. The code builds perfectly fine without this header file.
* Properly sort functions by name.ed2012-01-081-3/+3
|
* Fix spelling of C11 and sort functions by name.ed2012-01-081-2/+2
|
* Two other places where we can use WEAK_ALIAS.andreast2012-01-082-6/+2
|
* Add an SCTP sysctl "blackhole", similar to the one for TCP.tuexen2012-01-085-7/+39
| | | | | | | | | | If set to 1, no ABORT is sent back in response to an incoming INIT. If set to 2, no ABORT is sent back in response to an out of the blue packet. If set to 0 (the default), ABORTs are sent. Discussed with rrs@. MFC after: 1 month.
* Fix relocations for MIPS64:gonzo2012-01-081-17/+82
| | | | | | | | - Use Elf32_Addr as default, the only field that is 64 bitw wide is R_MIPS_64 - Add R_MIPS_HIGHER and R_MIPS_HGHEST handlers - Handle R_MIPS_HI16 and R_MIPS_LO16 for both .rel and .rela sections
* opt_inet6.h was missing from some files in the new NFS subsystem.rmacklem2012-01-085-2/+5
| | | | | | | | | | The effect of this was, for clients mounted via inet6 addresses, that the DRC cache would never have a hit in the server. It also broke NFSv4 callbacks when an inet6 address was the only one available in the client. This patch fixes the above, plus deletes opt_inet6.h from a couple of files it is not needed for. MFC after: 2 weeks
* Make these two files conditionally build on UFS_ACL, as it doesn'tadrian2012-01-081-2/+3
| | | | | | | | | | | seem to be used elsewhere. Since UFS_ACL is enabled by default for GENERIC kernels, this shouldn't break anything - but please beat me to fix things if it does. This reduces the footprint of the kernel on small embedded systems (think <1MB flash for the compressed kernel image) just enough to actually fit.
* Fix DDB x/i addr[,count] command for count > 1 casegonzo2012-01-081-0/+1
|
* Correct comment for the IPv6 case to say "traffic class" not "TOS"bz2012-01-071-1/+1
| | | | | | as pointed out back in 2009. MFC after: 3 days
* - Fix how hexdump parses escape stringseadler2012-01-071-8/+23
| | | | | | | | | | | | | From the NetBSD bug: The way how hexdump(1) parses escape sequences has some bugs. It shows up when an escape sequence is used as the non-last character of a format string. PR: bin/144722 Submitted by: gcooper Approved by: rpaulo Obtained from: NetBSD MFC after: 1 week
* .. the AR5416 HAL code touches the MIMO parts in HAL_CHANNEL,adrian2012-01-072-0/+6
| | | | | | so this is also needed. Pointed out by: bz
* Commit a temporary workaround for people who are building kernelsadrian2012-01-071-0/+11
| | | | | | | | | | | | where they've disabled all the wireless devices/framework. This is just a build workaround. If you're actively using wireless, you must still define AH_SUPPORT_AR5416 as I'm not sure what else will break! The real solution is to make the module build depend if AH_SUPPORT_AR5416 is defined, as well as make the 11n code in if_ath_tx.c and if_ath_tx_ht.c completely optional (maybe depend upon ATH_SUPPORT_11N.)
* Fix the broken module build I introduced earlier.adrian2012-01-071-0/+4
|
* Convert files to UTF-8 and add some copyright markers where missing.uqs2012-01-0714-16/+17
|
* Spelling fixes for etc/uqs2012-01-078-17/+17
|
* Spelling fixes for bin/uqs2012-01-071-1/+1
|
* Spelling fixes for include/uqs2012-01-077-12/+12
|
* Spelling fixes for libexec/uqs2012-01-0719-30/+30
|
* Spelling fixes for release/uqs2012-01-074-8/+8
|
* Spelling fixes for sbin/uqs2012-01-0724-37/+37
|
* Merge from OpenBSD:glebius2012-01-071-7/+7
| | | | | | | | | | | revision 1.170 date: 2011/10/30 23:04:38; author: mikeb; state: Exp; lines: +6 -7 Allow setting big MTU values on the pfsync interface but not larger than the syncdev MTU. Prompted by the discussion with and tested by Maxim Bourmistrov; ok dlg, mpf Consistently use sc_ifp->if_mtu in the MTU check throughout the module. This backs out r228813.
* Retire the SCTP sysctl "strict_init". We always perform the validationtuexen2012-01-073-16/+3
| | | | | and there is no reason to make is configuarable. Discussed with rrs@.
* Improve the handling of received INITs. Send an ABORT whentuexen2012-01-071-100/+65
| | | | | | | not accepting the connection. Also fix a crash, which could happen when the user closed the socket. MFC after: 1 month.
* Fix indentation.glebius2012-01-071-4/+3
|
OpenPOWER on IntegriCloud