]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoSync with HEAD.
bms [Wed, 21 Mar 2007 00:45:13 +0000 (00:45 +0000)]
Sync with HEAD.

17 years agoMFC rev 1.53:
bms [Tue, 20 Mar 2007 23:24:25 +0000 (23:24 +0000)]
MFC rev 1.53:
  Remove obsolete polling members from documentation for struct ifnet.

Submitted by: Aniruddha Bohra

17 years agoMFC: Don't free the buffer with the sysctl value before printing it.
brian [Tue, 20 Mar 2007 23:15:45 +0000 (23:15 +0000)]
MFC: Don't free the buffer with the sysctl value before printing it.

17 years agoMFC: r1.18: Allow overriding the HOME environment as per the man page.
will [Tue, 20 Mar 2007 20:22:18 +0000 (20:22 +0000)]
MFC: r1.18: Allow overriding the HOME environment as per the man page.

17 years agoMFC:
bms [Mon, 19 Mar 2007 22:57:58 +0000 (22:57 +0000)]
MFC:
  In regular forwarding path, reject packets destined for 169.254.0.0/16
  link-local addresses. See RFC 3927 section 2.7.

  Revision  Changes    Path
  1.96      +1 -1      src/sys/netinet/in.c
  1.324     +6 -0      src/sys/netinet/ip_input.c

17 years agoMFC:
brueffer [Mon, 19 Mar 2007 21:42:39 +0000 (21:42 +0000)]
MFC:

- Add cxgb(4) entry, remove stale wx(4) entry
- (gigabit|fast) ethernet -> (Gigabit|Fast) Ethernet

Approved by: rwatson (mentor)

17 years agoMFC: Default output to stdout as the man page suggests.
brian [Mon, 19 Mar 2007 19:16:49 +0000 (19:16 +0000)]
MFC: Default output to stdout as the man page suggests.
     Only go through our cylinder group and inode info when we need to.

17 years agoMFC: Reindent main()
brian [Mon, 19 Mar 2007 19:15:42 +0000 (19:15 +0000)]
MFC: Reindent main()

17 years agoMFC: Account for di_blocks allocations when IN_SPACECOUNTED is set in an
brian [Mon, 19 Mar 2007 18:56:40 +0000 (18:56 +0000)]
MFC: Account for di_blocks allocations when IN_SPACECOUNTED is set in an
     inode's i_flag.  This fixes an eventual df/du discrepency resulting
     from fs_pendingblocks being reduced to less than zero.

17 years agoMFC:
brueffer [Mon, 19 Mar 2007 16:56:48 +0000 (16:56 +0000)]
MFC:

my(4) doesn't need miibus(4).

Approved by: rwatson (mentor)

17 years agoMFC: Various changes to sync this manpage to HEAD.
bmah [Mon, 19 Mar 2007 16:22:56 +0000 (16:22 +0000)]
MFC:  Various changes to sync this manpage to HEAD.

cxgb.4 1.4 -> 1.7

Discussed with: brueffer

17 years agoMFC: npe(4).
bmah [Mon, 19 Mar 2007 15:26:24 +0000 (15:26 +0000)]
MFC:  npe(4).

New release note:  freebsd-update(8) SMP kernel update fix.

17 years agoMFC if_ste.c rev 1.98, if_stereg.h rev 1.22 to RELENG_6.
yongari [Mon, 19 Mar 2007 06:58:47 +0000 (06:58 +0000)]
MFC if_ste.c rev 1.98, if_stereg.h rev 1.22 to RELENG_6.
  Add new ST201 PCI id.

17 years agoMFC: Change mtx's to use the formulated name as type so witness does not
sam [Mon, 19 Mar 2007 05:34:30 +0000 (05:34 +0000)]
MFC: Change mtx's to use the formulated name as type so witness does not
     complain on nested tx q lock acquisitions when processing the cab q.

17 years agoMFC 1.163: Kick tx after processing rx'd frames
sam [Mon, 19 Mar 2007 05:32:04 +0000 (05:32 +0000)]
MFC 1.163: Kick tx after processing rx'd frames

Submitted by: "J.R. Oldroyd" <jr@opal.com>

17 years agoMFC 1.46: correct conversions between TU and ms/ticks
sam [Mon, 19 Mar 2007 05:27:18 +0000 (05:27 +0000)]
MFC 1.46: correct conversions between TU and ms/ticks

Submitted by: sephe

17 years agoMFC: rev 1.86 and 1.87
simokawa [Mon, 19 Mar 2007 05:13:21 +0000 (05:13 +0000)]
MFC: rev 1.86 and 1.87
Support MAXPHYS up to 512KB

17 years agoMFC: rev 1.57
simokawa [Mon, 19 Mar 2007 05:11:07 +0000 (05:11 +0000)]
MFC: rev 1.57
Don't mess with PCIM_CMD_SERRESPEN and PCIM_CMD_PERRESPEN.
This will fix 'NMI RAM parity error' while booting on some machines.

PR: kern/95077

17 years agoThe driver would hang during attach on RELENG_6 - by "fixing" the issue
kmacy [Mon, 19 Mar 2007 04:50:15 +0000 (04:50 +0000)]
The driver would hang during attach on RELENG_6 - by "fixing" the issue
by adding debug print statements I've come to the conclusion that too little
time is being allowed to pass between register updates. Increasing the DELAY
interval by a constant interval eliminates this issue on my hardware.

17 years agoNew errata: EN-07:05.freebsd-update.
bmah [Sun, 18 Mar 2007 19:42:24 +0000 (19:42 +0000)]
New errata:  EN-07:05.freebsd-update.

17 years agoMFC rev 1.9: quiet down the errors when all fs are read-only
njl [Sun, 18 Mar 2007 05:34:47 +0000 (05:34 +0000)]
MFC rev 1.9: quiet down the errors when all fs are read-only

17 years agomove inline function before use so that -O works
kmacy [Sat, 17 Mar 2007 05:25:28 +0000 (05:25 +0000)]
move inline function before use so that -O works

17 years agoMFC: r1.67: Make error messages regarding -t and -l consistent.
will [Sat, 17 Mar 2007 02:10:14 +0000 (02:10 +0000)]
MFC: r1.67: Make error messages regarding -t and -l consistent.

17 years agoMFC: r1.316, accept valid RST packet when delayed ack is in effect.
qingli [Fri, 16 Mar 2007 22:04:25 +0000 (22:04 +0000)]
MFC: r1.316, accept valid RST packet when delayed ack is in effect.

17 years agoMFC rev. 1.16: fix prototypes.
maxim [Fri, 16 Mar 2007 21:35:13 +0000 (21:35 +0000)]
MFC rev. 1.16: fix prototypes.

PR: docs/110012

17 years agoMFC rev. 1.71, 1.74:
yar [Fri, 16 Mar 2007 15:34:09 +0000 (15:34 +0000)]
MFC rev. 1.71, 1.74:

Prepend ${_chroot} to pathnames where appropriate,
and do that properly.

17 years agoMFC:
ariff [Fri, 16 Mar 2007 13:55:34 +0000 (13:55 +0000)]
MFC:

Add AC97 inverted external amplifier quirk for ASUS A6R laptop.

PR: kern/110244

17 years agoMFC:
brueffer [Thu, 15 Mar 2007 13:46:08 +0000 (13:46 +0000)]
MFC:

New release notes: vge(4) altq support, cxgb(4) added.

17 years agoMFC:
brueffer [Thu, 15 Mar 2007 09:17:01 +0000 (09:17 +0000)]
MFC:

Autogenerate the hardware list for cxgb(4).

17 years agoMFC fixes to regexp(3) from OpenBSD, this includes:
delphij [Thu, 15 Mar 2007 05:51:24 +0000 (05:51 +0000)]
MFC fixes to regexp(3) from OpenBSD, this includes:
engine.c: 1.19+1.20
grot/tests: 1.3

17 years agohook cxgbtool into buildworld
kmacy [Thu, 15 Mar 2007 04:05:33 +0000 (04:05 +0000)]
hook cxgbtool into buildworld
update include names

17 years agoAdd cxgb man page to build
kmacy [Thu, 15 Mar 2007 03:52:23 +0000 (03:52 +0000)]
Add cxgb man page to build

17 years agoadd cxgb management tool cxgbtool
kmacy [Thu, 15 Mar 2007 03:21:32 +0000 (03:21 +0000)]
add cxgb management tool cxgbtool

17 years agohook cxgb into LINT build
kmacy [Thu, 15 Mar 2007 03:18:59 +0000 (03:18 +0000)]
hook cxgb into LINT build

17 years agohook cxgb into modules build
kmacy [Thu, 15 Mar 2007 03:13:49 +0000 (03:13 +0000)]
hook cxgb into modules build

17 years agoMFC Chelsio T3 10 Gigabit Ethernet support
kmacy [Thu, 15 Mar 2007 03:06:32 +0000 (03:06 +0000)]
MFC Chelsio T3 10 Gigabit Ethernet support

Don't hook into build just

17 years agoMFC: 1.163
rodrigc [Thu, 15 Mar 2007 00:11:56 +0000 (00:11 +0000)]
MFC: 1.163
  Add "force" to ext2_ops, to match what was in the old mount_ext2fs binary.

  Reported by:    Ivan Voras <ivoras fer hr>

17 years agoOnly enter the debugger on a Fatal op if this is a debug build of the
njl [Wed, 14 Mar 2007 19:50:07 +0000 (19:50 +0000)]
Only enter the debugger on a Fatal op if this is a debug build of the
acpi module.  Also clean up print of args a little.

17 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Wed, 14 Mar 2007 18:20:37 +0000 (18:20 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

17 years agoMFC:
bms [Wed, 14 Mar 2007 16:44:31 +0000 (16:44 +0000)]
MFC:
  AF_LINK support for getnameinfo().

Obtained from: NetBSD

17 years agoMark addr2ascii() and ascii2addr() clearly as being deprecated.
bms [Wed, 14 Mar 2007 16:31:16 +0000 (16:31 +0000)]
Mark addr2ascii() and ascii2addr() clearly as being deprecated.

17 years agoMFC:
yar [Wed, 14 Mar 2007 14:19:42 +0000 (14:19 +0000)]
MFC:

  As suggested more than once in the lists, drop -M from flags to mfs
  for /tmp and /var.  This makes the memory discs swap-backed instead
  of malloc-backed.  A swap-backed memory disc should not be worse
  than a malloc-backed one in any scenario because it will start
  touching swap only when needed.  OTOH, a malloc-backed disc can
  starve limited kernel resources and evenually crash the system.

  Reflect the change in the rc.conf(5) manpage.  Also stop telling
  lies there about softupdates: it does not waste disc space, it
  just can delay its freeing.

src/etc/defaults/rc.conf 1.306
src/share/man/man5/rc.conf.5 1.317

17 years agoMFC rev 1.4:
bms [Wed, 14 Mar 2007 14:10:22 +0000 (14:10 +0000)]
MFC rev 1.4:
  Update host-mode multicast group information output.
   Display IPv4 and IPv6 memberships separately.
    Obey the MK_INET6_SUPPORT flag.
   Display link-layer memberships.
    Use addr2ascii() to correctly print non-IEEE 802 sockaddr_dl instances.
   Eliminate redundant switch..case blocks.
   Update copyright.
   Misc style changes.

17 years agoMFC rev 1.203:
bms [Tue, 13 Mar 2007 22:12:23 +0000 (22:12 +0000)]
MFC rev 1.203:
  Fix IP_SENDSRCADDR semantics.

   * To use this option with a UDP socket, it must be bound to a local port,
     and INADDR_ANY, to disallow possible collisions with existing udp inpcbs
     bound to the same port on other interfaces at send time.

   * If the socket is bound to INADDR_ANY, specifying IP_SENDSRCADDR with
     INADDR_ANY will be rejected as it is ambiguous.

   * If the socket is bound to an address other than INADDR_ANY, specifying
     IP_SENDSRCADDR with INADDR_ANY will be disallowed by in_pcbbind_setup().

Reviewed by: silence on -net
Tested with: src/tools/regression/netinet/ipbroadcast

17 years agoMFC rev 1.159:
bms [Tue, 13 Mar 2007 21:59:20 +0000 (21:59 +0000)]
MFC rev 1.159:
  Comply with RFC 3927, by forcing ARP replies which contain a source
  address within the link-local IPv4 prefix 169.254.0.0/16, to be
  broadcast at link layer.

Reviewed by: fenner

17 years agoMFC rev 1.38:
bms [Tue, 13 Mar 2007 21:56:18 +0000 (21:56 +0000)]
MFC rev 1.38:
  Document SO_ACCEPTCONN.

Submitted by: Vlad GALU (with changes)

17 years agoMFC mount_nfs.c rev. 1.72, mount_nfs.8 rev. 1.47:
thomas [Tue, 13 Mar 2007 20:28:24 +0000 (20:28 +0000)]
MFC mount_nfs.c rev. 1.72, mount_nfs.8 rev. 1.47:
Add "fg" option as antonym to "bg"; add "hard" option as antonym to "soft".
This is for better compatibility with other environments (Linux, Solaris,
HP-UX, AIX and Tru64 support these options).

PR: bin/109924

17 years agoMerge Peter's fix from rev 1.14 back to RELENG_6. This line of code
joerg [Mon, 12 Mar 2007 21:41:01 +0000 (21:41 +0000)]
Merge Peter's fix from rev 1.14 back to RELENG_6.  This line of code
appears to have been accidentally committed in rev 1.11, and was never
meant to go into any official code.

17 years agoMFC: Don't reject file descriptors higher than FD_SETSIZE when using
jhb [Mon, 12 Mar 2007 19:51:57 +0000 (19:51 +0000)]
MFC: Don't reject file descriptors higher than FD_SETSIZE when using
kevent(2).

17 years agoMFC: Add a simple device driver to "eat" any I/O APICs that show up as PCI
jhb [Mon, 12 Mar 2007 19:50:29 +0000 (19:50 +0000)]
MFC: Add a simple device driver to "eat" any I/O APICs that show up as PCI
devices.

17 years agoMFC: Don't block on the socket zone limit during the socket()
ru [Mon, 12 Mar 2007 12:13:53 +0000 (12:13 +0000)]
MFC: Don't block on the socket zone limit during the socket()
syscall which can lock up a system otherwise; instead, return
ENOBUFS as documented, which matches the FreeBSD 4.x behavior.

17 years agoMerge rev 1.16 and 1.18 to fix I/O problems under high load. Thanks to
scottl [Mon, 12 Mar 2007 07:43:07 +0000 (07:43 +0000)]
Merge rev 1.16 and 1.18 to fix I/O problems under high load.  Thanks to
Areca for working on this.

Submitted by: Erich Chen

17 years agoUse 2K Login firmware for 2300s.
mjacob [Mon, 12 Mar 2007 05:28:29 +0000 (05:28 +0000)]
Use 2K Login firmware for 2300s.

17 years agoMFC (revision 1.31)
ariff [Mon, 12 Mar 2007 02:03:25 +0000 (02:03 +0000)]
MFC (revision 1.31)

Fix long standing multi playback/recording issues, caused by
excessive interrupt clock timer reset, screwing interrupt generation
for already active channels. Track moving DMA pointer and call buffer
interrupt on each blocksize boundary.

PR: kern/109791

17 years agoMFC 1.32: Support entries up to 4G.
kientzle [Sun, 11 Mar 2007 20:19:45 +0000 (20:19 +0000)]
MFC 1.32: Support entries up to 4G.

17 years agoMFC 1.22: Re-enable archiving of ACLs
kientzle [Sun, 11 Mar 2007 19:46:56 +0000 (19:46 +0000)]
MFC 1.22:  Re-enable archiving of ACLs

17 years agoMFC: Don't hard-code the nfs root socket as SOCK_DGRAM. This is currently
kris [Sun, 11 Mar 2007 19:44:52 +0000 (19:44 +0000)]
MFC: Don't hard-code the nfs root socket as SOCK_DGRAM.  This is currently
a NOP in 6.x but this may change if further code is merged from 7.0.

17 years agomdmfs.c: MFC revs 1.29-1.31
matteo [Sun, 11 Mar 2007 18:24:22 +0000 (18:24 +0000)]
mdmfs.c: MFC revs 1.29-1.31
mdmfs.8: MFC revs 1.27-1.29

PR: bin/66763 103501 kern/109863

17 years agoMFC src/lib/libc/Makefile (1.69) src/lib/libc/rpc/clnt_dg.c (1.19):
simon [Sun, 11 Mar 2007 10:15:49 +0000 (10:15 +0000)]
MFC src/lib/libc/Makefile (1.69) src/lib/libc/rpc/clnt_dg.c (1.19):

Disable RPC exponential back-off for FreeBSD.org systems (IE. hidden
behind _FREEFALL_CONFIG).  This is done mainly to make NIS even more
resistant to packet loss.

This is not enabled by default for "normal" FreeBSD since it might cause
the server providing the RPC service to be hit heavily with RPC traffic
in case of problems.  freefall.FreeBSD.org and hub.FreeBSD.org have been
running with a patch similar to this for a couple of weeks.

MFC after: 1 week
Discussed with: peter

17 years agoMFC: 1.38: Fix interface output being stuck under low memory conditions.
ru [Sun, 11 Mar 2007 10:11:16 +0000 (10:11 +0000)]
MFC: 1.38: Fix interface output being stuck under low memory conditions.

17 years agoMFC 1.50:
simon [Sun, 11 Mar 2007 09:59:51 +0000 (09:59 +0000)]
MFC 1.50:

- Bump _yplib_timeout limit from 10 to 20 seconds to better handle
  packet loss when talking to a NIS server.
- Set 1 second retry timeout to further realistically handle UDP
  packet loss for yp_next packet bursts.  If the packet hasn't come
  back within 1 second its rather unlikely to come back at all.  There
  is still back-off mechanism in RPC so if there is another reason
  than packet loss for the lack of response within 1 second, the NIS
  server will not be totally bombarded with requests.

This reduces the risk of NIS failing with:

yp_next: clnt_call: RPC: Timed out

considerably.  This is mainly a problem if you have larger NIS maps
(like at FreeBSD.org) since enumerations of the lists will cause a UDP
packet bursts where a few packets being lost once in a while do
happen.

Discussed with: peter
Problem mainly diagnosed by:    peter

17 years agofeedback from RELENG_5 port
mjacob [Sun, 11 Mar 2007 01:59:44 +0000 (01:59 +0000)]
feedback from RELENG_5 port

17 years agoMFC header/license cleanup. No effect on code.
mjacob [Sun, 11 Mar 2007 01:51:20 +0000 (01:51 +0000)]
MFC header/license cleanup. No effect on code.

17 years agoMFC from revision 1.165
mckusick [Sun, 11 Mar 2007 00:56:17 +0000 (00:56 +0000)]
MFC from revision 1.165

17 years agoMFC rev. 1.100:
yar [Sat, 10 Mar 2007 14:29:31 +0000 (14:29 +0000)]
MFC rev. 1.100:

Typo fix: preceed -> precede.

17 years agoMFC rev. 1.9:
yar [Sat, 10 Mar 2007 14:20:34 +0000 (14:20 +0000)]
MFC rev. 1.9:

Fix a typo in a warning message.

17 years agoMFC rev. 1.9-1.11:
yar [Sat, 10 Mar 2007 14:17:27 +0000 (14:17 +0000)]
MFC rev. 1.9-1.11:

Better handling for unset or null $hostname, which can appear
in a system just installed, or configured via DHCP.

17 years agoMFC rev. 1.26:
yar [Sat, 10 Mar 2007 14:07:01 +0000 (14:07 +0000)]
MFC rev. 1.26:

pkill(1) and pgrep(1) have been moved to /bin so that they are
available to rc.d scripts early in the boot sequence.

17 years agoMFC rev. 1.10:
yar [Sat, 10 Mar 2007 14:04:01 +0000 (14:04 +0000)]
MFC rev. 1.10:

Improve rc.d conformance:
- don't play a needless trick with prestart, just use start method;
- provide no-op stop method so that we don't get bogus "abi not running" error.

17 years agoMFC rev. 1.18:
yar [Sat, 10 Mar 2007 14:00:51 +0000 (14:00 +0000)]
MFC rev. 1.18:

Syscons cannot be stopped, so provide a no-op stop method.
The default stop method from rc.subr isn't suited for this
case and produces a bogus warning: "syscons not running".

17 years agoMFC rev. 1.73: Allow for interpreted scripts using env(1)
yar [Sat, 10 Mar 2007 13:53:04 +0000 (13:53 +0000)]
MFC rev. 1.73: Allow for interpreted scripts using env(1)
in their shebang lines.

PR: bin/100287

17 years agoMFC: set the antenna switch when fixing the tx antenna using the
sam [Sat, 10 Mar 2007 00:53:09 +0000 (00:53 +0000)]
MFC: set the antenna switch when fixing the tx antenna using the
     dev.ath.X.txantenna sysctl

17 years agoMFC 1.162: don't call ath_reset when processing sysctl's before the
sam [Sat, 10 Mar 2007 00:51:49 +0000 (00:51 +0000)]
MFC 1.162: don't call ath_reset when processing sysctl's before the
   device is marked running

17 years agoMFC 1.44: remove local def for IEEE80211_IS_CHAN_PASSIVE now that it's defined
sam [Sat, 10 Mar 2007 00:48:28 +0000 (00:48 +0000)]
MFC 1.44: remove local def for IEEE80211_IS_CHAN_PASSIVE now that it's defined

17 years agosync whitepsace
sam [Sat, 10 Mar 2007 00:46:21 +0000 (00:46 +0000)]
sync whitepsace

17 years agoMFC: Correct several issues with rate set negotiation
sam [Sat, 10 Mar 2007 00:33:47 +0000 (00:33 +0000)]
MFC: Correct several issues with rate set negotiation

Submitted by: Sepherosa Ziehau (w/ modifications)
Obtained from: DragonFly

17 years agoMFC: Fix potential node refcnt leak
sam [Sat, 10 Mar 2007 00:31:03 +0000 (00:31 +0000)]
MFC: Fix potential node refcnt leak

Submitted by: Sepherosa Ziehau
Obtained from: DragonFly

17 years agoMFC 1.7: add IEEE80211_IS_CHAN_PASSIVE
sam [Sat, 10 Mar 2007 00:28:43 +0000 (00:28 +0000)]
MFC 1.7: add IEEE80211_IS_CHAN_PASSIVE

17 years agostart of arm-specific man pages
sam [Sat, 10 Mar 2007 00:26:12 +0000 (00:26 +0000)]
start of arm-specific man pages

17 years agoMFC: add ath hal rules
sam [Sat, 10 Mar 2007 00:19:24 +0000 (00:19 +0000)]
MFC: add ath hal rules

17 years agoMFC 1.10: elaborate on stepping names
sam [Sat, 10 Mar 2007 00:16:52 +0000 (00:16 +0000)]
MFC 1.10: elaborate on stepping names

17 years agoMFC: ath(4) HAL 0.9.20.3, 802.11 900 MHz and quarter/half channel
bmah [Fri, 9 Mar 2007 23:52:39 +0000 (23:52 +0000)]
MFC: ath(4) HAL 0.9.20.3, 802.11 900 MHz and quarter/half channel
support, if_bridge(4) RSTP, ng_deflate(4), ng_pred1(4), unionfs
update, wpa_passphrase(8).

New release notes:  IPv6 over gif(4) fix.

17 years agoMFC
kib [Fri, 9 Mar 2007 13:54:26 +0000 (13:54 +0000)]
MFC
rev. 1.201 src/sys/kern/kern_prot.c
rev. 1.334 src/sys/kern/vfs_export.c
rev. 1.95  src/sys/nfsserver/nfs_srvsock.c
rev. 1.137 src/sys/nfsserver/nfs_srvsubs.c
rev. 1.53  src/sys/sys/ucred.h
rev. 1.273 src/sys/ufs/ufs/ufs_vnops.c

Use the refcount API to manage the reference count for user credentials
rather than using pool mutexes.

MFC changes:
The cr_mtxp field of struct ucred is preserved as padding to keep structure
size intact. nfs_srvsock.c change is nullified by rev. 1.96, that was MFCed
as rev. 1.94.2.2.

OKed by: jhb
LOR: 187

17 years agoMFC:
jhb [Thu, 8 Mar 2007 16:23:04 +0000 (16:23 +0000)]
MFC:
- Flesh out list of UART simple comms programming interfaces.
- Add list of PIC base peripheral programming interfaces.
- Add VPD capability register offsets.

17 years agoMFC rev 1.270:
bms [Thu, 8 Mar 2007 13:19:03 +0000 (13:19 +0000)]
MFC rev 1.270:
  Fix undirected broadcast sends for the case where SO_DONTROUTE has also
  been set at the socket layer, in our somewhat convoluted IPv4 source
  selection logic in ip_output().

  IP_ONESBCAST is actually a special case of SO_DONTROUTE, as 255.255.255.255
  must always be delivered on a local link with a TTL of 1.

  If IP_ONESBCAST has been set at the socket layer, also perform destination
  interface lookup for point-to-point interfaces based on the destination
  address of the link; previously it was not possible to use the option with
  such interfaces; also, the destination/broadcast address fields map to the
  same field within struct ifnet, which doesn't help matters.

Reviewed by: andre

17 years agoMFC rev 1.266:
bms [Thu, 8 Mar 2007 13:15:27 +0000 (13:15 +0000)]
MFC rev 1.266:
  Fix a bug in if_findmulti(), whereby it would not find (and thus delete)
  a link-layer multicast group membership.
  Such memberships are needed in order to support protocols such as
  IS-IS without putting the interface into PROMISC or ALLMULTI modes.
  sa_equal() is not OK for comparing sockaddr_dl as it has deeper structure
  than a simple byte array, so add sa_dl_equal() and use that instead.

Reviewed by: rwatson
Verified with: /usr/sbin/mtest
Bug found by: Jouke Witteveen
MFC after: 2 weeks

17 years agoMFC:
syrinx [Thu, 8 Mar 2007 10:27:36 +0000 (10:27 +0000)]
MFC:
    etc/snmpd.config, Revision 1.8

Add a (disabled) configuration line to enable snmp_bridge(3) module.

Approved by: bz (mentor)

17 years agoMFC:
syrinx [Thu, 8 Mar 2007 09:29:01 +0000 (09:29 +0000)]
MFC:
    src/usr.sbin/bsnmpd/modules/Makefile, Revision 1.13

Connect the snmp_bridge(3) module to the build.

Approved by: bz (mentor)

17 years agoMFC rev. 1.5: Fix problems resulting from SMP kernels (mis-)identifying
cperciva [Thu, 8 Mar 2007 05:43:12 +0000 (05:43 +0000)]
MFC rev. 1.5: Fix problems resulting from SMP kernels (mis-)identifying
themselves as "SMP-GENERIC" (i386) or "GENERIC" (amd64).

17 years agoUpdate isp(4) man page to match driver in RELENG_6.
mjacob [Thu, 8 Mar 2007 05:38:23 +0000 (05:38 +0000)]
Update isp(4) man page to match driver in RELENG_6.

17 years agoSynchronize with -current as of this date. There is a lot of source
mjacob [Thu, 8 Mar 2007 05:35:08 +0000 (05:35 +0000)]
Synchronize with -current as of this date. There is a lot of source
churn, but it's there to make diffs in the future easier. There isn't
much substantive change that springs to mind.

17 years agoMFC 4 Gb support for QLogic cards.
mjacob [Thu, 8 Mar 2007 05:32:12 +0000 (05:32 +0000)]
MFC 4 Gb support for QLogic cards.

17 years agoMFC 4 Gb support + rewrite of loop/fabric state machine code.
mjacob [Thu, 8 Mar 2007 05:31:40 +0000 (05:31 +0000)]
MFC 4 Gb support + rewrite of loop/fabric state machine code.

17 years agoMFC xpt_rescan functionality.
mjacob [Thu, 8 Mar 2007 05:30:26 +0000 (05:30 +0000)]
MFC xpt_rescan functionality.

17 years agoMFC 1.53: Check the return value from rad_cvt_ipv6prefix().
ume [Thu, 8 Mar 2007 05:23:30 +0000 (05:23 +0000)]
MFC 1.53: Check the return value from rad_cvt_ipv6prefix().

17 years agoMFC:
trhodes [Thu, 8 Mar 2007 03:01:00 +0000 (03:01 +0000)]
MFC:

Add a 3rd entry in the cache, which keeps the end position
from just before extending a file.  This has the desired effect
of keeping the write speed constant.  And yes, that helps a lot
copying large files always at full speed now, and I have seen
improvements using benchmarks/bonnie.

Stolen from: NetBSD
Reviewed by: bde

17 years agoMFC:
syrinx [Wed, 7 Mar 2007 20:16:31 +0000 (20:16 +0000)]
MFC:

   src/usr.sbin/bsnmpd/modules/snmp_bridge/BEGEMOT-BRIDGE-MIB.txt, Revision 1.2
   src/usr.sbin/bsnmpd/modules/snmp_bridge/BRIDGE-MIB.txt, Revision 1.1
   src/usr.sbin/bsnmpd/modules/snmp_bridge/Makefile, Revision 1.2
   src/usr.sbin/bsnmpd/modules/snmp_bridge/RSTP-MIB.txt, Revision 1.1
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_addrs.c, Revision 1.3
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c, Revision 1.6
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_pf.c, Revision 1.2
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c, Revision 1.5
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_snmp.c, Revision 1.3
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_snmp.h, Revision 1.4
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c, Revision 1.6
   src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_tree.def, Revision 1.2
   src/usr.sbin/bsnmpd/modules/snmp_bridge/snmp_bridge.3, Revision 1.2

Bring in a SNMP module to support monitoring if_bridge(4) interfaces
via bsnmpd(1). The module implements IETF BRIDGE-MIB and RSTP-MIB as defined in
RFC4188 and RFC4318 and a private BEGEMOT-BRIDGE-MIB.

Sponsored by: Google Summer of Code 2006
Approved by: bz (mentor)

17 years agoNew errata: EN-07:03.rc.d_jail.
bmah [Wed, 7 Mar 2007 19:38:21 +0000 (19:38 +0000)]
New errata:  EN-07:03.rc.d_jail.

Updated errata:  IPv6 over gif(4) issue now described by
EN-07:02.net.

17 years agoTo make sure build of newer RELENG_6 on older ones work,
syrinx [Wed, 7 Mar 2007 18:45:14 +0000 (18:45 +0000)]
To make sure build of newer RELENG_6 on older ones work,
advance __FreeBSD_version check for gensnmptree in the
list of bootstrap-tools.
This is needed for the upcoming MFC of snmp_bridge module,
which makes use of new features of gensnmptree.

Approved by: bz (mentor)

17 years agoMFC:
syrinx [Wed, 7 Mar 2007 16:31:47 +0000 (16:31 +0000)]
MFC:
    src/contrib/bsnmp/gensnmptree/gensnmptree.1, Revision 1.1.1.7
    src/contrib/bsnmp/gensnmptree/gensnmptree.c, Revision 1.1.1.11
    src/contrib/bsnmp/gensnmpdef/gensnmpdef.1, Revision 1.1.1.5
    src/contrib/bsnmp/gensnmpdef/gensnmpdef.c, Revision 1.1.1.3

Vendor patch: add support for the BITS construct and enumerations in
both gensnmpdef and gensnmptree. Add include and typedef directives to
gensnmptree.

Approved by: bz (mentor)
OKed by: harti