121278 Commits

Author SHA1 Message Date
sam
340fd516ec MFC 1.44: remove local def for IEEE80211_IS_CHAN_PASSIVE now that it's defined 2007-03-10 00:48:28 +00:00
sam
82b543dc2d sync whitepsace 2007-03-10 00:46:21 +00:00
sam
03123b2cb5 MFC: Correct several issues with rate set negotiation
Submitted by:	Sepherosa Ziehau (w/ modifications)
Obtained from:	DragonFly
2007-03-10 00:33:47 +00:00
sam
87823eabb6 MFC: Fix potential node refcnt leak
Submitted by:	Sepherosa Ziehau
Obtained from:	DragonFly
2007-03-10 00:31:03 +00:00
sam
b900ca9d90 MFC 1.7: add IEEE80211_IS_CHAN_PASSIVE 2007-03-10 00:28:43 +00:00
sam
a1804d0e34 start of arm-specific man pages 2007-03-10 00:26:12 +00:00
sam
8151e24eb2 MFC: add ath hal rules 2007-03-10 00:19:24 +00:00
sam
db7b02c07b MFC 1.10: elaborate on stepping names 2007-03-10 00:16:52 +00:00
bmah
a469c4fb97 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.
2007-03-09 23:52:39 +00:00
kib
2377c12ade 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
2007-03-09 13:54:26 +00:00
jhb
24b0c044ed MFC:
- Flesh out list of UART simple comms programming interfaces.
- Add list of PIC base peripheral programming interfaces.
- Add VPD capability register offsets.
2007-03-08 16:23:04 +00:00
bms
594ef8f3f8 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
2007-03-08 13:19:03 +00:00
bms
f3c32e6087 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
2007-03-08 13:15:27 +00:00
syrinx
a1f49627af MFC:
etc/snmpd.config, Revision 1.8

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

Approved by:	bz (mentor)
2007-03-08 10:27:36 +00:00
syrinx
300b68cee6 MFC:
src/usr.sbin/bsnmpd/modules/Makefile, Revision 1.13

Connect the snmp_bridge(3) module to the build.

Approved by:	bz (mentor)
2007-03-08 09:29:01 +00:00
cperciva
c78bf1c1fc MFC rev. 1.5: Fix problems resulting from SMP kernels (mis-)identifying
themselves as "SMP-GENERIC" (i386) or "GENERIC" (amd64).
2007-03-08 05:43:12 +00:00
mjacob
fb7fec9025 Update isp(4) man page to match driver in RELENG_6. 2007-03-08 05:38:23 +00:00
mjacob
b0363093e9 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.
2007-03-08 05:35:08 +00:00
mjacob
6ab2916c1c MFC 4 Gb support for QLogic cards. 2007-03-08 05:32:12 +00:00
mjacob
6b70b2e395 MFC 4 Gb support + rewrite of loop/fabric state machine code. 2007-03-08 05:31:40 +00:00
mjacob
0d1e5370c4 MFC xpt_rescan functionality. 2007-03-08 05:30:26 +00:00
ume
bfb7c772b9 MFC 1.53: Check the return value from rad_cvt_ipv6prefix(). 2007-03-08 05:23:30 +00:00
trhodes
8fac418a89 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
2007-03-08 03:01:00 +00:00
syrinx
cb7ad0e1fe 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)
2007-03-07 20:16:31 +00:00
bmah
1e2b86ce6f New errata: EN-07:03.rc.d_jail.
Updated errata:  IPv6 over gif(4) issue now described by
EN-07:02.net.
2007-03-07 19:38:21 +00:00
syrinx
cdd00b1197 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)
2007-03-07 18:45:14 +00:00
syrinx
2c56a73385 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
2007-03-07 16:31:47 +00:00
bms
60c8f511ba Fix license. Clause 4 is still required (UCB materiel).
Submitted by:	rwatson
Pointy hat to:	bms
2007-03-07 13:38:11 +00:00
bms
5a0525a4eb MFC rev 1.21:
Document protocol specific actions and return values.
  Use 2-clause FreeBSD license.
2007-03-07 11:09:52 +00:00
remko
bd9ba3e495 MFC 800.loginfail rev 1.8
Only match on log messages containing fail,invalid,
  bad or illegal. This prevents matching on systems that
  have a name that matches the query.

  PR:             conf/107560
  Submitted by:   Christian Laursen <cfsl at pil dot dk>
  MFC after:      3 days
  Approved by:    imp (mentor)

Approved by:	imp (mentor)
2007-03-06 18:29:19 +00:00
remko
add99c57d9 MFC cdboot.s rev 1.17
Fix the cdboot twiddle display.
  I created and tested this with a custom FreeSBIE cd-image.

  PR:             i386/96452
  Submitted by:   Yuichiro Goto <y7goto at gmail dot com>
  MFC after:      3 days
  Approved by:    imp (mentor)

Approved by:	imp (mentor)
2007-03-06 18:28:28 +00:00
remko
72c1fa9616 MFC 310.locate rev 1.7
Move to the preferred syntax for nice (-n) instead
  of the depricated one.

  PR:             conf/108611
  Submitted by:   TAOKA Fumiyoshi <fmysh at iijmio-mail dot jp>
  Approved by:    imp (mentor)

Approved by:	imp (mentor)
2007-03-06 18:27:24 +00:00
thomas
67d43c42e6 MFC rev. 1.47:
(cam_rescan): Do not reference ccb->ccb_h.path in CAM_DEBUG call before
it is initialized; use path instead.
PR: kern/103602
2007-03-06 16:56:50 +00:00
kientzle
a4e950e436 MFC archive_read_extract.c r1.52
Reset umask() during extraction so that mode computations come
out right.  In particular, this fixes the broken "tar -p" option.
2007-03-06 08:03:17 +00:00
bms
3118d31a96 MFC rev 1.59:
Add ELSA XI330 product.  This is rebadged and sold as SMC 2532W-B and
  I/O Data also resells it.  Add an alternative airvast an100 id.

PR:	kern/92323
2007-03-05 12:46:16 +00:00
bms
abafa81715 MFC rev 1.152:
Do not dispatch SIGPIPE from the generic write path for a socket; with
  this patch the code behaves according to the comment on the line above.

  Without this patch, a socket could cause SIGPIPE to be delivered to its
  process, once with SO_NOSIGPIPE set, and twice without.

With this patch, the kernel now passes the sigpipe regression test in
both HEAD and RELENG_6.

PR:		78478 (the bug fix for this PR introduced this bug)
Tested by:	Anton Yuzhaninov
Reviewed by:	jhb
2007-03-05 11:17:31 +00:00
bms
d11017d03a MFC rev 1.33:
Add missing TH_PUSH to the TH_FLAGS enumeration.

Submitted by:	Andre Albsmeier <Andre.Albsmeier-at-siemens.com>
PR:		kern/85203
2007-03-05 10:21:52 +00:00
bms
176d53dfc4 MFC rev 1.60:
In the output path, mask off M_BCAST|M_MCAST so as to prevent incorrect
  addressing if a packet is later re-encapsulated and sent to a
  non-broadcast, non-multicast destination after being received on the
  ng_ksocket input hook.

These mbuf flags should not be set on the mbuf packet header chain until
the data thus sent re-enters ip_output() by way of the pru_sosend callback
anyway.

PR:		106999
Tested by:	ume
Submitted by:	Kevin Lahey
2007-03-04 14:54:02 +00:00
bms
b083fe7338 MFC:
Implement ifnet cloning for tun(4)/tap(4).
  Make devfs cloning a sysctl/tunable which defaults to on.

  If devfs cloning is enabled, only the super-user may create
  tun(4)/tap(4)/vmnet(4) instances. Devfs cloning is still enabled by
  default; it may be disabled from the loader or via sysctl with
  "net.link.tap.devfs_cloning" and "net.link.tun.devfs_cloning".

  Disabling its use affects potentially all tun(4)/tap(4) consumers
  including OpenSSH, OpenVPN and VMware.

  Revision  Changes    Path
  1.18      +32 -5     src/share/man/man4/tap.4
  1.24      +33 -4     src/share/man/man4/tun.4
  1.69      +126 -32   src/sys/net/if_tap.c
  1.162     +77 -7     src/sys/net/if_tun.c

PR:		105228 (potentially also 90413, 105570)
Submitted by:	Landon Fuller
Tested by:	Andrej Tobola
Approved by:	core (rwatson)
2007-03-04 14:34:42 +00:00
bms
07e180ae7f MFC rev 1.131:
Unlock a mutex which should be unlocked before returning.
2007-03-04 12:39:43 +00:00
cperciva
a0ed3a9320 MFi386: Ident the SMP kernel as SMP-GENERIC (not GENERIC). 2007-03-03 23:20:42 +00:00
brueffer
de7854c13f MFC: rev. 1.40 by ru
Update the URL for the list of supported products.
2007-03-02 20:47:06 +00:00
jkim
67dc4fb9f0 MFC: Use ETHER_BPF_MTAP() instead of BPF_MTAP(). 2007-03-02 19:19:31 +00:00
jhb
d15ff42ded MFC: Always protect the kthread flags with the lock and close a race with
module unload and kthread_exit().
2007-03-02 17:03:04 +00:00
csjp
017aa33028 MFC ether_vlan_mtap and modifications to em(4) which remove the
promisc mode hack while vlan hardware tag processing is enabled.

For all the details view the commitlog for the following files:

sys/net/ethernet.h revision 1.26
sys/net/if_ethersubr.c revision 1.220
sys/dev/em/if_em.c revision 1.165
2007-03-01 17:32:28 +00:00
rwatson
da61ddb4e0 Merge uipc_usrreq.c:1.183 from HEAD to RELENG_6:
Close a race that occurs when using sendto() to connect and send on a
  UNIX domain socket at the same time as the remote host is closing the
  new connections as quickly as they open.  Since the connect() and
  send() paths are non-atomic with respect to another, it is possible
  for the second thread's close() call to disconnect the two sockets
  as connect() returns, leading to the consumer (which plans to send())
  with a NULL kernel pointer to its proposed peer.  As a result, after
  acquiring the UNIX domain socket subsystem lock, we need to revalidate
  the connection pointers even though connect() has technically succeed,
  and reurn an error to say that there's no connection on which to
  perform the send.

  We might want to rethink the specific errno number, perhaps ECONNRESET
  would be better.

  Reported by:    Young Hyun <youngh at caida dot org>

PR:             100940
2007-03-01 11:07:18 +00:00
ache
98c3af0150 MFC: RUR->RUB 2007-02-28 19:00:37 +00:00
brueffer
758632e292 MFC:
Complete the support for altq(4).
2007-02-28 14:06:25 +00:00
brueffer
0c4accedf4 MFC: rev. 1.29
Complete the support for altq(4).

Approved by:	rwatson (mentor)
2007-02-28 14:04:25 +00:00
kib
31bbfa289d MFC rev. 1.579: MFi386 rev. 1.544 of i386/i386/pmap.c:
Rounding addr upwards to next 2M boundary in pmap_growkernel() could
cause addr to become 0, resulting in an early return without populating
the last PDE.
2007-02-28 09:27:45 +00:00