ļ-214334 135 190 106 243 136 193 232 264 184 205 176 241 210 257 207 160 440 114 116 700 493 489 1053 452 141 728 362 473 208 167 632 211 240 209 257 305 144 218 498 218 207 211 109 367 488 459 216 206 215 281 281 211 441 130 449 459 503 791 236 355 275 301 133 292 184 125 491 1020 190 181 114 375 6365 661 1888 1888 186 276 1200 181 188 150 560 122 109 194 165 384 582 292 188 174 608 169 131 1127 209 128 110 335 127 212 427 324 277 182 247 210 319 1370 181 417 167 209 126 450 263 160 197 197 174 174 3894 2096 202 260 123 236 377 323 214 300 299 279 194 114 K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-25T09:16:04.380010Z K 7 svn:log V 94 Get cpuset in pthread_attr_get_np() and free it in pthread_attr_destroy(). MFC after: 7 days END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-25T11:16:50.506109Z K 7 svn:log V 10 Fix typo. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-25T13:01:19.682898Z K 7 svn:log V 146 MFC r212661 and r212756: Implement correct refcounting of cdevsw open/close pair and detach stopping for it. Sponsored by: Sandvine Incorporated END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-25T13:13:16.836897Z K 7 svn:log V 40 Use function tdfind() to find a thread. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-25T13:16:11.133334Z K 7 svn:log V 97 IP_BINDANY is not correctly handled in getsockopt() case. Fix it by specifying the correct bits. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-25T13:34:55.358638Z K 7 svn:log V 135 MFC r213103: Make the RPC specific __rpc_inet_ntop() and __rpc_inet_pton() general in the kernel. Sponsored by: Sandvine Incorporated END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-25T14:02:14.089071Z K 7 svn:log V 167 MFC r212096 by emaste: As long as we are going to panic anyway, there's no need to hide additional information behind DIAGNOSTIC. Sponsored by: Sandvine Incorporated END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-25T14:04:21.710964Z K 7 svn:log V 88 MFC r212148 by emaste: Remove trailing whitespace. Sponsored by: Sandvine Incorporated END K 10 svn:author V 6 ivoras K 8 svn:date V 27 2010-10-25T14:05:25.007114Z K 7 svn:log V 109 Reduce the difference between hirunningspace and lorunningspace, it should help interactivity in edge cases. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-25T15:01:40.741937Z K 7 svn:log V 80 MFC r213012 by emaste: Correct sort order. Sponsored by: Sandvine Incorporated END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-25T15:11:10.892741Z K 7 svn:log V 144 MFC r213080 by emaste: merge metadata of a revision that could have been included into r214339 MFC's time. Sponsored by: Sandvine Incorporated END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-25T15:17:31.275336Z K 7 svn:log V 113 MFC r213181 by emaste: Protect the watchdog daemon against swap OOM killer. Sponsored by: Sandvine Incorporated END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-25T15:28:03.803419Z K 7 svn:log V 164 Use intr_disable() and intr_restore() instead of frobbing the flags register directly to disable interrupts. Reviewed by: bde (earlier version) MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-25T15:31:13.950334Z K 7 svn:log V 114 Use 'saveintr' instead of 'savecrit' or 'eflags' to hold the state returned by intr_disable(). Requested by: bde END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-10-25T15:41:12.185335Z K 7 svn:log V 60 Don't create spurious /dev entries. Submitted by: andreast END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-10-25T15:51:43.689039Z K 7 svn:log V 339 The EHCI_CAPLENGTH and EHCI_HCIVERSION registers are actually sub-registers within the first 4 bytes of the EHCI memory space. For controllers that use big-endian MMIO, reading them with 1- and 2-byte reads would then return the wrong values. Instead, read the combined register with a 4-byte read and mask out the interesting quantities. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-10-25T15:58:31.289345Z K 7 svn:log V 14 IFC @ r214349 END K 10 svn:author V 6 thomas K 8 svn:date V 27 2010-10-25T16:11:37.050727Z K 7 svn:log V 21 Fix typo in comment. END K 10 svn:author V 2 ae K 8 svn:date V 27 2010-10-25T16:23:35.117363Z K 7 svn:log V 608 Reimplemented "gpart destroy -F". Now it does all work in kernel. This was needed for recover implementation. Implement the recover command for GPT. Now GPT will marked as corrupt when any of three types of corruption will be detected: 1. Damaged primary GPT header or table 2. Damaged secondary GPT header or table 3. Secondary header is not located in the last LBA Marked GPT becomes read-only. Any changes with corrupt table are prohibited. Only "destroy" and "recover" commands are allowed. Discussed with: geom@ (mostly silence) Tested by: Ilya A. Arhipov Approved by: mav (mentor) MFC after: 2 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2010-10-25T17:05:14.477464Z K 7 svn:log V 395 MFC: r213712 Try and make the nfsrv_localunlock() function in the experimental NFSv4 server more readable. Mostly changes to comments, but a case of >= is changed to >, since == can never happen. Also, I've added a couple of KASSERT()s and a slight optimization, since once the "else if" case happens, subsequent locks in the list can't have any effect. None of these changes fixes a known bug. END K 10 svn:author V 3 dim K 8 svn:date V 27 2010-10-25T19:33:45.069970Z K 7 svn:log V 396 Apply commit d3a5e914c6ff07c426b026b0cda8d044fd1cdabe from upstream (still under GPLv2 at that time): Author: Nick Clifton Date: Thu Aug 24 14:59:24 2006 +0000 * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum): Adjust the current address of DEFAULT_MEMORY_REGION even when dot hasn't changed. This is a prerequisite for the fix coming just after this. END K 10 svn:author V 3 dim K 8 svn:date V 27 2010-10-25T19:43:22.083870Z K 7 svn:log V 960 Apply commit f6c8fecc6fe3d5532691867a7f27820bb1c426a9 from upstream (still under GPLv2 at that time): Author: H.J. Lu Date: Wed Sep 27 04:18:16 2006 +0000 PR ld/3223 PR ld/3267 * bfd/elf.c (assign_file_positions_for_non_load_sections): Don't warn zero size allocated sections. * ld/ldlang.h (lang_output_section_statement_type): Add section_relative_symbol. * ld/ldlang.c (strip_excluded_output_sections): Don't strip a section with a symbol relative to it. (lang_size_sections_1): Mark if an output section has a symbol symbol relative to it. This prevents warnings like the following during stripping of debug info from kernel modules on i386: ===> zlib (all) ... objcopy --only-keep-debug zlib.ko.debug zlib.ko.symbols objcopy --strip-debug --add-gnu-debuglink=zlib.ko.symbols zlib.ko.debug zlib.ko BFD: zlib.ko: warning: allocated section `.plt' not in segment BFD: zlib.ko: warning: allocated section `.got' not in segment END K 10 svn:author V 5 dougb K 8 svn:date V 27 2010-10-25T19:56:02.600747Z K 7 svn:log V 357 The BEFOREPORTMK trick no longer works to list MASTER_SITES for all ports so switch to the slightly slower but more reliable pm_make without it. This will solve the problem of portmaster not fetching all distfiles in the background. In the case statement to select the appropriate release for package fetching glob 9.0-CURRENT to handle snapshots as well. END K 10 svn:author V 3 dim K 8 svn:date V 27 2010-10-25T19:58:28.694581Z K 7 svn:log V 49 Sync: merge r214221 through r214352 from ^/head. END K 10 svn:author V 6 marius K 8 svn:date V 27 2010-10-25T20:52:33.354972Z K 7 svn:log V 632 - Given that in one-shot mode tick_et_start() also is called frequently introduce function pointers once set up to the respective implementation for reading the (S)TICK and writing the (S)STICK_COMPARE registers as a compromise between duplicating code and selecting between different implementations during execution over and over again, similar to what is done elsewhere in the MD in order to support different CPU models that won't ever change at runtime. - In the remaining tick interrupt handler further push down disabling of interrupts to the periodic case as it isn't necessary here in one-shot mode at all. END K 10 svn:author V 6 ivoras K 8 svn:date V 27 2010-10-25T21:46:23.138587Z K 7 svn:log V 266 Bring vfs.ufs.dirhash_maxmem into the age of the fruitbat and make it autotuned. It is only an upper bound (the memory is not always allocated) and the system contains a vm_lowmem handler so nothing will crash and burn if it's tuned too high. Reviewed by: mckusick END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-10-25T21:49:59.664535Z K 7 svn:log V 372 Fix a manifestation of GCC bug 16625 that caused ld >= 2.17 to fail on 64-bit PowerPC when linking multiple C++ files referencing the same method, defined in a common header, when that method had a switch statement with more than 4 cases. This change fixes compilation of LLVM tblgen on 64-bit PPC with binutils 2.17. Lots of help from: dim Upstream after: more testing END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-25T23:58:16.522089Z K 7 svn:log V 111 MFC r213235 by emaste: Increase maximum network timeout from 20s to 120s. Sponsored by: Sandvine Incorporated END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-25T23:59:56.047938Z K 7 svn:log V 71 MFC r213236 by emaste: Style fix. Sponsored by: Sandvine Incorporated END K 10 svn:author V 3 jfv K 8 svn:date V 27 2010-10-26T00:07:58.233880Z K 7 svn:log V 539 Bug fix delta to the em driver: - Chasin down bogus watchdogs has led to an improved design to this handling, the hang decision takes place in the tx cleanup, with only a simple report check in local_timer. Our tests have shown no false watchdogs with this code. - VLAN fixes from jhb, the shadow vfta should be per interface, but as global it was not. Thanks John. - Bug fixes in the support for new PCH2 hardware. - Thanks for all the help and feedback on the driver, changes to lem with be coming shortly as well. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-26T00:21:31.183518Z K 7 svn:log V 114 MFC r213536 by emaste: Make a thread's address available via the kern proc sysctl, just like the process address. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-26T00:46:02.709666Z K 7 svn:log V 143 MFC r206540 by emaste: Sync some minor items with the upstream driver. Should have no functional change. Sponsored by: Sandvine Incorporated END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-26T00:56:23.787096Z K 7 svn:log V 112 MFC r212628 by emaste: Add some enums and constants from Adaptec's driver. Sponsored by: Sandvine Incorporated END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-26T00:58:15.307680Z K 7 svn:log V 160 MFC r212773 by emaste: Use device_printf where possible, and otherwise at least include the driver name in printf strings. Sponsored by: Sandvine Incorporated END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-26T01:20:30.966058Z K 7 svn:log V 208 MFC r213272 by emaste: Previously, the aac driver did not handle enclosure management AIFs, which were raised during hot-swap events. Now such events trigger cam rescans. Sponsored by: Sandvine Incorporated END K 10 svn:author V 6 marcel K 8 svn:date V 27 2010-10-26T02:34:47.655870Z K 7 svn:log V 49 Merge svn+ssh://svn.freebsd.org/base/head@214309 END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-26T08:50:09.105177Z K 7 svn:log V 121 MFC part of r213103: Introduce the new files that were left behind in actual merge. Sponsored by: Sandvine Incorporated END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-26T09:25:29.023774Z K 7 svn:log V 401 MFC r213241, r213257: In current code, statically initialized and destroyed object have same null value, the code can not distinguish between them, to fix the problem, now a destroyed object is assigned to a non-null value, and it will be rejected by some pthread functions. PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP is changed to number 1, so that adaptive mutex can be statically initialized correctly. END K 10 svn:author V 2 ed K 8 svn:date V 27 2010-10-26T10:23:49.707529Z K 7 svn:log V 126 Remove __gcc_personality_v0() for now. This function is already part of libgcc_eh.a. I'd rather use the GNU version for now. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-26T12:46:26.950194Z K 7 svn:log V 110 Merge dump_machdep.c i386/amd64 under the x86 subtree. Sponsored by: Sandvine Incorporated Tested by: gianni END K 10 svn:author V 3 gjb K 8 svn:date V 27 2010-10-26T13:07:01.271489Z K 7 svn:log V 118 Minor grammar fix. Submitted by: arundel (via email) Approved by: jkois (mentor) Patch by: arundel MFC after: 5 days END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-26T14:06:59.715565Z K 7 svn:log V 13 MFC @ 214363 END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-10-26T14:56:46.931002Z K 7 svn:log V 266 MFC r213456: Handle vector assist traps without a kernel panic, by setting denormalized values to zero. A correct solution would involve emulating vector operations on denormalized values, but this has little effect on accuracy and is much less complicated for now. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-10-26T14:59:35.206849Z K 7 svn:log V 387 MFC r212360: On architectures with non-tree-based page tables like PowerPC, every page in a range must be checked when calling pmap_remove(). Calling pmap_remove() from vm_pageout_map_deactivate_pages() with the entire range of the map could result in attempting to demap an extraordinary number of pages (> 10^15), so iterate through each map entry and unmap each of them individually. END K 10 svn:author V 2 mm K 8 svn:date V 27 2010-10-26T15:48:03.258859Z K 7 svn:log V 367 Bugfix merge from OpenSolaris: OpenSolaris onnv-revision: 10209:91f47f0e7728 6830541 zfs_get_data_trips on a verify 6696242 multiple zfs_fillpage() zfs: accessing past end of object panics 6785914 zfs fails to drop dn_struct_rwlock in recovery code path Approved by: delphij (mentor) Obtained from: OpenSolaris (Bug ID 6830541, 6696242, 6785914) MFC after: 2 weeks END K 10 svn:author V 3 bcr K 8 svn:date V 27 2010-10-26T16:04:23.964183Z K 7 svn:log V 123 MFC r214147: Sync with OpenBSD rev. 1.13: strtonum does not require limits.h Obtained from: OpenBSD Discussed with: ru@ END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-26T16:16:15.815954Z K 7 svn:log V 109 Remove usage of PRI* macro for style compliancy. Requested by: bde, jhb Sponsored by: Sandvine Incorporated END K 10 svn:author V 6 brucec K 8 svn:date V 27 2010-10-26T16:49:18.297444Z K 7 svn:log V 119 Add information about the values and default setting of the kern.cam.ada.spindown_shutdown sysctl. MFC after: 3 weeks END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2010-10-26T17:30:34.563753Z K 7 svn:log V 183 MFC r213729: Fix monitor mode which is implemented by doing a firmware scan. This is a port from stable/6, seems like the code got lost during the background scan changes in r170530. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2010-10-26T17:31:46.383773Z K 7 svn:log V 183 MFC r213729: Fix monitor mode which is implemented by doing a firmware scan. This is a port from stable/6, seems like the code got lost during the background scan changes in r170530. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2010-10-26T17:38:45.863362Z K 7 svn:log V 113 MFC r214070: There is no reason to call rt_ifmsg(), remove it. Submitted by: Paul B Mahol END K 10 svn:author V 3 dim K 8 svn:date V 27 2010-10-26T17:49:17.067306Z K 7 svn:log V 348 Make sure elf_fbsd_post_process_headers() is actually called for ia64. This is done by prepending the file to elfxx-ia64, not appending it. Additionally, reduce diffs between Makefile.amd64 and Makefile.ia64; instead of echo'ing defines in Makefiles, just add the needed define to elf-fbsd-brand.c directly, as it is only used for amd64 and ia64. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-26T18:01:28.054923Z K 7 svn:log V 34 Style fix. Reported by: bde, dim END K 10 svn:author V 3 bcr K 8 svn:date V 27 2010-10-26T18:32:51.339309Z K 7 svn:log V 356 Add some missing documentation to the man page: - FILES section ref: ~/nsmb.conf - use of password in examples section - use of simple encryption for password in examples section PR: docs/132311 Submitted by: David Horn (dhorn2000 at gmail dot com) Patch corrected by: trhodes Approved by: trhodes MFC after: 5 days END K 10 svn:author V 3 rrs K 8 svn:date V 27 2010-10-26T18:56:55.855021Z K 7 svn:log V 366 MFC of 209644 Log is: Fix a bug that will cause a panic. Basically a read-lock is being called to check the vtag-timewait cache. Then in two cases (where a vtag is bad i.e. in the time-wait state) the write-unlokc is called NOT the read-unlock. Under conditions where lots of associations are coming and going this willc ause the system to panic with invariants on. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2010-10-26T18:59:36.370149Z K 7 svn:log V 410 MFC of 209663 This fixes a crash in SCTP. It was possible to have a large number of packets queued to a crashing process. In a specific case you may get 2 ABORT's back (from say two packets in flight). If the aborts happened to be processed at the same time its possible to have one free the association while the other is trying to report all the outbound packets. When this occured it could lead to a crash. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-10-26T18:59:50.498689Z K 7 svn:log V 697 Add two new loader tunables 'hw.acpi.install_interface' and 'hw.acpi.remove_interface'. hw.acpi.install_interface lets you install new interfaces. Conversely, hw.acpi.remove_interface lets you remove OS interfaces from the pre-defined list in ACPICA. For example, hw.acpi.install_interface="FreeBSD" lets _OSI("FreeBSD") method to return 0xffffffff (or success) and hw.acpi.remove_interface="Windows 2009" lets _OSI("Windows 2009") method to return zero (or failure). Both are comma-separated lists and leading white spaces are ignored. For example, the following examples are valid: hw.acpi.install_interface="Linux, FreeBSD" hw.acpi.remove_interface="Windows 2006, Windows 2006.1" END K 10 svn:author V 3 rrs K 8 svn:date V 27 2010-10-26T19:01:56.305651Z K 7 svn:log V 143 MFC: 209760 If a user calls sctp_sendx() with a NULL sinfo we will crash. Instead we should provide our own temp structure to use internally. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2010-10-26T19:04:05.672716Z K 7 svn:log V 262 MFC:210493 When counting the number of chunks in the retransmission queue to validate the retran count, we need to include the chunks in the control send queue too. Otherwise the count will not match and you will get the invarient warning if invarients are on. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2010-10-26T19:06:31.549168Z K 7 svn:log V 182 MFC:210494 Make sure that we report chunks if a socket still exists that were not sent. In either case carefully remove the data if it does not get taken by the reporting routines. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2010-10-26T19:08:26.119030Z K 7 svn:log V 208 MFC:210599 PR SCTP Bugs. Basically a full sized frame of PR SCTP FWD-TSN's would not be sent and thus cause a stalled connection. Also the rwnd Calculation was also off on the receiver side for PR-SCTP. END K 10 svn:author V 6 brucec K 8 svn:date V 27 2010-10-26T19:10:59.723669Z K 7 svn:log V 38 Fix formatting. Reported by: yongari END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-26T19:11:09.644560Z K 7 svn:log V 199 - Save errno values before calling warn(3) so that errors are correctly reported. - Use powerof2() from rather than a copy and paste version. Submitted by: gcooper MFC after: 1 week END K 10 svn:author V 3 rrs K 8 svn:date V 27 2010-10-26T19:12:37.001711Z K 7 svn:log V 92 MFC:210600 Fix the comment block that has the nice table to really have the nice table :-) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-26T19:56:53.808277Z K 7 svn:log V 30 MFC r214056: Revert r206418 END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2010-10-26T20:23:29.058621Z K 7 svn:log V 393 MFC r214069: Fix an undefined behaviour if the desired ratectl algo is not available. This can happen if the algos are built as modules but are not loaded. If the selected ratectl algo is not available, try to load it (The load module functions does nothing currently). Add a dummy ratectl algo which always selects the first available rate. Use that one if the desired algo is not available. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-26T21:19:36.800165Z K 7 svn:log V 925 Vendor import of tzcode2010n: * Makefile Change LOCALTIME default from "Factory" to "GMT"; do not compile "factory" file (but keep it in the distribution). * Theory Remove reference to "Factory" zone. * localtime.c Initialize ttinfo structures filled by tzparse (thanks to Ravindra for reporting a valgrind warning). * zic.c Fix generation of POSIX strings for zones with rules using "weekday<=n" forms of dates (thanks to Lei Liu for finding the problem). Also, limit output for non-POSIX-specificable zones defined to follow the same rules every year. (Note that no zones of either of the above types appear in the distribution; these changes cater to add-on zones). Obtained from: ftp://elsie.nci.nih.gov/pub/ END K 10 svn:author V 4 jkim K 8 svn:date V 27 2010-10-26T21:22:55.826742Z K 7 svn:log V 97 Document newly added loader tunables "hw.acpi.install_interface" and "hw.acpi.remove_interface". END K 10 svn:author V 3 pjd K 8 svn:date V 27 2010-10-26T21:23:55.963451Z K 7 svn:log V 89 - Make it possible for default value to be const. - Default number is now also a string. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-26T21:24:14.938480Z K 7 svn:log V 20 Tag of tzcode2010n. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2010-10-26T22:46:15.964002Z K 7 svn:log V 282 Use fprintf(stderr) instead of gctl_error() to print a warning about too big sector size. When gctl error is set gctl_has_param() always returns 'false', which prevents geli(8) from finding some arguments and also masks an error, which is generates in such case. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2010-10-26T23:06:53.870865Z K 7 svn:log V 6271 MFC r202976,r211927,r212845,r212846,r212934,r213055,r213056,r213057,r213058, r213059,r213060,r213062,r213063,r213067,r213070,r213071,r213072,r213073, r213164,r213165,r213172,r214116,r214118,r214133,r214163,r214225,r214226, r214227,r214228,r214229,r214404: r202976 (by trasz): Remove pointless assignment. Found with: clang r211927: Correct offset conversion to little endian. It was implemented in version 2, but because of a bug it was a no-op, so we were still using offsets in native byte order for the host. Do it properly this time, bump version to 4 and set the G_ELI_FLAG_NATIVE_BYTE_ORDER flag when version is under 4. Reported by: ivoras r212845 (by brian): Support attaching version 4 metadata Reviewed by: pjd r212846: Fix indent. r212934 (by brian): Add a geli resize subcommand to resize encrypted filesystems prior to growing the filesystem. Refuse to attach providers where the metadata provider size is wrong. This makes post-boot attaches behave consistently with pre-boot attaches. Also refuse to restore metadata to a provider of the wrong size without the new -f switch. The new -f switch forces the metadata restoration despite the provider size, and updates the provider size in the restored metadata to the correct value. Helped by: pjd Reviewed by: pjd r213055: When trashing metadata, flush after each write. r213056: Simplify code a bit by using g_*() API from libgeom. r213057: - Make use of g_*() API. - Flush cache after writing metadata. r213058: Because we first write metadata into new place and then trash old place we don't want situation where old size is equal to new size, as we will trash newly written metadata. r213059: - Use g_*() API when doing backups. - fsync() created files. r213060: - When trashing metadata, repeat overwrite kern.geom.eli.overwrites times. - Flush write cache after each write. r213062: Define default overwrite count, so that userland can use it. r213063: Make the code similar to the code in g_eli_integrity.c. r213067: Implement switching of data encryption key every 2^20 blocks. This ensures the same encryption key won't be used for more than 2^20 blocks (sectors). This will be the default now. r213070: Add support for AES-XTS. This will be the default now. r213071: Document AES-XTS. r213072: Update copyright years. r213073: Update copyright years. r213164: Ignore errors from BIO_FLUSH. It might confuse users that provider wasn't really killed. What we really care about are write errors only. r213165: Change g_eli_debug to int, so one can turn off any GELI output by setting kern.geom.eli.debug sysctl to -1. r213172: - Add support for loading passphrase from a file (-J and -j options). This is especially useful for things like installers, where regular geli prompt can't be used. - Add support for specifing multiple -K or -k options, so there is no need to cat all keyfiles and read them from standard input. Requested by: Kris Moore , thompsa r214116: - Add missing comments. - Make a comment consistent with others. r214118: Bring in geli suspend/resume functionality (finally). Before this change if you wanted to suspend your laptop and be sure that your encryption keys are safe, you had to stop all processes that use file system stored on encrypted device, unmount the file system and detach geli provider. This isn't very handy. If you are a lucky user of a laptop where suspend/resume actually works with FreeBSD (I'm not!) you most likely want to suspend your laptop, because you don't want to start everything over again when you turn your laptop back on. And this is where geli suspend/resume steps in. When you execute: # geli suspend -a geli will wait for all in-flight I/O requests, suspend new I/O requests, remove all geli sensitive data from the kernel memory (like encryption keys) and will wait for either 'geli resume' or 'geli detach'. Now with no keys in memory you can suspend your laptop without stopping any processes or unmounting any file systems. When you resume your laptop you have to resume geli devices using 'geli resume' command. You need to provide your passphrase, etc. again so the keys can be restored and suspended I/O requests released. Of course you need to remember that 'geli suspend' won't clear file system cache and other places where data from your geli-encrypted file system might be present. But to get rid of those stopping processes and unmounting file system won't help either - you have to turn your laptop off. Be warned. Also note, that suspending geli device which contains file system with geli utility (or anything used by 'geli resume') is not very good idea, as you won't be able to resume it - when you execute geli(8), the kernel will try to read it and this read I/O request will be suspended. r214133: Fix a bug introduced in r213067 where we use authentication key before initializing it. r214163: Free opencrypto sessions on suspend, as they also might keep encryption keys. r214225: Move sc_akeyctx and sc_ivctx initialization to the g_eli_mkey_propagate() function which eliminates code duplication and will ensure proper order of operation. r214226: Encryption keys array might be NULL if device is suspended. Check for this, so we don't panic when we detach suspended device. r214227: Add State tag, so 'geli status' will report active/suspended status, eg: # geli status Name Status Components da0.eli SUSPENDED da0 da1.eli ACTIVE da1 r214228: Close a race between checking if device is already suspended and suspending it. r214229: - Improve error messages, so instead of 'Not fully done', the user will get information that device is already suspended or that device is using one-time key and suspend is not supported. - 'geli suspend -a' silently skips devices that use one-time key, this is fine, but because we log which device were suspended on the console, log also which devices were skipped. r214404: Use fprintf(stderr) instead of gctl_error() to print a warning about too big sector size. When gctl error is set gctl_has_param() always returns 'false', which prevents geli(8) from finding some arguments and also masks an error, which is generates in such case. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2010-10-26T23:18:37.173971Z K 7 svn:log V 563 Add a flag to the experimental NFSv4 client to indicate when delegations are being returned for reasons other than a Recall. Also, re-organize nfscl_recalldeleg() slightly, so that it leaves clearing NMODIFIED to the ncl_flush() call and invalidates the attribute cache after flushing. It is hoped that these changes might fix the problem others have seen when using the NFSv4 client with delegations enabled, since I can't reliably reproduce the problem. These changes only affect the client when doing NFSv4 mounts with delegations enabled. MFC after: 10 days END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-27T02:04:24.557246Z K 7 svn:log V 1790 MFC r213796: Rewrite interrupt handler to give fairness for both RX and TX. Previously rl(4) continuously checked whether there are RX events or TX completions in forever loop. This caused TX starvation under high RX load as well as consuming too much CPU cycles in the interrupt handler. If interrupt was shared with other devices which may be always true due to USB devices in these days, rl(4) also tried to process the interrupt. This means polling(4) was the only way to mitigate the these issues. To address these issues, rl(4) now disables interrupts when it knows the interrupt is ours and limit the number of iteration of the loop to 16. The interrupt would be enabled again before exiting interrupt handler if the driver is still running. Because RX buffer is 64KB in size, the number of iterations in the loop has nothing to do with number of RX packets being processed. This change ensures sending TX frames under high RX load. RX handler drops a driver lock to pass received frames to upper stack such that there is a window that user can down the interface. So rl(4) now checks whether driver is still running before serving RX or TX completion in the loop. While I'm here, exit interrupt handler when driver initialized controller. With this change, now rl(4) can send frames under high RX load even though the TX performance is still not good(rl(4) controllers can't queue more than 4 frames at a time so low TX performance was one of design issue of rl(4) controllers). It's much better than previous TX starvation and you should not notice RX performance drop with this change. Controller still shows poor performance under high network load but for many cases it's now usable without resorting to polling(4). END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-27T02:07:25.932507Z K 7 svn:log V 1790 MFC r213796: Rewrite interrupt handler to give fairness for both RX and TX. Previously rl(4) continuously checked whether there are RX events or TX completions in forever loop. This caused TX starvation under high RX load as well as consuming too much CPU cycles in the interrupt handler. If interrupt was shared with other devices which may be always true due to USB devices in these days, rl(4) also tried to process the interrupt. This means polling(4) was the only way to mitigate the these issues. To address these issues, rl(4) now disables interrupts when it knows the interrupt is ours and limit the number of iteration of the loop to 16. The interrupt would be enabled again before exiting interrupt handler if the driver is still running. Because RX buffer is 64KB in size, the number of iterations in the loop has nothing to do with number of RX packets being processed. This change ensures sending TX frames under high RX load. RX handler drops a driver lock to pass received frames to upper stack such that there is a window that user can down the interface. So rl(4) now checks whether driver is still running before serving RX or TX completion in the loop. While I'm here, exit interrupt handler when driver initialized controller. With this change, now rl(4) can send frames under high RX load even though the TX performance is still not good(rl(4) controllers can't queue more than 4 frames at a time so low TX performance was one of design issue of rl(4) controllers). It's much better than previous TX starvation and you should not notice RX performance drop with this change. Controller still shows poor performance under high network load but for many cases it's now usable without resorting to polling(4). END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-27T02:32:54.209441Z K 7 svn:log V 90 If input parameter cpusetsize is zero, give userland size of cpuset mask kernel is using. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-27T04:19:07.823616Z K 7 svn:log V 179 Remove locking and unlock in pthread_mutex_destroy, because it can not fix race condition in application code, as a result, the problem described in PR threads/151767 is avoided. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-27T07:14:46.557396Z K 7 svn:log V 1104 Sync code with tzcode2010m asctime.c: * Set errno to EINVAL and return "??? ??? ?? ??:??:?? ????\n" if asctime_r is called with a NULL struct tm pointer. (Note that asctime_r is called by ctime_r and asctime; asctime is called by ctime.) localtime.c: * Set errno to EINVAL and return WRONG if time1 is called with a NULL struct tm pointer; avoid dereference if a NULL struct tm pointer is passed to timelocal, timegm, or timeoff. (Note that time1 is called by mktime, timegm, and timeoff; mktime is called by timelocal.) * more core-avoidance work * Change to set timezone and altzone based on time types with greatest transition times (for the benefit of Asia/Seoul). zic.8: * Warning about case-sensitivity of names, but not of abbrevations zic.c: * Conditionally output extra types with most-recently-use offsets last (for use by systems with pre-2011 versions of localtime.c, helping to ensure that globals "altzone and "timezone" get set correctly). The code has been running for nearly four weeks on my laptop running FreeBSD 8.1 without a problem. MFC after: 1 month END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-27T09:29:03.879301Z K 7 svn:log V 85 - Revert r214409. - Use long word to figure out sizeof kernel cpuset, hope it works. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-27T09:59:43.066319Z K 7 svn:log V 92 Check small set and reject it, this is how kernel did. Always use the size kernel is using. END K 10 svn:author V 4 bapt K 8 svn:date V 27 2010-10-27T12:51:36.174403Z K 7 svn:log V 57 Add attachement to my mentors Reporter by: wxs (on irc) END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2010-10-27T13:10:08.113942Z K 7 svn:log V 462 MFC: r213756 Fix the krpc so that it can handle NFSv3,UDP mounts with a read/write data size greater than 8192. Since soreserve(so, 256*1024, 256*1024) would always fail for the default value of sb_max, modify clnt_dg.c so that it uses the calculated values and checks for an error return from soreserve(). Also, add a check for error return from soreserve() to clnt_vc.c and change __rpc_get_t_size() to use sb_max_adj instead of the bogus maxsize == 256*1024. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-27T13:16:48.232797Z K 7 svn:log V 26 Remove PRI* macros usage. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-27T13:38:40.379260Z K 7 svn:log V 13 MFC @ 214416 END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-10-27T14:08:37.584099Z K 7 svn:log V 102 Add missing "readahead" to the nfs_opts list. PR: 151321 Tested by: Simon Walton MFC after: 2 weeks END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-10-27T14:11:11.305875Z K 7 svn:log V 74 Correct a typo. PR: 151321 Submitted by: Simon Walton MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-27T15:44:49.385114Z K 7 svn:log V 291 MFC r213664: The r184588 changed the layout of struct export_args, causing an ABI breakage for old mount(2) syscall, since most struct _args embed export_args. The mount(2) is supposed to provide ABI compatibility for pre-nmount mount(8) binaries, so restore ABI to pre-r184588. END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-27T15:57:17.189038Z K 7 svn:log V 489 MFC r213716: Add macro DECLARE_MODULE_TIED to denote a module as requiring the kernel of exactly the same __FreeBSD_version as the headers module was compiled against. Mark our in-tree ABI emulators with DECLARE_MODULE_TIED. The modules use kernel interfaces that the Release Engineering Team feel are not stable enough to guarantee they will not change during the life cycle of a STABLE branch. In particular, the layout of struct sysentvec is declared to be not part of the STABLE KBI. END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-10-27T16:01:57.777742Z K 7 svn:log V 199 MFC r213983: Document vunref(9), add some important notes for vrele(9) and vput(9). Merge all three manpages to one, removing separate file for vput(9). MFC r214061 (by uqs): mdoc: fix markup typo. END K 10 svn:author V 5 jamie K 8 svn:date V 27 2010-10-27T16:22:54.659537Z K 7 svn:log V 94 Keep all internal/known parameter names in one place, and use enum constants everywhere else. END K 10 svn:author V 5 jamie K 8 svn:date V 27 2010-10-27T16:35:23.158245Z K 7 svn:log V 80 Don't assume either jid or name is set - they may not be from the command line. END K 10 svn:author V 3 alc K 8 svn:date V 27 2010-10-27T16:46:37.656114Z K 7 svn:log V 515 [1] According to the x86 architectural specifications, no virtual-to- physical page mapping should span two or more MTRRs of different types. Add a pmap function, pmap_demote_DMAP(), by which the MTRR module can ensure that the direct map region doesn't have such a mapping. [2] Fix a couple of nearby style errors in amd64_mrset(). [3] Re-enable the use of 1GB page mappings for implementing the direct map. (See also r197580 and r213897.) Tested by: kib@ on a Westmere-family processor [3] MFC after: 3 weeks END K 10 svn:author V 7 delphij K 8 svn:date V 27 2010-10-27T17:13:38.343939Z K 7 svn:log V 73 Add a short note about kernel modules in FIXIT mode. MFC after: 1 month END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-27T17:16:40.466716Z K 7 svn:log V 35 Add BCM5717C 10/100/1000TX PHY id. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-27T17:20:19.079537Z K 7 svn:log V 1029 Add initial BCM5718 family support. The BCM5718 family includes the dual port BCM5717 and BCM5718 devices which are intended for mainstream workstation and entry-level server designs and represents the twelfth generation of NetXtreme Ethernet controllers. This family is the successor to the BCM5714/BCM5715 family and supports IPv4/IPv6 checksum offloading, TSO, VLAN hardware tagging, jumbo frames, MSI/MSIX, IOV, RSS and TSS. This change set supports all hardware features except IOV and RSS/TSS. Unlike its predecessors, only extended RX buffer descriptors can be posted to the jumbo producer ring. Single RX buffer descriptors for jumbo frame are not supported. RSS requires a more substantial set of changes and will apply to a larger set of NetXtreme devices so RSS/TSS multi-queue support will be implemented in a future releases. Special thanks to Broadcom who kindly sent a sample board to me and to davidch who gave provided the initial support code. Submitted by: davidch (initial version) HW donated by: Broadcom END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2010-10-27T17:38:05.759254Z K 7 svn:log V 111 Add support for setting per-interface PnP information. Submitted by: Nick Hibma Approved by: thompsa (mentor) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-27T18:46:56.230618Z K 7 svn:log V 33 Use ${PICFLAG} instead of -fpic. END K 10 svn:author V 3 des K 8 svn:date V 27 2010-10-27T18:48:23.706450Z K 7 svn:log V 18 Language cleanup. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-10-27T19:01:09.073105Z K 7 svn:log V 238 Use shorten model name and add RTL8168, RTL8111 to the list of supported device. re(4) had been supported all variants of RTL8168, RTL8111 and RTL810x. I think this change will cover all controllers supported by re(4). MFC after: 1 week END K 10 svn:author V 5 jamie K 8 svn:date V 27 2010-10-27T20:25:55.204675Z K 7 svn:log V 33 Use a little more "ifdef INET6". END K 10 svn:author V 5 jamie K 8 svn:date V 27 2010-10-27T21:01:53.328173Z K 7 svn:log V 117 Find a jail's type as part of jailparam_init rather than waiting until it's absolutely necessary. MFC after: 1 week END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-27T23:18:25.622766Z K 7 svn:log V 333 - Add intr_drain(), a mechanism to wait for any interrupt handlers currently running on an ithread to complete. This is used to synchronize the release of state that may be accessed by interrupt context. - Use intr_drain() in synchronize_irq(). Discussed with: jhb Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-27T23:21:30.625092Z K 7 svn:log V 230 - Add a new flag to vm_map_wire(), VM_MAP_WIRE_WRITE which checks for write access when adding a wired region. This is required when ib's umem requests write access. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-27T23:22:43.536600Z K 7 svn:log V 183 - Treat IFT_INFINIBAND just like IFT_ETHER in most cases, even when default: would DTRT add explicit switch labels for ib. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-27T23:23:17.125680Z K 7 svn:log V 89 - Refine ipv6 address handling. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-27T23:24:37.666294Z K 7 svn:log V 153 - Correct the ipoib gid debug prints. - Fix the length supplied to ipoib_multicast_addr_valid. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-10-27T23:55:15.477006Z K 7 svn:log V 116 - Correct a terrible typo in IT_WAIT. Spotted by: jmallett Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 3 jfv K 8 svn:date V 27 2010-10-28T00:16:54.849776Z K 7 svn:log V 226 In the data setup code for doing offloads the ip and tcp pointers were not reset after some pullups. In practice this led to an NFS mount failure when using UDP reported by Kevin Lo, thanks Kevin. Fix from yongari, thank you! END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-10-28T00:54:18.471771Z K 7 svn:log V 1274 MFC of 214124 Fix printing of files located on ZFS filesystem with an st_dev or st_ino larger than 2**31. From the PR: Printing from a ZFS filesystem using 'lp' fails and returns an email reporting "Your printer job was not printed because it was not linked to the original file". In order to protect against files being switched when files are printed using 'lp' or 'lpr -s', the st_dev and st_ino values for the original file are saved by lpr and verified by lpd before the file is printed. Unfortunately, lpr prints both values using '%d' (although both fields are unsigned) and lpd(8) assumes a string of decimal digits. ZFS (at least) generates st_dev values greater than 2^31-1, resulting in negative values being printed - which lpd cannot parse, leading it to report that the file has been switched. A similar problem would occur with large inode numbers. How-To-Repeat: Find a file with either st_dev or st_ino greater than 2^31-1 (stat(1) will report both numbers) and print it with 'lpq -s'. This should generate an email reporting that the file could not be printed because it was not linked to the original file PR: bin/151567 Submitted by: Peter Jeremy END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-10-28T02:59:25.261888Z K 7 svn:log V 85 Follow the change made in libthr, add ERANGE error code and more EINVAL error cases. END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2010-10-28T04:14:28.929167Z K 7 svn:log V 322 sys/dev/xen/blkback/blkback.c: In xbb_detach() only perform cleanup of our taskqueue and device statistics structures if they have been initialized. This avoids a panic when xbb_detach() is called on a partially initialized device instance, due to an early failure in attach. Sponsored by: Spectra Logic Corporation END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-10-28T06:45:20.861098Z K 7 svn:log V 75 Turns out we need functions.sh in this file for convert_to_megabytes call. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-28T07:58:06.201405Z K 7 svn:log V 112 Merge the mptable support from MD bits to x86 subtree. Sponsored by: Sandvine Incorporated Discussed with: jhb END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-10-28T11:09:12.647750Z K 7 svn:log V 35 Correct a typo. MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-28T13:44:19.447082Z K 7 svn:log V 357 Use 'PCPU_GET(apic_id)' to determine the BSP's APIC ID on a UP machine when routing interrupts instead of cpu_apic_ids[0] since cpu_apic_ids[] is only populated for multiple-CPU machines. This also matches what the code does when SMP is not enabled. PR: bin/151616 Tested by: "Damian S. Kolodziejczyk" damkol | gmail Submitted by: avg MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-10-28T14:17:06.245684Z K 7 svn:log V 170 Set bootverbose directly in mi_startup() rather than via a SYSINIT. This ensures 'bootverbose' is in a valid state for all SYSINITs. Reported by: avg MFC after: 1 week END K 10 svn:author V 2 ae K 8 svn:date V 27 2010-10-28T14:21:18.150039Z K 7 svn:log V 69 Add ability to navigate between dialog's controls with Up/Down keys. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2010-10-28T15:31:18.759620Z K 7 svn:log V 100 MFC r214130. Update PD state firmware definitions: add copyback, system. Approved by: kib (mentor) END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2010-10-28T15:37:58.671564Z K 7 svn:log V 100 MFC r214130. Update PD state firmware definitions: add copyback, system. Approved by: kib (mentor) END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2010-10-28T15:41:28.187067Z K 7 svn:log V 78 MFC r214131. Enable copyback and system PD states. Approved by: kib (mentor) END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2010-10-28T15:43:14.497705Z K 7 svn:log V 78 MFC r214131. Enable copyback and system PD states. Approved by: kib (mentor) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-28T16:22:13.685340Z K 7 svn:log V 3797 Update libpcap to 1.1.1. Changes: Thu. April 1, 2010. guy@alum.mit.edu. Summary for 1.1.1 libpcap release Update CHANGES to reflect more of the changes in 1.1.0. Fix build on RHEL5. Fix shared library build on AIX. Thu. March 11, 2010. ken@netfunctional.ca/guy@alum.mit.edu. Summary for 1.1.0 libpcap release Add SocketCAN capture support Add Myricom SNF API support Update Endace DAG and ERF support Add support for shared libraries on Solaris, HP-UX, and AIX Build, install, and un-install shared libraries by default; don't build/install shared libraries on platforms we don't support Fix building from a directory other than the source directory Fix compiler warnings and builds on some platforms Update config.guess and config.sub Support monitor mode on mac80211 devices on Linux Fix USB memory-mapped capturing on Linux; it requires a new DLT_ value On Linux, scan /sys/class/net for devices if we have it; scan it, or /proc/net/dev if we don't have /sys/class/net, even if we have getifaddrs(), as it'll find interfaces with no addresses Add limited support for reading pcap-ng files Fix BPF driver-loading error handling on AIX Support getting the full-length interface description on FreeBSD In the lexical analyzer, free up any addrinfo structure we got back from getaddrinfo(). Add support for BPF and libdlpi in OpenSolaris (and SXCE) Hyphenate "link-layer" everywhere Add /sys/kernel/debug/usb/usbmon to the list of usbmon locations In pcap_read_linux_mmap(), if there are no frames available, call poll() even if we're in non-blocking mode, so we pick up errors, and check for the errors in question. Note that poll() works on BPF devices is Snow Leopard If an ENXIO or ENETDOWN is received, it may mean the device has gone away. Deal with it. For BPF, raise the default capture buffer size to from 32k to 512k Support ps_ifdrop on Linux Added a bunch of #ifdef directives to make wpcap.dll (WinPcap) compile under cygwin. Changes to Linux mmapped captures. Fix bug where create_ring would fail for particular snaplen and buffer size combinations Update pcap-config so that it handles libpcap requiring additional libraries Add workaround for threadsafeness on Windows Add missing mapping for DLT_ENC <-> LINKTYPE_ENC DLT: Add DLT_CAN_SOCKETCAN DLT: Add Solaris ipnet Don't check for DLT_IPNET if it's not defined Add link-layer types for Fibre Channel FC-2 Add link-layer types for Wireless HART Add link-layer types for AOS Add link-layer types for DECT Autoconf fixes (AIX, HP-UX, OSF/1, Tru64 cleanups) Install headers unconditionally, and include vlan.h/bluetooth.h if enabled Autoconf fixes+cleanup Support enabling/disabling bluetooth (--{en,dis}able-bluetooth) Support disabling SITA support (--without-sita) Return -1 on failure to create packet ring (if supported but creation failed) Fix handling of 'any' device, so that it can be opened, and no longer attempt to open it in Monitor mode Add support for snapshot length for USB Memory-Mapped Interface Fix configure and build on recent Linux kernels Fix memory-mapped Linux capture to support pcap_next() and pcap_next_ex() Fixes for Linux USB capture DLT: Add DLT_LINUX_EVDEV DLT: Add DLT_GSMTAP_UM DLT: Add DLT_GSMTAP_ABIS END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-28T16:23:25.848387Z K 7 svn:log V 1999 Update tcpdump to 4.1.1. Changes: Thu. April 1, 2010. guy@alum.mit.edu. Summary for 4.1.1 tcpdump release Fix build on systems with PF, such as FreeBSD and OpenBSD. Don't blow up if a zero-length link-layer address is passed to linkaddr_string(). Thu. March 11, 2010. ken@netfunctional.ca/guy@alum.mit.edu. Summary for 4.1.0 tcpdump release Fix printing of MAC addresses for VLAN frames with a length field Add some additional bounds checks and use the EXTRACT_ macros more Add a -b flag to print the AS number in BGP packets in ASDOT notation rather than ASPLAIN notation Add ICMPv6 RFC 5006 support Decode the access flags in NFS access requests Handle the new DLT_ for memory-mapped USB captures on Linux Make the default snapshot (-s) the maximum Print name of device (when -L is used) Support for OpenSolaris (and SXCE build 125 and later) Print new TCP flags Add support for RPL DIO Add support for TCP User Timeout (UTO) Add support for non-standard Ethertypes used by 3com PPPoE gear Add support for 802.11n and 802.11s Add support for Transparent Ethernet Bridge ethertype in GRE Add 4 byte AS support for BGP printer Add support for the MDT SAFI 66 BG printer Add basic IPv6 support to print-olsr Add USB printer Add printer for ForCES Handle frames with an FCS Handle 802.11n Control Wrapper, Block Acq Req and Block Ack frames Fix TCP sequence number printing Report 802.2 packets as 802.2 instead of 802.3 Don't include -L/usr/lib in LDFLAGS On x86_64 Linux, look in lib64 directory too Lots of code clean ups Autoconf clean ups Update testcases to make output changes Fix compiling with/out smi (--with{,out}-smi) Fix compiling without IPv6 support (--disable-ipv6) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-10-28T16:31:39.521863Z K 7 svn:log V 105 Merge nexus.c from amd64 and i386 to x86 subtree. Sponsored by: Sandvine Incorporated Tested by: gianni END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2010-10-28T16:46:27.057203Z K 7 svn:log V 164 MFC r210495: Fix a bug where the length of a FORWARD-TSN chunk was set incorrectly in the chunk. This resulted in malformed frames. Remove a duplicate assignment. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2010-10-28T16:49:11.454129Z K 7 svn:log V 28 MFC r210714: Cleanup code. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2010-10-28T16:51:57.140676Z K 7 svn:log V 140 MFC r210866: Fix a bug where endpoints bound to wildcard addresses where using addresses not announced to the peer due to address scoping. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2010-10-28T16:53:54.582751Z K 7 svn:log V 281 MFC r211030: Fix a bug where MSG_TRUNC was not returned in all necessary cases for SOCK_DGRAM socket. MSG_TRUNC was only returned when some mbufs could not be copied to the application. If some data was left in the last mbuf, it was correctly discarded, but MSG_TRUNC was not set. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2010-10-28T16:58:12.941099Z K 7 svn:log V 227 MFC 211944: Fix the switching on/off of CMT using sysctl and socket option. Fix the switching on/off of PF and NR-SACKs using sysctl. Add minor improvement in handling malloc failures. Improve the address checks when sending. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2010-10-28T17:00:31.321837Z K 7 svn:log V 118 MFC r211950: Bugfix: Do not send a packet drop report in response to a received INIT-ACK with incorrect CRC. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2010-10-28T17:02:36.301814Z K 7 svn:log V 204 MFC 211969: Fix the the SCTP_WITH_NO_CSUM option when used in combination with interface supporting CRC offload. While at it, make use of the feature that the loopback interface provides CRC offloading. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2010-10-28T17:04:32.142375Z K 7 svn:log V 203 MFC 212099: Fix the the SCTP_WITH_NO_CSUM option when used in combination with interface supporting CRC offload. While at it, make use of the feature that the loopback interface provides CRC offloading. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2010-10-28T17:17:45.324594Z K 7 svn:log V 186 MFC of 212225 Fix some CLANG warnings. One clang warning is left due to the fact that its bogus.. nam->sa_family will not change from AF_INET6 to AF_INET (but clang thinks it does ;-D) END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2010-10-28T17:50:50.024593Z K 7 svn:log V 99 MFC 209289: Fix a rece condition in the shutdown handling. The race condition resulted in a panic. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-10-28T18:14:32.859137Z K 7 svn:log V 19 Tag tcpdump-4.1.1. END