ĵq149344 153 164 350 127 443 260 462 239 171 169 242 190 175 224 157 293 412 246 156 158 177 411 287 301 126 170 268 447 768 198 158 325 229 1880 206 274 204 167 177 267 145 672 787 116 295 206 320 439 199 263 335 199 194 385 194 370 206 255 583 389 161 339 507 1437 1253 199 237 259 227 201 199 467 258 330 516 369 181 257 484 1142 186 131 122 121 1385 141 105 381 1014 120 175 124 194 168 204 481 417 253 953 1572 2706 166 522 193 328 162 352 198 402 347 201 186 180 202 160 292 292 163 614 320 299 138 112 357 214 255 183 132 273 155 2727 130 171 354 166 368 348 249 260 126 295 1009 133 309 288 510 487 385 543 142 114 156 141 400 K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-08-21T00:43:28.000000Z K 7 svn:log V 69 MFC rev 1.28, removal of pointless -I.. from CFLAGS. PR: bin/79229 END K 10 svn:author V 3 tjr K 8 svn:date V 27 2005-08-21T06:35:02.000000Z K 7 svn:log V 257 Remove the hack that varied the first character of the output file name if none was specified on the command line. This is not permitted by POSIX, and no longer needed now that we have the -a option. PR: 85099 Submitted by: Toby Peterson (Apple Computer) END K 10 svn:author V 6 damien K 8 svn:date V 27 2005-08-21T09:52:18.000000Z K 7 svn:log V 32 Enhanced WME (802.11e) support. END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-08-21T12:29:39.000000Z K 7 svn:log V 348 Add an option to have ICMP replies to non-local packets generated with the IP address the packet came through in. This is useful for routers to show in traceroutes the actual path a packet has taken instead of the possibly different return path. The new sysctl is named net.inet.icmp.reply_from_interface and defaults to off. MFC after: 2 weeks END K 10 svn:author V 6 damien K 8 svn:date V 27 2005-08-21T14:16:20.000000Z K 7 svn:log V 164 Fix basic rates set for 802.11a/g operating modes. This can significantly improve transfer rates in 802.11a/g. Fix IFS settings in ral(4) too. MFC after: 6 days END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-08-21T15:09:07.000000Z K 7 svn:log V 367 Add a sysctl to change to length of the quotation of the original packet in an ICMP reply. The minimum of 8 bytes is internally enforced. The maximum quotation is the remaining space in the reply mbuf. This option is added in response to the issues raised in I-D draft-gont-icmp-payload-00.txt. MFC after: 2 weeks Spnsored by: TCP/IP Optimizations Fundraise 2005 END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-08-21T15:18:00.000000Z K 7 svn:log V 144 Commit correct version of the change and note the name of the new sysctl: net.inet.icmp.quotelen and defaults to 8 bytes. Pointy hat to: andre END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-21T18:03:31.000000Z K 7 svn:log V 79 mp_ncpus is always (properly) initialized, even on UP kernels, so just use it. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-21T18:06:35.000000Z K 7 svn:log V 77 Remove stale comment (we now always start worker thread). MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-21T18:12:51.000000Z K 7 svn:log V 149 By default, when doing crypto work in software, start as many threads as we have active CPUs and bind each thread to its own CPU. MFC after: 3 days END K 10 svn:author V 5 tegge K 8 svn:date V 27 2005-08-21T18:19:06.000000Z K 7 svn:log V 96 Don't set the COMPLETE flag in an inodedep structure before the related inode has been written. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-21T19:15:14.000000Z K 7 svn:log V 83 Before freeing memory, assert that there is no pending callout. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-21T19:16:27.000000Z K 7 svn:log V 131 Stop callout before freeing memory, so it won't panic from softclock. Reported by: Jonatan B MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-08-21T19:48:51.000000Z K 7 svn:log V 61 In ng_callout() assert that supplied arguments are non-NULL. END K 10 svn:author V 8 ssouhlal K 8 svn:date V 27 2005-08-21T22:06:41.000000Z K 7 svn:log V 195 Set the mountpoint path in the superblock (fs_fsmnt) at mount-time so that it appears in the various messages (not cleanly unmounted, filesystem full, etc). This has been broken since rev 1.261. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-08-22T00:20:28.000000Z K 7 svn:log V 319 if_ral_pccard does not depend on pccard module directly, but rather depends, like all other pccard drivers, indirectly through kobj on pccard. Therefore, it is not appropriate to force pccard to be loaded when if_ral.ko is loaded. This makes it possible to load if_ral w/o loading pccard.ko on, eg, pci only systems. END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2005-08-22T02:59:51.000000Z K 7 svn:log V 150 Turn off sampling modes on the AMD64 till the time I can track down the reason for the double fault seen when sampling under load. MFC after: 3 days END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2005-08-22T03:01:35.000000Z K 7 svn:log V 59 Almost ready for BETA3 builds. Approved by: re (implicit) END K 10 svn:author V 4 grog K 8 svn:date V 27 2005-08-22T06:03:40.000000Z K 7 svn:log V 65 Add relationship between offence and beer. Submitted by: philip END K 10 svn:author V 3 ume K 8 svn:date V 27 2005-08-22T07:05:14.000000Z K 7 svn:log V 85 SADB_UPDATE did not return an error when key length is invalid. Obtained from: KAME END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-08-22T07:23:51.000000Z K 7 svn:log V 318 Change pmap_extract() and pmap_extract_and_hold() to use PG_FRAME rather than ~PDRMASK to extract the physical address of a superpage from a PDE. The use of ~PDRMASK is problematic if the PDE has PG_NX set. Specifically, the PG_NX bit will be included in the physical address if ~PDRMASK is used. Reviewed by: peter END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-08-22T08:22:48.000000Z K 7 svn:log V 189 Most users probably aren't interested in locating 13000+ files named [0-9a-f]{64}, so exclude portsnap's compressed snapshots from locate's indexing. Suggested by: silby MFC after: 3 days END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-08-22T09:33:36.000000Z K 7 svn:log V 203 When looking for new lines in diff output, grep for '^[>+]' instead of '^>', in order to catch both normal and unified diffs. Problem reported by: volker at vwsoft dot com via -stable MFC after: 3 days END K 10 svn:author V 5 brian K 8 svn:date V 27 2005-08-22T09:59:13.000000Z K 7 svn:log V 32 Spell powersavesleep correctly. END K 10 svn:author V 3 sos K 8 svn:date V 27 2005-08-22T11:38:53.000000Z K 7 svn:log V 78 Fix problem on Promise "mio" controllers and 48bit mode caused by last commit END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-08-22T12:06:26.000000Z K 7 svn:log V 173 Handle pure layer 2 broad- and multicasts properly and simplify related checks. PR: kern/85052 Submitted by: Dmitrij Tejblum MFC after: 3 days END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-08-22T14:12:18.000000Z K 7 svn:log V 352 Always quote the entire TCP header when responding and allocate an mbuf cluster if needed. Fixes the TCP issues raised in I-D draft-gont-icmp-payload-00.txt. This aids in-the-wild debugging a lot and allows the receiver to do more elaborate checks on the validity of the response. MFC after: 2 weeks Sponsored by: TCP/IP Optimization Fundraise 2005 END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-08-22T16:13:08.000000Z K 7 svn:log V 673 Add socketoption IP_MINTTL. May be used to set the minimum acceptable TTL a packet must have when received on a socket. All packets with a lower TTL are silently dropped. Works on already connected/connecting and listening sockets for RAW/UDP/TCP. This option is only really useful when set to 255 preventing packets from outside the directly connected networks reaching local listeners on sockets. Allows userland implementation of 'The Generalized TTL Security Mechanism (GTSM)' according to RFC3682. Examples of such use include the Cisco IOS BGP implementation command "neighbor ttl-security". MFC after: 2 weeks Sponsored by: TCP/IP Optimization Fundraise 2005 END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-08-22T16:14:53.000000Z K 7 svn:log V 103 Document IP_MINTTL socket option. MFC after: 2 weeks Sponsored by: TCP/IP Optimization Fundraise 2005 END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2005-08-22T17:51:08.000000Z K 7 svn:log V 63 Print PMC capabilities at module load time. MFC after: 3 days END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2005-08-22T18:18:20.000000Z K 7 svn:log V 229 Return EOPNOTSUPP instead of EINVAL if a PMC allocation request specifies a PMC capability (e.g., sampling) that is not supported by hardware. Return EINVAL early if the PMC class passed in is not recognized. MFC after: 3 days END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2005-08-22T18:20:41.000000Z K 7 svn:log V 133 On x86 processors, turn off any 'INTERRUPT' capabilities on PMCs if the CPU does not have its local APIC enabled. MFC after: 3 days END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-08-22T19:35:48.000000Z K 7 svn:log V 1785 Introduce two new ioctl(2) commands, BIOCLOCK and BIOCSETWF. These commands enhance the security of bpf(4) by further relinquishing the privilege of the bpf(4) consumer (assuming the ioctl commands are being implemented). Once BIOCLOCK is executed, the device becomes locked which prevents the execution of ioctl(2) commands which can change the underly parameters of the bpf(4) device. An example might be the setting of bpf(4) filter programs or attaching to different network interfaces. BIOCSETWF can be used to set write filters for outgoing packets. Currently if a bpf(4) consumer is compromised, the bpf(4) descriptor can essentially be used as a raw socket, regardless of consumer's UID. Write filters give users the ability to constrain which packets can be sent through the bpf(4) descriptor. These features are currently implemented by a couple programs which came from OpenBSD, such as the new dhclient and pflogd. -Modify bpf_setf(9) to accept a "cmd" parameter. This will be used to specify whether a read or write filter is to be set. -Add a bpf(4) filter program as a parameter to bpf_movein(9) as we will run the filter program on the mbuf data once we move the packet in from user-space. -Rather than execute two uiomove operations, (one for the link header and the other for the packet data), execute one and manually copy the linker header into the sockaddr structure via bcopy. -Restructure bpf_setf to compensate for write filters, as well as read. -Adjust bpf(4) stats structures to include a bd_locked member. It should be noted that the FreeBSD and OpenBSD implementations differ a bit in the sense that we unconditionally enforce the lock, where OpenBSD enforces it only if the calling credential is not root. Idea from: OpenBSD Reviewed by: mlaier END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-08-22T20:02:40.000000Z K 7 svn:log V 113 Pass the PDE from pmap_remove() to pmap_remove_page() so that the latter procedure doesn't have to recompute it. END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-08-22T22:13:41.000000Z K 7 svn:log V 179 o Fix a logic error when not doing mbuf cluster allocation. o Change an old panic() to a clean function exit. MFC after: 2 weeks Sponsored by: TCP/IP Optimization Fundraise 2005 END K 10 svn:author V 2 le K 8 svn:date V 27 2005-08-22T23:24:26.000000Z K 7 svn:log V 112 Correct the check if a plex is accessible in case it is not up. This makes degraded RAID5 plexes actually work. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-08-23T00:03:58.000000Z K 7 svn:log V 74 FreeBSD now supports BIOCLOCK. So we can use it now. Reviewed by: mlaier END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-08-23T00:06:04.000000Z K 7 svn:log V 84 Add support for processing the "bd_locked" flag offered by the bpf stats structure. END K 10 svn:author V 4 emax K 8 svn:date V 27 2005-08-23T00:50:59.000000Z K 7 svn:log V 173 Fix multiple typos in the mutex names. This fixes false positive (and pretty strange looking too) LORs I have seen on my system. Pointy hat to goes to me. MFC after: 1 day END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-08-23T01:35:38.000000Z K 7 svn:log V 52 FreeBSD unconditionally supports write filters now. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-23T01:50:19.000000Z K 7 svn:log V 575 Merge vfs_subr.c:1.641 from HEAD to RELENG_6: Silence "busy" warnings when unmounting devfs at system shutdown. This is a workaround for non-symetric teardown of the file systems at shutdown with respect to the mount order at boot. The proper long term fix is to properly detach devfs from the root mount before unmounting each, and should be implemented, but since the problem is non-harmful, this temporary band-aid will prevent false positive bug reports and unnecessary error output for 6.0-RELEASE. Tested by: pav, pjd Approved by: re (scottl) END K 10 svn:author V 8 truckman K 8 svn:date V 27 2005-08-23T03:44:06.000000Z K 7 svn:log V 689 Back out the removal of LK_NOWAIT from the VOP_LOCK() call in vlrureclaim() in vfs_subr.c 1.636 because waiting for the vnode lock aggravates an existing race condition. It is also undesirable according to the commit log for 1.631. Fix the tiny race condition that remains by rechecking the vnode state after grabbing the vnode lock and grabbing the vnode interlock. Fix the problem of other threads being starved (which 1.636 attempted to fix by removing LK_NOWAIT) by calling uio_yield() periodically in vlrureclaim(). This should be more deterministic than hoping that VOP_LOCK() without LK_NOWAIT will block, which may not happen in this loop. Reviewed by: kan MFC after: 5 days END K 10 svn:author V 5 brian K 8 svn:date V 27 2005-08-23T07:58:55.000000Z K 7 svn:log V 22 Fix a couple of typos END K 10 svn:author V 3 sos K 8 svn:date V 27 2005-08-23T08:53:01.000000Z K 7 svn:log V 202 Apply fix for "pr82261 DMA-support on Sparc64 broken" The Acer chip or wiring that SUN uses has problems that this patch tries to work around. Original patch by Marius Strobl, hacked into shape by me.. END K 10 svn:author V 5 brian K 8 svn:date V 27 2005-08-23T13:13:13.000000Z K 7 svn:log V 111 Add a -h option to tell cmp not to follow symbolic links. MFC after: 3 weeks Sponsored by: Sophos/ActiveState END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2005-08-23T14:13:17.000000Z K 7 svn:log V 224 Don't loop back packets that have been routed by pf. This fixes an endless loop where the same packet is sent over and over again. Obtained from: OpenBSD Reported by: Sergey Lapin Tested by: Sergey Lapin MFC after: 7 days END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2005-08-23T14:25:31.000000Z K 7 svn:log V 343 MFC: if.c, 1.236 Move eventhandler for 'ifnet_departure_event' at the end of the progress. Some of the (IPv6) cleanup functions send packets to inform peers of the departure. These packets confused users of ifnet_departure_event (pf at the moment). PR: kern/80627 Tested by: Divacky Roman Forgotten by: mlaier END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-08-23T14:42:40.000000Z K 7 svn:log V 104 Remove unnecessary IPSEC includes. MFC after: 2 weeks Sponsored by: TCP/IP Optimization Fundraise 2005 END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-08-23T17:08:59.000000Z K 7 svn:log V 169 Add documentation for the BIOCLOCK and BIOCSETWF ioctl commands. Also modify the documentation for BIOCSETF to note that it sets the read filter. Pointed out by: simon END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2005-08-23T17:18:27.000000Z K 7 svn:log V 239 Document the diagnostic message printed at startup time. Keep the list of diagnostic messages sorted. Document the recently introduced EOPNOTSUPP error return. Repair sort ordering for the list of error descriptions. MFC after: 3 days END K 10 svn:author V 6 markus K 8 svn:date V 27 2005-08-23T18:34:39.000000Z K 7 svn:log V 103 - Document the led(4) interface for the Thinklight - Bump .Dd Approved by: brueffer MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-23T18:55:38.000000Z K 7 svn:log V 101 Verify if we can actually read the data at given offset. Reported by: Martin END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2005-08-23T19:49:00.000000Z K 7 svn:log V 288 The mtu check in bridge_enqueue is bogus as the maximum Ethernet frame is actually 1514, so comparing the mbuf length which includes the Ethernet header to the interface MTU is wrong. The check was a little over the top so just remove it. Approved by: mlaier (mentor) MFC after: 3 days END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-08-23T20:31:21.000000Z K 7 svn:log V 101 End the MALLOC_DEFINE macro without the semi-colon, the caller supplies that. Spotted by: Flexelint END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2005-08-23T21:32:49.000000Z K 7 svn:log V 273 Provide the USB device release number along with other parameters so that devd can match on it. This field was already available to usbd and is used by a number of usbd.conf entries, so now it is possible to transfer those entries to devd.conf. Submitted by: Anish Mistry END K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-08-23T23:59:55.000000Z K 7 svn:log V 110 Add __FBSDID to all .c files in dhclient to aid in determining file versions when dealing with user problems. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-08-24T00:05:04.000000Z K 7 svn:log V 159 MFOpenBSD rev 1.9: fix a buffer overflow when processing config file lines that are exactly 81 characters in length. Obtained from: OpenBSD MFC After: 3 days END K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-08-24T01:23:49.000000Z K 7 svn:log V 487 - Remove the removable_interfaces variable. /etc/pccard_ether will now run on any interface. - Add a new ifconfig_ keyword, NOAUTO which prevents configuration of an interface at boot or via /etc/pccard_ether. This allows /etc/rc.d/netif to be used to start and stop an interface on a purely manual basis. The decision to affect pccard_ether may be revisited at a later date. Requested by: imp, gallatin (removable_interfaces) Discussed with: sam, Randy Bush (NOAUTO) END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-08-24T02:21:12.000000Z K 7 svn:log V 292 - Remove NTP servers which do not resolve in DNS. - Use pool.ntp.org servers where possible, thanks to Chuck Swiger . - Update list of Swedish NTP servers, thanks to Fredrik Lindberg . PR: bin/75479 MFC after: 1 day END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-08-24T02:47:16.000000Z K 7 svn:log V 70 Fix up the comment for MAX_SACK_BLKS. Submitted by: Noritoshi Demizu END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-08-24T02:48:45.000000Z K 7 svn:log V 247 Remove a KASSERT in the sack path that fails because of a interaction between sack and a bug in the "bad retransmit recovery" logic. This is a workaround, the underlying bug will be fixed later. Submitted by: Mohan Srinivasan, Noritoshi Demizu END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-24T04:19:48.000000Z K 7 svn:log V 410 Merge if.c:1.235 from HEAD to RELENG_6: - Introduce a helper function if_setflag() containing the code common to ifpromisc() and if_allmulti() instead of duplicating the code poorly, with different bugs. - Call ifp->if_ioctl() in a consistent way: always use more compatible C syntax and check whether ifp->if_ioctl is not NULL prior to the call. Discussed with: yar Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-24T04:42:03.000000Z K 7 svn:log V 1339 Merge if.c:1.239, if_var.h:1.101 from HEAD to RELENG_6: Protect link layer network interface multicast address list manipulation using ifp->if_addr_mtx: - Initialize if_addr_mtx when ifnet is initialized. - Destroy if_addr_mtx when ifnet is torn down. - Rename ifmaof_ifpforaddr() to if_findmulti(); assert if_addr_mtx. Staticize. - Extract ifmultiaddr allocation and initialization into if_allocmulti(); accept a 'mflags' argument to indicate whether or not sleeping is permitted. This centralizes error handling and address duplication. - Extract ifmultiaddr tear-down and deallocation in if_freemulti(). - Re-structure if_addmulti() to hold if_addr_mtx around manipulation of the ifnet multicast address list and reference count manipulation. Make use of non-sleeping allocations. Annotate the fact that we only generate routing socket events for explicit address addition, not implicit link layer address addition. - Re-structure if_delmulti() to hold if_addr_mtx around manipulation of the ifnet multicast address list and reference count manipulation. Annotate the lack of a routing socket event for implicit link layer address removal. - De-spl all and sundry. Problem reported by: Ed Maste Approved by: re (hrs) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-24T04:45:02.000000Z K 7 svn:log V 1155 Merge if.c:1.240, if.c:1.241, if.c:1.242 from HEAD to RELENG_6, which correct nits in the addition of if_addr_mtx: if.c:1.240: Initialize the if_addr mutex in if_alloc() rather than waiting until if_attach(). This allows ethernet drivers to use it in their routines to program their MAC filters before ether_ifattach() is called (de(4) is one such driver). Also, the if_addr mutex is destroyed in if_free() rather than if_detach(), so there was another potential bug in that a driver that failed during attach and called if_free() without having called ether_ifattach() would have tried to destroy an uninitialized mutex. Reported by: Holm Tiffe holm at freibergnet dot de Discussed with: rwatson if.c:1.241: destroy lock _before_ free'ing the structure it resides in if.c:1.242: - Move IF_ADDR_LOCK_DESTROY(ifp) from if_free to if_free_type. - Add a note that additions should be made to if_free_type and not if_free to help avoid this in the future. This apparently fixes a use after free in if_bridge and may fix bugs in other direct if_free_type consumers. Reported by: thompsa Approved by: re (hrs) END K 10 svn:author V 3 suz K 8 svn:date V 27 2005-08-24T06:46:16.000000Z K 7 svn:log V 106 MFC 1.55 added a missing unlock (just do the same thing as in netinet/raw_ip.c) Approved by: re(scottl) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2005-08-24T07:03:35.000000Z K 7 svn:log V 140 Merge if_re.c:1.46 from HEAD to RELENG_5: Use correct pointer type. This should fix non-functional re(4) driver on 64bit architectures. END K 10 svn:author V 5 bruno K 8 svn:date V 27 2005-08-24T07:52:59.000000Z K 7 svn:log V 164 Change the default adaptive algorithm for phk's one. Thanks to phk and Kevin Oberman for this work. Submitted by: Kevin Oberman Reviewed by: njl Approved by: njl END K 10 svn:author V 5 simon K 8 svn:date V 27 2005-08-24T08:07:29.000000Z K 7 svn:log V 132 MFC rev 1.35: Remove reference to raid(4), the RAIDframe manual page, which was deleted a while ago. Approved by: re (scottl) END K 10 svn:author V 5 simon K 8 svn:date V 27 2005-08-24T08:09:14.000000Z K 7 svn:log V 106 MFC rev 1.35: Remove reference to raid(4), the RAIDframe manual page, which was deleted a while ago. END K 10 svn:author V 3 yar K 8 svn:date V 27 2005-08-24T12:21:34.000000Z K 7 svn:log V 106 List -W as one of the meaningful options to the -i (interfaces) display of netstat(1). MFC after: 3 days END K 10 svn:author V 3 des K 8 svn:date V 27 2005-08-24T12:28:05.000000Z K 7 svn:log V 374 Ignore HTTP_PROXY if it is defined but empty. This was already handled correctly in the case of FTP_PROXY, because an empty FTP_PROXY has a specific meaning ("don't use any proxy at all for ftp, even if HTTP_PROXY is defined"), while an empty HTTP_PROXY has no meaning at all. PR: bin/85185 Submitted by: Conall O'Brien MFC after: 2 weeks END K 10 svn:author V 5 imura K 8 svn:date V 27 2005-08-24T12:38:26.000000Z K 7 svn:log V 163 - Fix checking range of strings of struct iconv_add_in in libsmb and libkiconv, - Add checking range of strings to iconv_sysctl_add(). Submitted by: Rudolf Cejka END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-24T13:26:14.000000Z K 7 svn:log V 233 Merge if_var.h:1.101 from HEAD to RELENG_6: - Rename ifmaof_ifpforaddr() to if_findmulti(); assert if_addr_mtx. Staticize. Problem reported by: Ed Maste Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-24T13:51:55.000000Z K 7 svn:log V 419 Merge if_arcsubr.c:1.26, if_ethersubr.c:1.195, if_fddisubr.c:1.99, if_iso88025subr.c:1.68 from HEAD to RELENG_6: When allocating link layer ifnet address list entries in ifp->if_resolvemulti(), do so with M_NOWAIT rather than M_WAITOK, so that a mutex can be held over the call. In the FDDI code, add a missing M_ZERO. Consumers are already aware that if_resolvemulti() can fail. Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-24T15:18:38.000000Z K 7 svn:log V 272 Merge in_var.h:1.54, in6_var.h:1.23, mld6.c:1.22 from HEAD to RELENG_6: Modify network protocol consumers of the ifnet multicast address lists to lock if_addr_mtx. Problem reported by: Ed Maste Approved by: re (scottl) END K 10 svn:author V 8 keramida K 8 svn:date V 27 2005-08-24T15:42:12.000000Z K 7 svn:log V 84 MFC 1.34: Spell "partition" correctly. Reminded by: simon Approved by: re (scottl) END K 10 svn:author V 8 keramida K 8 svn:date V 27 2005-08-24T15:45:39.000000Z K 7 svn:log V 159 MFC: Spell "partition" correctly: > 1.34 +1 -1 src/sbin/ccdconfig/ccdconfig.8 > 1.53 +1 -1 src/sbin/reboot/boot_i386.8 Reminded by: simon END K 10 svn:author V 3 yar K 8 svn:date V 27 2005-08-24T16:25:47.000000Z K 7 svn:log V 391 Stop hard-coding an -M flag to mdmfs(8) in /etc/rc.subr. Now this flag can be set, or not set, for memory-backed file systems on individual basis, as illustrated by the rc.conf(5) variables tmpmfs_flags and varmfs_flags. The flag is set for those FS'en by default, in /etc/defaults/rc.conf, in order to stay compatible with the old rc.subr behaviour. Submitted by: marck MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-24T16:50:46.000000Z K 7 svn:log V 1044 Merge if_ath.c:1.99 awi.c:1.39 if_bfe.c:1.26 if_bge.c:1.92 if_ed.c:1.255 if_em.c:1.67 if_ex.c:1.57 if_fe.c:1.92 if_fxp.c:1.242 if_gem.c:1.32 if_hme.c:1.38 if_ie.c:1.103 if_ndis.c:1.100 if_ixgb.c:1.12 if_lge.c:1.40 if_lnc.c:1.112 if_my.c:1.30 if_nge.c:1.76 if_nve.c:1.9 if_owi.c:1.11 pdq_ifsubr.c:1.27 if_ray.c:1.80 if_re.c:1.47 if_sn.c:1.47 dp83932.c:1.20 if_tx.c:1.90 if_txp.c:1.32 if_aue.c:1.91 if_axe.c:1.31 if_cue.c:1.58 if_kue.c:1.65 if_rue.c:1.22 if_udav.c:1.15 if_vge.c:1.15 if_wi.c:1.182 if_wl.c:1.67 if_xe.c:1.58 if_dc.c:1.161 if_de.c:1.167 if_pcn.c:1.70 if_rl.c:1.153 if_sf.c:1.83 if_sis.c:1.134 if_sk.c:1.107 if_ste.c:1.85 if_ti.c:1.108 if_tl.c:1.100 if_vr.c:1.105 if_wb.c:1.80 if_xl.c:1.193 from HEAD to RELENG_6: Modify device drivers supporting multicast addresses to lock if_addr_mtx over iteration of their multicast address lists when synchronizing the hardware address filter with the network stack-maintained list. Problem reported by: Ed Maste (emaste at phaedrus dot sandvine dot ca> Approved by: re (scottl) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-24T17:21:38.000000Z K 7 svn:log V 94 Add a family of functions for reliable pidfiles handling. Idea from: jmg Discussed on: arch@ END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-24T17:24:39.000000Z K 7 svn:log V 39 Teach daemon(8) how to use pidfile(3). END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-24T17:26:26.000000Z K 7 svn:log V 30 Use pidfile(3) in syslogd(8). END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-24T17:27:06.000000Z K 7 svn:log V 29 Use pidfile(3) in moused(8). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-24T17:30:44.000000Z K 7 svn:log V 1287 Merge subr_witness.c:1.196, igmp.c:1.49, in.c:1.86, in_var.h:1.55, ip_input.c:1.303, ip_output.c:1.243 from HEAD to RELENG_6: Introduce in_multi_mtx, which will protect IPv4-layer multicast address lists, as well as accessor macros. For now, this is a recursive mutex due code sequences where IPv4 multicast calls into IGMP calls into ip_output(), which then tests for a multicast forwarding case. For support macros in in_var.h to check multicast address lists, assert that in_multi_mtx is held. Acquire in_multi_mtx around iteration over the IPv4 multicast address lists, such as in ip_input() and ip_output(). Acquire in_multi_mtx when manipulating the IPv4 layer multicast addresses, as well as over the manipulation of ifnet multicast address lists in order to keep the two layers in sync. Lock down accesses to IPv4 multicast addresses in IGMP, or assert the lock when performing IGMP join/leave events. Eliminate spl's associated with IPv4 multicast addresses, portions of IGMP that weren't previously expunged by IGMP locking. Add in_multi_mtx, igmp_mtx, and if_addr_mtx lock order to hard-coded lock order in WITNESS, in that order. Problem reported by: Ed Maste Approved by: re (scottl) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-24T17:32:41.000000Z K 7 svn:log V 49 Add '-P' option which allows to specify pidfile. END K 10 svn:author V 5 wilko K 8 svn:date V 27 2005-08-24T17:45:09.000000Z K 7 svn:log V 11 About life END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-24T17:51:36.000000Z K 7 svn:log V 288 Use pidfile(3) in cron(8). Note, that when cron(8) cannot create pidfile, it'll exit. I didn't changed this behaviour, but its better to ignore errors other than EEXIST, so daemon can be started on systems where /var/ file system doesn't support locking (like NFS without rpc.lockd(8)). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-24T18:10:51.000000Z K 7 svn:log V 917 Merge if_atmsubr.c:1.38 from HEAD to RELENG_6: Lock down netnatm and mark as MPSAFE: - Introduce a subsystem mutex, natm_mtx, manipulated with accessor macros NATM_LOCK_INIT(), NATM_LOCK(), NATM_UNLOCK(), NATM_LOCK_ASSERT(). It protects the consistency of pcb-related data structures. Finer grained locking is possible, but should be done in the context of specific measurements (as very little work is done in netnatm -- most is in the ATM device driver or socket layer, so there's probably not much contention). - Remove GIANT_REQUIRED, mark as NETISR_MPSAFE, remove NET_NEEDS_GIANT("netnatm"). - Conditionally acquire Giant when entering network interfaces for ifp->if_ioctl() using IFF_LOCKGIANT(ifp)/IFF_UNLOCKGIANT(ifp) in order to coexist with non-MPSAFE atm ifnet drivers.. - De-spl. Reviewed by: harti, bms (various versions) Approved by: re (hrs) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-24T19:04:21.000000Z K 7 svn:log V 28 Use pidfile(3) in inetd(8). END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-24T19:17:06.000000Z K 7 svn:log V 83 Use pidfile(3) in mountd(8). There is no need to use /var/run/mountd.lock anymore. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-24T19:28:33.000000Z K 7 svn:log V 32 Use pidfile(3) in watchdogd(8). END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-24T19:38:28.000000Z K 7 svn:log V 101 Modify '-F' option to work nicely with pidfile(3) - a pidfile given as an argument has to be locked. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-24T19:39:29.000000Z K 7 svn:log V 76 '-F' option now needs locked pidfile. Modify regression tests respectively. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-24T19:42:40.000000Z K 7 svn:log V 111 Test last minute changes, as gcc isn't too smart. Reported by: Steve Kargl END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-08-24T20:28:56.000000Z K 7 svn:log V 388 - Remove redundant assertions that the driver lock is not held in attach() and detach() since mtx_lock() will assert that already since the driver lock is not recursive. - Move the call to callout_init_mtx() before hme_stop() so that the callout_stop() in hme_stop() doesn't operate on an uninitialized callout structure during attach. Reported by: yongari (2) MFC after: 3 days END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-08-25T00:42:26.000000Z K 7 svn:log V 320 MFC rev 1.411: - Remove NTP servers which do not resolve in DNS. - Use pool.ntp.org servers where possible, thanks to Chuck Swiger . - Update list of Swedish NTP servers, thanks to Fredrik Lindberg . PR: bin/75479 Approved by: re (scottl) END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-08-25T00:55:52.000000Z K 7 svn:log V 156 MFC 1.89: Remove EXAMPLES section which gives a non-POSIX compliant use of the sort command. The -S flag to ls does the same thing. PR: standards/83919 END K 10 svn:author V 8 truckman K 8 svn:date V 27 2005-08-25T03:47:37.000000Z K 7 svn:log V 855 Track all lock relationships instead of pruning direct relationships if an indirect relationship exists (keep both A->B->C and A->C). This allows witness_checkorder() to use isitmychild() instead of the much more expensive isitmydescendant() to check for valid lock ordering. Don't do an expensive tree walk to update the w_level values when the tree is updated. Only update the w_level values when using the debugger to display the tree. Nuke the experimental "witness_watch > 1" mode that only compared w_level for the two locks. This information is no longer maintained at run time, and the use of isitmychild() in witness_checkorder should bring performance close enough to the acceptable level that this hack is not needed. Report witness data structure allocation statistics under the debug.witness sysctl. Reviewed by: jhb MFC after: 30 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-25T04:55:48.000000Z K 7 svn:log V 1474 Merge if.c:1.242, if.h:1.97, if_var.h:1.102, rtsock.c:1.125 from HEAD to RELENG_6: Rename IFF_RUNNING to IFF_DRV_RUNNING, IFF_OACTIVE to IFF_DRV_OACTIVE, and move both flags from ifnet.if_flags to ifnet.if_drv_flags, making and documenting the locking of these flags the responsibility of the device driver, not the network stack. The flags for these two fields will be mutually exclusive so that they can be exposed to user space as though they were stored in the same variable. Provide #defines to provide the old names #ifndef _KERNEL, so that user applications (such as ifconfig) can use the old flag names. Using the old names in a device driver will result in a compile error in order to help device driver writers adopt the new model. When exposing the interface flags to user space, via interface ioctls or routing sockets, or the two fields together. Since the driver flags cannot currently be set for user space, no new logic is currently required to handle this case. Add some assertions that general purpose network stack routines, such as if_setflags(), are not improperly used on driver-owned flags. With this change, a large number of very minor network stack races are closed, subject to correct device driver locking. Most were likely never triggered. Driver sweep to follow; many thanks to pjd and bz for the line-by-line review they gave this patch. Reviewed by: pjd, bz Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-25T05:01:24.000000Z K 7 svn:log V 2608 Merge linux_ioctl.c:1.128 svr4_sockio.c:1.17 altq_cbq.c:1.3 if_oltr.c:1.38 if_pflog.c:1.14 if_pfsync.c:1.21 if_an.c:1.70 if_ar.c:1.72 if_arl.c:1.11 amrr.c:1.10 onoe.c:1.10 if_ath.c:1.101 awi.c:1.41 if_bfe.c:1.27 if_bge.c:1.93 if_cm_isa.c:1.7 smc90cx6.c:1.16 if_cnw.c:1.20 if_cp.c:1.25 if_cs.c:1.42 if_ct.c:1.26 if_cx.c:1.46 if_ed.c:1.256 if_em.c:1.68 if_en_pci.c:1.37 midway.c:1.66 if_ep.c:1.143 if_ex.c:1.58 if_fatm.c:1.20 if_fe.c:1.93 if_fwe.c:1.38 if_fwip.c:1.8 if_fxp.c:1.244 if_gem.c:1.33 if_hatm.c:1.25 if_hatm_intr.c:1.20 if_hatm_ioctl.c:1.13 if_hatm_rx.c:1.10 if_hatm_tx.c:1.14 if_hme.c:1.39 if_ie.c:1.104 if_ndis.c:1.101 if_ic.c:1.24 if_ipw.c:1.10 if_iwi.c:1.10 if_ixgb.c:1.13 if_lge.c:1.41 if_lnc.c:1.113 if_my.c:1.31 if_nge.c:1.77 if_nve.c:1.10 if_owi.c:1.12 if_patm.c:1.9 if_patm_intr.c:1.6 if_patm_ioctl.c:1.10 if_patm_tx.c:1.10 pdq_ifsubr.c:1.28 if_plip.c:1.38 if_ral.c:1.12 if_ral_pci.c:1.2 if_ray.c:1.81 if_rayvar.h:1.22 if_re.c:1.49 if_sbni.c:1.21 if_sbsh.c:1.14 if_sn.c:1.48 dp83932.c:1.21 if_snc_pccard.c:1.9 if_sr.c:1.70 if_tx.c:1.91 if_txp.c:1.33 if_aue.c:1.92 if_axe.c:1.32 if_cdce.c:1.8 if_cue.c:1.59 if_kue.c:1.66 if_rue.c:1.23 if_udav.c:1.16 if_ural.c:1.12 if_vge.c:1.16 if_vx.c:1.58 if_wi.c:1.185 if_wi_pci.c:1.26 if_wl.c:1.68 if_xe.c:1.60 if_xe_pccard.c:1.30 if_el.c:1.68 i4b_ipr.c:1.35 i4b_isppp.c:1.31 kern_poll.c:1.20 bridge.c:1.94 bridgestp.c:1.4 if_arcsubr.c:1.27 if_atm.h:1.24 if_atmsubr.c:1.40 if_bridge.c:1.16 if_ef.c:1.35 if_ethersubr.c:1.196 if_faith.c:1.37 if_fddisubr.c:1.100 if_fwsubr.c:1.14 if_gif.c:1.54 if_gre.c:1.34 if_iso88025subr.c:1.70 if_loop.c:1.107 if_ppp.c:1.106 if_spppsubr.c:1.121 if_tap.c:1.57 if_tun.c:1.154 if_vlan.c:1.80 ppp_tty.c:1.67 ieee80211_ioctl.c:1.32 atm_if.c:1.31 ng_eiface.c:1.33 ng_ether.c:1.50 ng_fec.c:1.19 ng_iface.c:1.44 ng_sppp.c:1.9 ip_carp.c:1.30 ip_fastfwd.c:1.30 in6.c:1.53 nd6_nbr.c:1.31 natm.c:1.40 if_dc.c:1.162 if_de.c:1.168 if_pcn.c:1.72 if_rl.c:1.154 if_sf.c:1.84 if_sis.c:1.135 if_sk.c:1.108 if_ste.c:1.86 if_ti.c:1.109 if_tl.c:1.101 if_vr.c:1.106 if_wb.c:1.81 if_xl.c:1.194 from HEAD to RELENG_6: Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE and IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field. Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so. Reviewed by: pjd, bz Approved by: re (scottl) END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2005-08-25T05:01:25.000000Z K 7 svn:log V 70 This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-25T05:02:28.000000Z K 7 svn:log V 425 Merge if.h:1.98 from HEAD to RELENG_6: For each interface flag, indicate whether or not it is owned by the device driver, owned by the network stack, or initialized by the device driver before attach and read-only from then on. Not all device drivers and network stack components currently follow these rules, especially with respect to IFF_UP, and a few exceptions with IFF_ALLMULTI. Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-25T05:44:06.000000Z K 7 svn:log V 97 White space sync: add missing line break. Approved by: re (kensmith - earlier whitespace fixes) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-08-25T07:21:15.000000Z K 7 svn:log V 231 Backout revision 1.54, because it exposes a worse problem, than it fixes. I believe the problem lives somewhere outside ng_ksocket, but until it is found, let the node be working. PR: kern/84952 PR: kern/82413 MFC after: 3 days END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2005-08-25T10:22:29.000000Z K 7 svn:log V 66 Hook getino.3 up to the build and link it to putino.3. PR: 83820 END K 10 svn:author V 3 ume K 8 svn:date V 27 2005-08-25T10:50:36.000000Z K 7 svn:log V 259 initialize only ACPI_BUFFER to avoid race condition with passive cooling thread which refers psv, tc1, tc2 and tsp. The previous code made the period where sc->tz_zone.tsp was zero, and it caused panic at msleep(). Reported by: keramida Tested by: keramida END K 10 svn:author V 3 ume K 8 svn:date V 27 2005-08-25T11:31:30.000000Z K 7 svn:log V 105 get current temperature from _TMP during passive cooling is active. it makes CPU freq transition smooth. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-08-25T13:25:57.000000Z K 7 svn:log V 305 When we have a published ARP entry for some IP address, do reply on ARP requests only on the network where this IP address belong, to. Before this change we did replied on all interfaces. This could lead to an IP address conflict with host we are doing ARP proxy for. PR: kern/75634 Reviewed by: andre END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-08-25T13:30:04.000000Z K 7 svn:log V 250 De-spl parts of the routing socket code now generally protected through locking; leave some spl references around code where there are open questions about global variable references. Also, add an XXX regarding locking in sysctl. MFC after: 3 days END K 10 svn:author V 7 roberto K 8 svn:date V 27 2005-08-25T13:44:02.000000Z K 7 svn:log V 104 Fixes for gcc4.x. Submitted by: Divacky Roman PR: bin/84991 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-08-25T13:47:41.000000Z K 7 svn:log V 90 Remove all references to T/TCP, which was removed several months ago. Approved by: andre END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-08-25T13:57:00.000000Z K 7 svn:log V 84 - Refuse hashsize of 0, since it is invalid. - Use defined constant instead of 512. END K 10 svn:author V 7 roberto K 8 svn:date V 27 2005-08-25T14:09:35.000000Z K 7 svn:log V 105 Fixes for gcc 4.x. PR: bin/84995 Submitted by: Divacky Roman END K 10 svn:author V 3 sos K 8 svn:date V 27 2005-08-25T15:45:03.000000Z K 7 svn:log V 68 Dont set default mode to ATA_DMA_MAX on devices not capable of DMA. END K 10 svn:author V 4 emax K 8 svn:date V 27 2005-08-25T16:14:33.000000Z K 7 svn:log V 198 MFC to RELENG_6 Fix multiple typos in the mutex names. This fixes false positive (and pretty strange looking too) LORs I have seen on my system. Pointy hat to goes to me. Approved by: re (scottl) END K 10 svn:author V 4 emax K 8 svn:date V 27 2005-08-25T16:16:18.000000Z K 7 svn:log V 198 MFC to RELENG_5 Fix multiple typos in the mutex names. This fixes false positive (and pretty strange looking too) LORs I have seen on my system. Pointy hat to goes to me. Approved by: re (scottl) END K 10 svn:author V 3 sos K 8 svn:date V 27 2005-08-25T16:16:45.000000Z K 7 svn:log V 71 MFC: Add definition for SATAII 3Gb/s mode. Approved by: re@ (scottl) END K 10 svn:author V 3 sos K 8 svn:date V 27 2005-08-25T16:21:05.000000Z K 7 svn:log V 521 MFC: Add support for working around controllers that cannot do DMA in 48bit. The workaround use PIO mode above ~137GB to allow using the disk. Add the Acer chips with rev < 0xc4 as first candidate. Add support for the Promise PDC4071[89] chips on the Fasttrak TX4300. Docs kindly provided by Promise. Apply fix for "pr82261 DMA-support on Sparc64 broken" Use the bio field instead of the driver field as intended. Dont set default mode to ATA_DMA_MAX on devices not capable of DMA. Approved by: re@ (scottl) END K 10 svn:author V 4 emax K 8 svn:date V 27 2005-08-25T17:00:02.000000Z K 7 svn:log V 226 Make sure ng_fec_init() uses the same calling convention as the rest of the code, i.e. ng_fec_init() is called with the ifp->if_softc pointer and NOT with the ifp pointer. PR: kern/85239 Reviewed by: brooks MFC after: 1 day END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-08-25T17:01:06.000000Z K 7 svn:log V 201 Fix a bug introduced in revision 1.9 which causes chkgrp to coredump on certain corrupt files. Submitted by: liamfoy@dragonflybsd.org Reported by: Nikolay Kalev, via freebsd-current MFC after: 3 days END K 10 svn:author V 4 emax K 8 svn:date V 27 2005-08-25T17:14:39.000000Z K 7 svn:log V 45 Add myself as a maintainer of Bluetooth code END K 10 svn:author V 5 wilko K 8 svn:date V 27 2005-08-25T18:25:47.000000Z K 7 svn:log V 18 MFC: "about life" END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-08-25T18:26:58.000000Z K 7 svn:log V 262 Add the function memmem(3) as found in glibc and others. It is the binary equivalent to strstr(3). void *memmem(const void *big, size_t big_len, const void *little, size_t little_len); Submitted by: Pascal Gloor MFC after: 3 days END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-08-25T19:06:11.000000Z K 7 svn:log V 116 MFC: Tell locate to ignore /var/db/portsnap by default because it isn't very interesting. Approved by: re (scottl) END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-08-25T19:07:28.000000Z K 7 svn:log V 157 MFC: When looking for new lines in diff output, grep for '^[>+]' instead of '^>', in order to catch both normal and unified diffs. Approved by: re (scottl) END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-08-25T19:46:38.000000Z K 7 svn:log V 89 Appropriate namespace protection for memmem(3). Submitted by: wollman MFC after: 3 days END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-08-25T19:49:53.000000Z K 7 svn:log V 38 Bump __FreeBSD_version for memmem(3). END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-25T20:10:47.000000Z K 7 svn:log V 180 Revert previous behaviour of '-F' option and add '-L' option, which will tell pkill(1)/pgrep(1) to try to flock(2) pidfile before reading PID from there. Discussed with: jhb, gad END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-25T20:11:39.000000Z K 7 svn:log V 63 '-F' option behaviour was reverted, so revert previous commit. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-08-25T20:12:43.000000Z K 7 svn:log V 2633 Major rototill of this driver to add FreeBSD bus-dma support: - Allocate arrays of metadata for the descriptors in the rx and tx rings and change the ring pointers to walk the metadata array rather than the actual descriptor rings. Each metadata object contains a pointer to its descriptor, a pointer to any associated mbuf, and a pointer to the associated bus_dmamap_t in the bus_dma case. The mbuf pointers replace the tulip_txq and tulip_rxq local ifqueue's in the softc. - Add lots of KTR trace entries using a local KTR_TULIP level which defaults to 0, but can be changed to KTR_DEV at the top of the file when debugging. - Rename tulip_init(), tulip_start(), tulip_ifinit(), and tulip_ifstart() to tulip_init_locked(), tulip_start_locked(), tulip_init(), and tulip_start(), respectively, to match the convention in other drivers. - Add a TULIP_SP_MAC() macro to encode two bytes of the MAC address into the setup buffer and use that in place of lots of BYTE_ORDER #ifdef's. Also, remove an incorrect XXX comment I added earlier, the driver was correct (at least it does the same thing dc(4) does). TULIP_SP_MAC was shamelessly copied from DC_SP_MAC() in dc(4). - Remove the #ifdef'd NetBSD bus-dma code and replace it with FreeBSD bus-dma code that not only compiles but even works at runtime. - Use callout_init_mtx() instead of just callout_init(). - Correct the various wrapper macros for bus_dmamap_sync() for the rx and tx buffers to only ask for the sync ops that they actually need. - Tidy the #ifdef TULIP_COPY_RXDATA code by expanding an #ifdef a bit so it becomes easier to read at the expense of a couple of duplicated lines of code. Also, use m_getcl() to get an mbuf cluster rather than MGETHDR() followed by MCLGET(). - Maintain the ring free (ri_free) count for the rx ring metadata since we no longer have tulip_rxq.ifq_len around to indicate how many mbuf's are currently in the rx ring. - Add code to teardown bus_dma resources when attach fails and generally fixup attach to do a better job of cleaning up when it fails. This gets us a good bit closer to possibly having a detach method someday and making this driver an unloadable module. - Add some functions that can be called from ddb to dump the state of a descriptor ring and to dump the state of an individual descriptor. - Various comment grammer and spelling fixes. I have bus-dma turned on by default, but I've left the non-bus-dma code around so that it can be turned off to aid in debugging should any problems turn up later on. I'll be removing the non-bus-dma code in a subsequent commit. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-25T20:13:58.000000Z K 7 svn:log V 38 Add regression tests for '-L' option. END K 10 svn:author V 3 ups K 8 svn:date V 27 2005-08-25T20:33:43.000000Z K 7 svn:log V 79 NMI handler should not enable interrupts. Tested by: kris@ MFC after: 3 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-08-25T21:06:56.000000Z K 7 svn:log V 261 - Remove non-bus-dma code. - Remove form feed characters. - Fixup style of function declarations. - Assume that an mbuf cluster is big enough to hold an ethernet frame. (This should really be using m_defrag(), but this diff is just simple changes for now.) END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-08-25T23:11:10.000000Z K 7 svn:log V 74 Clarify the confusion over Farallon cards taht differ only by arrow color END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-08-26T01:00:19.000000Z K 7 svn:log V 276 For FreeBSD 4 binaries, when trying to read from a device that does not exsist, do not have ioctl return an error, but instead set -1 in the data returned to the user. This allows the HP bios flash utilities to work without requiring changes to their code. Reviewed by: jhb END K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-08-26T01:02:38.000000Z K 7 svn:log V 252 Don't and/remove a route to our assigned IP through 127.0.0.1. It serves no apparent purpose (we commented this out ages ago in the ISC scripts) and cases problems with some ADSL setups. Reported by: Rostislav Krasny END K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-08-26T01:07:51.000000Z K 7 svn:log V 153 Use a more robust, grep-free command to get the interface of the current default route. Submitted by: Rostislav Krasny END K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-08-26T01:25:59.000000Z K 7 svn:log V 164 In read_string(), when the last character was a backslash, unincrement the output index instead of keeping what ever trash was in the buffer. Reported by: iedowse END K 10 svn:author V 3 kan K 8 svn:date V 27 2005-08-26T02:21:02.000000Z K 7 svn:log V 34 Unbreak compiles with ACPI_DEBUG. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2005-08-26T04:06:17.000000Z K 7 svn:log V 199 Support ifconfig_ variables containing quoted variables with spaces in them by wrapping the ifconfig command with eval "...". For example, this allows: ifconfig_iwi0="DHCP ssid 'foo bar baz'" END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-08-26T05:18:46.000000Z K 7 svn:log V 916 Remedy the following three problems: 1. The amd64 pmap, unlike the i386 pmap, maintains a reference count for each page directory (PD) page. However, in the transformation of the i386 pmap into the amd64 pmap, operations, such as pmap_copy() and pmap_object_init_pt(), that create 2MB "superpage" mappings by setting the PG_PS bit in a PD entry were not modified to adjust the underlying PD page's reference count. Consequently, superpage mappings could disappear prematurely. 2. pmap_object_init_pt() could crash or corrupt memory if either the virtual address range being mapped crosses a 1GB boundary in the virtual address space or nothing is mapped in the 1GB area. 3. When pmap_allocpte() destroys a 2MB "superpage" mapping it does not reduce the pmap's resident count accordingly. It should. (This bug is inherited from i386.) Discussed with: peter Reviewed by: tegge END K 10 svn:author V 2 ps K 8 svn:date V 27 2005-08-26T08:15:57.000000Z K 7 svn:log V 42 Unbreak tail -f on non-local filesystems. END K 10 svn:author V 3 mux K 8 svn:date V 27 2005-08-26T09:22:34.000000Z K 7 svn:log V 216 MFC r1.241: date: 2005/07/29 22:40:06; author: mux; state: Exp; lines: +1 -0 Add a new PCI id for fxp(4) cards found on ICH7-based systems. Submitted by: Martin Nilsson PR: kern/84559 END K 10 svn:author V 3 tjr K 8 svn:date V 27 2005-08-26T10:05:59.000000Z K 7 svn:log V 195 Fix a one byte off error which causes "less" to crash if you view a large file, jump to the end, scroll backwards with "b" and try to search backwards afterwards. Submitted by: Matthias Scheler END K 10 svn:author V 8 keramida K 8 svn:date V 27 2005-08-26T10:25:44.000000Z K 7 svn:log V 412 MFC revision 1.24: % Add a small paragraph that describes how the current environment % settings can be displayed, near the end of the DESCRIPTION section, % immediately after the paragraph that describes how they can be set. % % Add a reference to printenv(1) too (and the ``printenv'' csh builtin). % % Submitted by: Gary W. Swearingen % PR: docs/85008 Approved by: re (hrs) END K 10 svn:author V 8 keramida K 8 svn:date V 27 2005-08-26T10:27:02.000000Z K 7 svn:log V 389 MFC revision 1.24: % Add a small paragraph that describes how the current environment % settings can be displayed, near the end of the DESCRIPTION section, % immediately after the paragraph that describes how they can be set. % % Add a reference to printenv(1) too (and the ``printenv'' csh builtin). % % Submitted by: Gary W. Swearingen % PR: docs/85008 END K 10 svn:author V 2 bz K 8 svn:date V 27 2005-08-26T10:46:20.000000Z K 7 svn:log V 293 MFC rev. 1.109: * Solve "No PHY found" problem for more Yukon Lite variants. * Catch a bus attach error. * Improve locking. (missing in original commit message but was not worth a forced commit): * put interrupt moderation messages under bootverbose Approved by: re (kensmith) END K 10 svn:author V 3 des K 8 svn:date V 27 2005-08-26T11:16:39.000000Z K 7 svn:log V 450 Two minor optimizations of fdalloc(): - if minfd < fd_freefile (as is most often the case, since minfd is usually 0), set it to fd_freefile. - remove a call to fd_first_free() which duplicates work already done by fdused(). This change results in a small but measurable speedup for processes with large numbers (several thousands) of open files. PR: kern/85176 Submitted by: Divacky Roman MFC after: 3 weeks END K 10 svn:author V 8 takawata K 8 svn:date V 27 2005-08-26T11:35:10.000000Z K 7 svn:log V 45 Add NTFS labeling function. Reviewed by:pjd END K 10 svn:author V 8 takawata K 8 svn:date V 27 2005-08-26T11:39:38.000000Z K 7 svn:log V 17 Update Document. END K 10 svn:author V 8 takawata K 8 svn:date V 27 2005-08-26T12:48:34.000000Z K 7 svn:log V 59 Oops, I forget to add item in files . Pointed out by: pjd END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-08-26T12:50:08.000000Z K 7 svn:log V 49 Verify offset before reading. MFC after: 2 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-08-26T13:42:04.000000Z K 7 svn:log V 307 Remove the el(4) driver for 3Com 3c501 ISA NICs from HEAD as threatened earlier as no one has stepped up to test recent changes to the driver. Oddly, the module was actually turned on on ia64 though I'm fairly certain that no ia64 machine has ever had or will ever have an ISA slot. Axe borrowed from: phk END