Commit Graph

11373 Commits

Author SHA1 Message Date
Jung-uk Kim
560a54e10c Add three new ioctl(2) commands for bpf(4).
- BIOCGDIRECTION and BIOCSDIRECTION get or set the setting determining
whether incoming, outgoing, or all packets on the interface should be
returned by BPF.  Set to BPF_D_IN to see only incoming packets on the
interface.  Set to BPF_D_INOUT to see packets originating locally and
remotely on the interface.  Set to BPF_D_OUT to see only outgoing
packets on the interface.  This setting is initialized to BPF_D_INOUT
by default.  BIOCGSEESENT and BIOCSSEESENT are obsoleted by these but
kept for backward compatibility.

- BIOCFEEDBACK sets packet feedback mode.  This allows injected packets
to be fed back as input to the interface when output via the interface is
successful.  When BPF_D_INOUT direction is set, injected outgoing packet
is not returned by BPF to avoid duplication.  This flag is initialized to
zero by default.

Note that libpcap has been modified to support BPF_D_OUT direction for
pcap_setdirection(3) and PCAP_D_OUT direction is functional now.

Reviewed by:	rwatson
2007-02-26 22:24:14 +00:00
Robert Watson
149b6b0b12 Add rw_wowned(9) symlink. 2007-02-26 19:09:36 +00:00
Robert Watson
dd348217d7 Update rwlock(9) for rw_wowned(). 2007-02-26 19:07:41 +00:00
Bruce M Simpson
d305f4b99e Document m_pulldown().
Obtained from:	MBUF issues in 4.4BSD IPv6/IPsec support (itojun)
2007-02-26 15:17:19 +00:00
Randall Stewart
7c3768006d Fix include declaration it was sys/sctp.h should be netinet/sctp.h,
reported by pluknet@gmail.com.
2007-02-26 12:23:32 +00:00
Kirk McKusick
fdece2b8f7 Declare a `struct extattr' that defines the format of an extended
attribute. Also define some macros to manipulate one of these
structures. Explain their use in the extattr.9 manual page.

The next step will be to make a sweep through the kernel replacing
the old pointer manipulation code. To get an idea of how they would
be used, the ffs_findextattr() function in ufs/ffs/ffs_vnops.c is
currently written as follows:

/*
 * Vnode operating to retrieve a named extended attribute.
 *
 * Locate a particular EA (nspace:name) in the area (ptr:length), and return
 * the length of the EA, and possibly the pointer to the entry and to the data.
 */
static int
ffs_findextattr(u_char *ptr, u_int length, int nspace, const char *name,
    u_char **eap, u_char **eac)
{
	u_char *p, *pe, *pn, *p0;
	int eapad1, eapad2, ealength, ealen, nlen;
	uint32_t ul;

	pe = ptr + length;
	nlen = strlen(name);

	for (p = ptr; p < pe; p = pn) {
		p0 = p;
		bcopy(p, &ul, sizeof(ul));
		pn = p + ul;
		/* make sure this entry is complete */
		if (pn > pe)
			break;
		p += sizeof(uint32_t);
		if (*p != nspace)
			continue;
		p++;
		eapad2 = *p++;
		if (*p != nlen)
			continue;
		p++;
		if (bcmp(p, name, nlen))
			continue;
		ealength = sizeof(uint32_t) + 3 + nlen;
		eapad1 = 8 - (ealength % 8);
		if (eapad1 == 8)
			eapad1 = 0;
		ealength += eapad1;
		ealen = ul - ealength - eapad2;
		p += nlen + eapad1;
		if (eap != NULL)
			*eap = p0;
		if (eac != NULL)
			*eac = p;
		return (ealen);
	}
	return(-1);
}

After applying the structure and macros, it would look like this:

/*
 * Vnode operating to retrieve a named extended attribute.
 *
 * Locate a particular EA (nspace:name) in the area (ptr:length), and return
 * the length of the EA, and possibly the pointer to the entry and to the data.
 */
static int
ffs_findextattr(u_char *ptr, u_int length, int nspace, const char *name,
    u_char **eapp, u_char **eac)
{
	struct extattr *eap, *eaend;

	eaend = (struct extattr *)(ptr + length);
	for (eap = (struct extattr *)ptr; eap < eaend; eap = EXTATTR_NEXT(eap)){
		/* make sure this entry is complete */
		if (EXTATTR_NEXT(eap) > eaend)
			break;
		if (eap->ea_namespace != nspace ||
		    eap->ea_namelength != length ||
		    bcmp(eap->ea_name, name, length))
			continue;
		if (eapp != NULL)
			*eapp = eap;
		if (eac != NULL)
			*eac = EXTATTR_CONTENT(eap);
		return (EXTATTR_CONTENT_SIZE(eap));
	}
	return(-1);
}

Not only is it considerably shorter, but it hopefully more readable :-)
2007-02-26 06:18:53 +00:00
Bruce M Simpson
0770db8953 Update multicast(4) manual page to reflect the new reality of the code. 2007-02-25 14:31:41 +00:00
Ruslan Ermilov
066eef7a1d Remove the traces of vm_page_unmanage(). 2007-02-25 06:51:11 +00:00
Jens Schweikhardt
c8651f7400 Correct two grammos. 2007-02-23 16:50:17 +00:00
John Baldwin
37e80fcac2 Add a new kernel sleep function pause(9). pause(9) is for places that
want an equivalent of DELAY(9) that sleeps instead of spins.  It accepts
a wmesg and a timeout and is not interrupted by signals.  It uses a private
wait channel that should never be woken up by wakeup(9) or wakeup_one(9).

Glanced at by:	phk
2007-02-23 16:22:09 +00:00
Randall Stewart
d8b5fd91b9 First cut of the sctp man pages. Still need work. 2007-02-22 14:32:39 +00:00
Robert Watson
9fad4c2a12 Refine implementation notes for priv(9): clarify ABI comments, mention
updating Jail's list of privileges.
2007-02-21 10:32:03 +00:00
Christian Brueffer
91dba98d82 Document vge(4)'s support for altq(4). 2007-02-21 10:00:09 +00:00
Ceri Davies
e1854a84ad Correct typos containing my login name (plus one more in expr.y).
Found courtesy of a recursive grep in the wrong directory.
2007-02-18 19:48:59 +00:00
Joel Dahl
ba20889705 Oops, fix minor braino.
Noticed by:	ariff
2007-02-17 11:31:58 +00:00
Joel Dahl
4704be40c8 Link snd_sb16.4 and snd_sb8.4 to snd_sbc.4.
Submitted by:	ariff
2007-02-17 10:30:00 +00:00
Joel Dahl
205faebf10 Add Sigmatel STAC9271D. 2007-02-16 18:23:17 +00:00
Pawel Jakub Dawidek
eb62f84553 VFS_VPTOFH(9) was replaced with VOP_VPTOFH(9).
VFS_VPTOFH.9 was repo-copied to VOP_VPTOFH.9.

Repo-copy done by:	joe
2007-02-16 14:27:59 +00:00
Christian Brueffer
c956fd0e74 Xref altq(4) 2007-02-16 13:53:45 +00:00
Luigi Rizzo
ddb53abcd9 remove some leftover text and update the text to match the current version
of the code.
2007-02-15 17:52:17 +00:00
Robert Watson
db430f9709 Expand history and authors section of mbuf.9 man page to discuss recent
transition to mbuma (FreeBSD 5.3) and the fact that mbufs are now limited
almost entirely to packet storage, with straight UMA zones being used for
most other network data types.
2007-02-15 14:44:46 +00:00
Christian Brueffer
5ab2dec31e Mark up lkm with .Nm, since lkm is name of an api.
Submitted by:	ru
2007-02-13 17:06:15 +00:00
Christian Brueffer
ba73f5c546 "options PIM" is gone. 2007-02-12 21:30:34 +00:00
Christian Brueffer
af227cf7d4 The KAME project has been dissolved and kame.4 isn't terribly useful.
=> Sayonara

Approved by:	gnn, suz
2007-02-12 21:12:37 +00:00
Christian Brueffer
0c28188710 Use the correct line to put into loader.conf. Duh!
Clue bat applied by:	ru
Pointy hat to:		brueffer
2007-02-12 20:58:32 +00:00
John Baldwin
f4ad756aef MLINK for bus_dmamap_load_mbuf_sg(9) 2007-02-12 17:53:21 +00:00
Joseph Koshy
44caa87293 Improve a sentence.
Prodded by:	billf
MFC after:	3 days
2007-02-12 03:26:22 +00:00
Christian Brueffer
47fa55cf93 Don't reference lkm(4), it doesn't exist.
PR:		108980
Submitted by:	Yonatan
2007-02-10 08:44:41 +00:00
Christian Brueffer
aae5ebdcab Nuke pcnfsd(8) reference.
PR:		108980
Submitted by:	Yonatan
2007-02-09 22:18:56 +00:00
Christian Brueffer
cbc64eb2f2 There is no isa(4) manpage, convert to normal text an join lines.
PR:		108980
Submitted by:	Yonatan
2007-02-09 21:12:21 +00:00
Christian Brueffer
2679699525 Remove references to pccardd(8), pccardc(8) and OLDCARD.
PR:		108980
Submitted by:	Yonatan
2007-02-09 21:05:47 +00:00
Christian Brueffer
336025e385 Remove Xref to non-existant uhub(4).
PR:		108980
Submitted by:	Yonatan
2007-02-09 20:53:19 +00:00
Christian Brueffer
e0ca5a930d Correct references to tcpdump(1).
PR:		108980
Submitted by:	Yonatan
2007-02-09 20:39:14 +00:00
Christian Brueffer
afc4e93d96 Remove Xref to owi(4), it's dead and gone.
PR:		108980
Submitted by:	Yonatan
2007-02-09 20:32:58 +00:00
Luigi Rizzo
97070dd5e0 Document a little more the firmware subsystem.
Apart from minor cleanup of the text, it should document
in reasonable detail what the status of the code is.
RELENG_6 has some minor differences there in the way automatic
loading/unloading is handled, but hopefully this should be
fixed by MFC time.

The examples come from Max Laier and Sam Leffler.

MFC after: 1 week
2007-02-09 19:08:07 +00:00
Christian Brueffer
7aa737c6fe Remove an obsolete error message. 2007-02-09 18:26:13 +00:00
Christian Brueffer
e53baad997 - Use the standard section 4 SYNOPSIS
- Utilize .Nm

MFC after:	3 days
2007-02-09 17:21:23 +00:00
Lukas Ertl
c24406ad47 Add support for Huawei Technologies Mobile card (3G).
Submitted by:  Thorsten Schroeder <ths_AT_dev.io>
MFC in:        3 days
2007-02-09 15:59:28 +00:00
Bruce M Simpson
3467360dfd Add lists of ICMP types and codes for user and developer reference.
Cross-reference pf.conf(5) which is able to use these definitions.

PR:		85243
Submitted by:	Daniel Gerzo
Obtained from:	OpenBSD
MFC after:	1 day
2007-02-09 12:30:17 +00:00
Florent Thoumie
2d69b43eb2 Add support for EtherChannel configuration to rc startup scripts.
Note: This also deprecates "NO" as a way to specify an empty list of
interfaces for gif_interfaces.

PR:		conf/104884
Submitted by:	nork
Harassed by:	brd
Discussed with:	brooks, dougb
2007-02-09 12:11:27 +00:00
Christian Brueffer
cebf4a4ed6 Document NetCell NC3000 and NC5000 support. 2007-02-06 09:50:17 +00:00
Doug Ambrisko
a4a522fa7b s/Feb/February/
Reminded by:	ru
2007-02-05 22:45:58 +00:00
Lukas Ertl
92fb2d84f5 Add support for another 3G card and update man page accordingly.
The patch from the PR was a little outdated w/regards to the
Vodafone vendor string.

PR:            kern/106033
Submitted by:  Volker Werth <volker_AT_vwsoft.com>
MFC in:        3 days
2007-02-04 22:14:18 +00:00
Philip Paeps
586386f70c Fix hr.iso syscons keymap, making it possible to type < and >.
PR:		conf/105642
Submitted by:	ivoras
MFC after:	3 days
2007-02-04 17:10:18 +00:00
Bruce M Simpson
6501ffa0c1 Typo.
(Oh well, I guess that's the danger of updating two three-letter-named
entities at the same time.)

Submitted by:	Simon L. Nielsen
MFC after:	4 weeks
2007-02-04 16:59:50 +00:00
Bruce M Simpson
cd83bbd2aa 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.

PR:		105228 (potentially also 90413, 105570)
Submitted by:	Landon Fuller
Tested by:	Andrej Tobola
Approved by:	core (rwatson)
MFC after:	4 weeks
2007-02-04 16:32:46 +00:00
Mike Pritchard
f4bce9c11d Expand this man page to provide some details on the structure
of the quota data files and how they are maintained.
2007-02-04 07:44:40 +00:00
Christian Brueffer
18d68737c0 Xref altq(4). 2007-02-03 20:02:29 +00:00
Christian Brueffer
a10696f6ba Xref altq(4). 2007-02-03 19:29:31 +00:00
Max Laier
fe46dc7031 Add ALTQ support for aue(4).
Tested by:	Greg Hennessy, Volker
MFC after:	1 week
2007-02-03 13:53:22 +00:00
Max Laier
5f6eff23ae Missed npe(4) in the last commit. "ate" also has support but is lagging a
man page to link to.
2007-02-03 13:38:04 +00:00
Max Laier
d21fac506a bce(4), ipw(4), iwi(4), ral(4), udav(4), ural(4) support ALTQ as well. 2007-02-03 13:33:40 +00:00
Doug Ambrisko
04e5145b7f Based on input from ru & rodrigc document the mount operation in the new
world order:
	mount -t linsysfs linsys /compat/linux/sys
instead of mount_linsysfs.  Now that 6.X requires mount_linsysfs to
work.  This is why there is a mount_linsysfs in 6.X and not in -current.

Prompted by:	ru
Reviewed by:	ru, rodrigc
2007-02-02 16:26:15 +00:00
Poul-Henning Kamp
d59fd7af69 Update with the latest Bulletin C from IERS. 2007-02-02 09:19:27 +00:00
Rong-En Fan
438e97c073 Remove old libmytinfo link.
Approved by:	delphij (mentor)
Requested by:	ache
2007-02-01 08:45:27 +00:00
Pav Lucistnik
ad9096d289 - Add ports-ports-mgmt collection 2007-01-31 14:35:05 +00:00
Robert Watson
1b824bcfab s/software was developed/documentation was written/
Suggested by:	ru
2007-01-31 09:40:31 +00:00
Maxim Konovalov
37a5c137f0 o DragonFly 1.8.0 added. 2007-01-31 04:58:03 +00:00
Gleb Smirnoff
41ee9d56dc Fix typo.
Submitted by:	pluknet <pluknet gmail.com>
2007-01-30 20:22:07 +00:00
Christian Brueffer
bb22863b1f Add the 3Com 3c996-SX.
Submitted by:	Johan Ström
MFC after:	3 days
2007-01-30 09:47:31 +00:00
Christian Brueffer
a25ecdff1f Xref altq(4) for drivers that support it according to altq(4). 2007-01-30 08:40:04 +00:00
Christian Brueffer
940548361e Xref altq(4). 2007-01-30 08:17:45 +00:00
Robert Watson
806c2dc9bf Add MLINKS for sf_buf.9. 2007-01-29 11:27:44 +00:00
Joel Dahl
9eca1342f5 Line break before "All rights reserved" in the license example.
Reveiwed by:	bde, rwatson
2007-01-28 20:51:04 +00:00
Robert Watson
5d668266bb Update pmap_extract() implementation notes: we appear no longer to serialize
this call with Giant on any platform.
2007-01-28 16:23:55 +00:00
Robert Watson
5a05988c32 Add a rudimentary man page for sf_bufs, based on my rudimentary
understanding of sf_bufs.
2007-01-28 16:07:50 +00:00
Robert Watson
0931399389 Fix minor type: "struct disk *" instead of "struct *disk".
MFC after:	3 days
2007-01-28 14:37:13 +00:00
Ruslan Ermilov
b902c5bc80 Fix grammar [1] and formatting.
Submitted by:	pluknet AT gmail DOT com [1]
2007-01-27 23:06:00 +00:00
Robert Watson
cbfb87359e Add a missing verb in describing MAP_PREFAULT_MADVISE. 2007-01-27 18:58:33 +00:00
Xin LI
29e2b723d4 Regen. 2007-01-26 10:20:59 +00:00
Xin LI
9a9ea25f4a Replace the GNU gzip with a slightly modified NetBSD gzip. The
NetBSD version is a feature-to-feature re-implementation of GNU
gzip using the freely-redistributable zlib and this version is
expected to be mostly bug-to-bug compatible with the GNU
implementation.

 - Because this is a piece of mature code and we want to make
   changes so it is added directly rather than importing to
   src/contrib.
 - Connect newly added code to src/usr.bin/ and rescue/rescue
   build.
 - Disconnect the GNU gzip code from build for now, they will
   be eventually removed completely.
 - Provide two new src.conf(5) knobs, WITHOUT_BZIP2_SUPPORT and
   WITHOUT_BZIP2.

Tested by:	kris (full exp-7 pointyhat build)
Approved by:	core (importing a 4-clause BSD licensed file)
Approved by:	re (adding new utility during -HEAD code slush)
2007-01-26 10:19:08 +00:00
Ceri Davies
c4758f8e7f Bump .Dd for r1.313. 2007-01-24 09:22:56 +00:00
Mike Pritchard
781cf91bcd Document new quota knobs. 2007-01-23 21:27:07 +00:00
Bruce M Simpson
ed6e952c66 Document the existence of the TCP_INFO socket option.
Approved by:	rwatson
2007-01-22 14:16:47 +00:00
Bruce M Simpson
50c317ac7c Docuemnt exactly which functions access which NSS databases.
Point out that FreeBSD libc has compat stubs for GNU glibc NSS
modules which access NSDB_PASSWD/NSDB_GROUP, but not NSDB_HOSTS;
based on painful experience porting nss_mdns.

Reviewed by:	ru
2007-01-22 11:45:25 +00:00
Marius Strobl
2518ad74c7 - For the sake of completeness mention back-end support for the ILACC
and add a list of known-working PCI devices.
- For consistency throughout this man page also talk about C-Bus and
  ISA adapters rather than cards.
- Add missing .Tn.
- Mention ifconfig(8) along with listing selectable media types.
- Add/un-comment hardware notes for the newly supported 'lebuffer'
  variants (the transition from P/N 501-1860 to 501-1869 isn't a typo).
2007-01-20 13:37:15 +00:00
Andrew Thompson
ab86b1c667 Add a section about RSTP support. 2007-01-20 02:39:34 +00:00
Olivier Houchard
c3f5198b21 Add a reference too pthread_cancel(3).
Submitted by:	Jeremie Le-Hen
2007-01-19 17:34:52 +00:00
Joel Dahl
f1f234518b Add missing comma.
Noticed by:	ru
2007-01-18 15:27:15 +00:00
Xin LI
36ac164ee8 Oops... Revert previous commit because "installathon" is really a contest's
name and not a typo.
2007-01-18 03:07:04 +00:00
Xin LI
2a39c5bf53 Fix a typo.
Submitted by:	applecom at inbox ru
2007-01-18 03:04:56 +00:00
Bruce M Simpson
394c6ef282 Document the loader tunables which control hard process memory limits.
Reviewed by:	ru
2007-01-17 22:23:28 +00:00
Dag-Erling Smørgrav
ba518d666a "If I only had a brain..."
MFC after:	 3 weeks
2007-01-17 14:54:53 +00:00
Dag-Erling Smørgrav
5e0d38b538 Correct errors in previous commit. I didn't realize that ${CPUTYPE} is
passed unmodified to gcc.  Therefore, "prescott" should be used for Prescott,
Nocona, Core and Core 2 CPUs when building 32-bit code, and "nocona" should
be used for Prescott, Nocona and Core 2 CPUs when building 64-bit code.

MFC after:	3 weeks
2007-01-17 14:49:13 +00:00
Joel Dahl
9a6e76e662 - Add a small section on boot-time configuration.
- Add more Xrefs.
- Fix minor nits.

Reviewed by:	ru
2007-01-17 14:27:03 +00:00
Dag-Erling Smørgrav
3f15422a91 On i386, make "prescott" an alias for "nocona" (instead of the other way
around), and introduce "core", along with the alias "core2".  All of these
enable SSE3.

On amd64, add "core2" (enables SSE3).

MFC after:	3 weeks
2007-01-17 12:43:06 +00:00
Murray Stokely
b95eac2f41 Add French dvorak keymap that supports accents. Based on Francis
Leboutte's french layout.

Submitted by: Clement Pillias <clementpillias@nerim.net>
MFC after: 1 week
2007-01-16 10:47:56 +00:00
Randall Stewart
b939bb368a Reviewed by: rwatson
Approved by:	gnn

Add a new function hashinit_flags() which allows NOT-waiting
for memory (or waiting). The old hashinit() function now
calls hashinit_flags(..., HASH_WAITOK);
2007-01-15 15:06:28 +00:00
Maxim Konovalov
36fde22b92 o Add FreeBSD 6.2, bump copyright years. 2007-01-15 06:14:50 +00:00
Christian Brueffer
acca16b139 Sync the hardware list with the driver and with what I could find on
the Areca website.
Also remove the module from the FILES section, it's already covered in
the SYNOPSIS.

MFC after:	3 days
2007-01-10 12:57:46 +00:00
Gleb Smirnoff
50928713c7 Document recent changes about supported compression and encryption modes.
Wording by:	rwatson
2007-01-09 15:00:01 +00:00
Warner Losh
547569c05e Julian says that he doesn't need the advertising clause, so out it goes. 2007-01-09 04:17:20 +00:00
Xin LI
c94b70e1eb Document that we supported Intel PRO/100 VM Network Connection. 2007-01-07 20:30:27 +00:00
Christian Brueffer
0ea46b3761 Document Marvell 6101/6145 support. 2007-01-04 18:50:52 +00:00
Christian Brueffer
dbd1ddacd4 New supported JMicron, ALI and ServerWorks chipsets.
MFC after:	3 days
2007-01-04 09:12:03 +00:00
Daniel Gerzo
76de453c69 - Do not claim that ipfw is the only firewall package available
in FreeBSD.

Approved by: trhodes (mentor), keramida (mentor)
2007-01-01 21:16:42 +00:00
John-Mark Gurney
99be3bc6d9 Some how the d slipped out in the last commit, add it back...
Pointed out by:	mdoc-police (ru)
2006-12-29 22:30:10 +00:00
Gleb Smirnoff
9e6f1d3be4 Build bits for ng_deflate(4) and ng_pred1(4). 2006-12-29 13:16:43 +00:00
Gleb Smirnoff
681616160d Manual page for Predictor-1 PPP compression netgraph node.
Submitted by:	Alexander Motin <mav alkar.net>
2006-12-29 10:47:26 +00:00
Gleb Smirnoff
f21d415201 Manual page for Deflate PPP compression netgraph node.
Submitted by:	Alexander Motin <mav alkar.net>
2006-12-29 10:46:15 +00:00