5004 Commits

Author SHA1 Message Date
maxim
2903a43579 MFC rev. 1.103: make ipfw(8) show rules with mac/mac-type options
correctly.
MFC rev. 1.105: teach get_mac_addr_mask() to not silently accept
incorrect MAC addresses.
2007-06-10 13:59:36 +00:00
bz
4ad973ddfb MFC:
1.200 sbin/ipfw/ipfw.8, 1.104 sbin/ipfw/ipfw2.c
  1.110 sys/netinet/ip_fw.h, 1.164 sys/netinet/ip_fw2.c

  Add support for filtering on Routing Header Type 0 and
  Mobile IPv6 Routing Header Type 2 in addition to filter
  on the non-differentiated presence of any Routing Header.
2007-06-07 09:50:53 +00:00
maxim
d0887e8868 MFC rev. 1.39 fdisk.8 and rev. 1.83 fdisk.c: add -p flag -- print
a slice table in fdisk configuration file format.
2007-05-31 13:52:24 +00:00
mtm
b2c7a3ca2a MFC ver. 1.30:
date: 2007/04/19 15:41:00;  author: mtm;  state: Exp;  lines: +68 -19
o Increase the buffer to hold extra headers to 10240 bytes (the minimum
  according to RFC3542 sec. 20.1) and allocate it dynamically.
o In verbose mode, specify a warning if any control data from recvmsg(2)
  was truncated because the buffer was too small.
o When printing the extra headers make sure not to overrun the buffer
  boundaries.

PR: kern/99425
2007-05-22 22:01:44 +00:00
pav
f7bc27a8e4 MFC 1.16:
Replace incomprehensive description of -m by much clearer text from OpenBSD,
  with the exception of one word.
2007-05-19 11:32:34 +00:00
thompsa
810e7f64f6 Hook lagg(4) up to the build. 2007-05-17 01:50:46 +00:00
cvs2svn
cd5e537b6a This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-05-13 09:33:36 +00:00
pav
403b2f3a00 MFC 1.10, 1.11
Revise the markup, sort sections, fix some grammar bugs.
  Fix the description of "media-type".
2007-05-12 23:10:08 +00:00
julian
049302cd6a MFC 1.93 1.94.
allow table entries to store/return an IP address as a value.
2007-05-08 20:03:01 +00:00
yar
3036ea3146 MFC rev. 1.32:
Fix a typo: argv -> argvp.

  Rationale:
  We are interested in the current (last) element of the argv array
  there, not in its first element. [...]

  Also add a comment that the argv array ends up null-terminated in
  any case (it's due to the design of the for loop) as an answer to
  a possible question why the whole argv isn't zero-filled.
2007-05-03 09:56:51 +00:00
maxim
b55cf0b91d MFC rev. 1.102: add missed w/space in the error message. 2007-04-28 20:09:26 +00:00
maxim
970fc35f80 MFC rev. 1.8: IFNAMSIZ includes a terminating null byte. 2007-04-22 08:37:21 +00:00
thomas
ad992339c2 MFC rev. 1.40:
(bread): For a read that is contained entirely within a block, never copy
 out more than size bytes to the caller's buffer.

PR:	bin/111191
2007-04-12 07:53:13 +00:00
thompsa
edf58557bc MFC r1.134
Correct the name of the 'proto' command.
2007-04-01 02:09:47 +00:00
brian
72a4b5e81b MFC: Don't free the buffer with the sysctl value before printing it. 2007-03-20 23:15:45 +00:00
brian
17ce8d3714 MFC: Default output to stdout as the man page suggests.
Only go through our cylinder group and inode info when we need to.
2007-03-19 19:16:49 +00:00
brian
ea6212f0ed MFC: Reindent main() 2007-03-19 19:15:42 +00:00
thomas
78c21575e4 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
2007-03-13 20:28:24 +00:00
matteo
aee437b487 mdmfs.c: MFC revs 1.29-1.31
mdmfs.8: MFC revs 1.27-1.29

PR:		bin/66763 103501 kern/109863
2007-03-11 18:24:22 +00:00
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
n_hibma
e138d8b7c1 MFC
rev. 1.34-1.36 mdconfig.8
	rev. 1.52-1.54 mdconfig.c

Make attach the default for -f and assume '-a' and '-t malloc' flags for '-s
<size>' (malloc ramdisk) if not specified.

To mount an image:

	MD=`mdconfig -f image`
	mount $MD /mnt

To create and mount a RAM disk (gosh, last I used those was on an Atari 1040ST:
256kb just to piss off the 640kb PC loosers)

	MD=`mdconfig -s 5mb`
	newfs /dev/$MD
	mount /dev/$MD /mnt

Et voila! Much easier to remember.
2007-02-27 09:04:56 +00:00
brueffer
6e963132e2 MFC: rev. 1.21 + 1.22
Don't reference the non-existant lkm(4), use .Nm instead
since lkm is the name of an api.
2007-02-15 17:19:38 +00:00
rodrigc
254bf662f7 MFC: New unionfs implementation from Daichi GOTO and Masanori OZAWA,
which fixes many locking and crashing problems in the previous
     implementation.  kib@ helped a lot by eliminating a source
     of deadlocks encountered with unionfs with these commits:
       rev. 1.50 of src/sys/fs/deadfs/dead_vnops.c
       rev. 1.97 of src/sys/kern/vfs_lookup.c
Submitted by:	daichi, Masanori OZAWA <ozawa ongs co jp>
2007-02-13 05:56:43 +00:00
brooks
e906ee70e9 Sync dhclient and supporting code with CURRENT. In particular:
- Introduce per-interface dhclient_flags_<ifn> and
   background_dhclient_<ifn> rc.conf variables.
 - Default to sending a client identifer.
 - When an invalid host name option is sent, delete it and accept the
   lease.
 - Fix usage, the call to getopt, and a typo in rc.d/dhclient.
2007-02-09 03:11:32 +00:00
rodrigc
86c647cf2b MFC 1.94
Warn that "-t msdos" will be converted to "-t msdosfs".

PR:		79296
Submitted by:	Nobuhiro Yasutomi <nobuhiro yasutomi nifty ne jp>
2007-02-06 06:06:28 +00:00
rodrigc
ae5bd0c2b5 MFC: 1.73, 1.74, 1.84
Do not pass "noauto", "userquota", or "groupquota" mount options
down to nmount() or external mount programs.

PR:			108751
Reported and tested by:	Neil Hoggarth <neil hoggarth me uk>
2007-02-06 01:16:09 +00:00
bms
392f6b640d MFC rev 1.133:
Be explicit in examples about the correct grammar for 'alias' and
  '-alias', and that 'add' and 'delete are in fact synonyms for these
  in the ifconfig(8) grammar.

  Use network prefixes explicitly specified in IETF RFCs for
  documentation purposes. (bz)

PR		102701
See also:	RFC 3330, RFC 3849
Submitted by:	bz
2007-02-05 12:39:53 +00:00
wilko
599e1f841c MFC: %s/tranport/transport/ 2007-02-03 16:40:19 +00:00
pjd
9084f020a7 MFC: sbin/geom/class/eli/geom_eli.c 1.19
When the following conditions are meet:
- First configured key is based only on keyfile (no passphrase).
- Device is attached.
- User changes first key (setkey) from keyfile to passphrase and doesn't
  specify number of iterations (with -i option).
...geli(8) won't store calculated number of iterations in metadata.
This result in device beeing unaccesable after detach.

One can recover from this situation by guessing number of iterations
generated, storing it in metadata and trying to attach device.
Recovery procedure isn't nice, but one's data is not lost.

Reported by:	Thomas Nickl <T.Nickl@gmx.net>
2007-02-03 16:09:10 +00:00
pjd
1ebd1ed20e MFC: sbin/geom/misc/subr.c 1.7
sbin/geom/misc/subr.h	1.8

Implement gctl_change_param() function, which changes value of existing
parameter.
2007-02-03 16:08:11 +00:00
bms
5186d02a86 Bump .Dd. 2007-02-03 11:57:44 +00:00
bms
7c4dcfd37d MFC rev 1.132:
Add an EXAMPLES section for ifconfig(8).

PR:		bin/102701
Obtained from:	OpenBSD
2007-02-03 11:57:09 +00:00
mpp
1843e9e481 MFC: quotacheck.c 1.27 - 1.29
Quota system cleanup.
2007-02-01 04:36:40 +00:00
mpp
33c1d45249 MFC: Sync up with HEAD. Revs 1.18 1.19. 2007-02-01 04:31:57 +00:00
rodrigc
9ccee7a0a3 MFC:
Convert mount_msdosfs to use nmount().
2007-01-28 18:01:28 +00:00
rodrigc
772cc608e2 Include <stdio.h> for vsnprintf(). 2007-01-28 17:52:28 +00:00
rodrigc
2f1da838f9 MFC 1.18:
In build_iovec(), if passed in len is -1, check to see if
val is NULL before doing strlen() to calculate new len.
2007-01-28 17:47:05 +00:00
rodrigc
cd3359733a MFC:
Add build_iovec_argf() function.
2007-01-28 17:42:06 +00:00
sam
f49c5315d1 MFC: half- and quarter-rate channel support 2007-01-28 04:27:52 +00:00
rodrigc
8cea67fc48 MFC 1.89, 1.90
Fix "mount -u -o ro" and "mount -u -o rw".

PR:		104687
2007-01-28 01:24:57 +00:00
rodrigc
ed4b2c771e MFC 1.22:
Convert mount_ext2fs to a simple program which passes "-o option" to nmount().

PR: 104687
2007-01-28 01:06:18 +00:00
sam
5a6ef06c97 MFC 1.41: fix handling of ssid "-" etc 2007-01-25 17:29:04 +00:00
thompsa
b705141809 MFC Rapid Spanning Tree support.
This fully syncs bridgestp* and if_bridge* to HEAD with the exception of the
default spanning tree protocol being v1 and not rstp.
2007-01-21 00:18:34 +00:00
thompsa
1c4b898f3b MFC: ifbridge.c r1.5, ifconfig.8 r1.126, if_bridge.c r1.87, if_bridgevar.h r1.17
Add a new address cache type called sticky. On an interface marked sticky any
 address learned by the bridge is made permanent, the address will not age out
 and most importantly will not migrate to another interface.

 This can be used to stop mac address poisoning or clients roaming in much the
 same way as static entries without the hassle of preloading the table.
2007-01-18 00:08:00 +00:00
mlaier
642ce217a4 MFC: ipfw2.c, 1.101:
Fix a parsing bug when specifying more than one address with dotted
  decimal netmask.

  Reported by:	Igor Anishchuk
  PR:		kern/107565
2007-01-10 11:34:51 +00:00
jhb
b21cf10028 MFC: Whitespace fixes. 2007-01-05 21:38:46 +00:00
ceri
4e3aedade3 MFC revisions 1.20 and 1.23:
1.20: Markup fixes.
  1.23: Remove duplicate "clear" subcommand.

Revisions 1.21 and 1.22 do not currently apply to RELENG_6.
2006-12-31 18:46:42 +00:00
ceri
4a06b02407 MFC quotacheck.8 revision 1.17, quotacheck.c revision 1.26:
Document the -l option.

Approved by:	ru
2006-12-31 18:40:05 +00:00
danger
ec735dd5b8 MFC:
- add some files to FILES section and provide their description
- reference devfs.conf and devfs.rules in SEE ALSO section

Approved by: keramida (mentor), trhodes (mentor)
2006-12-29 23:23:59 +00:00
pjd
cd3185af43 MFC: sbin/ggate/ggated/ggated.c 1.8,1.9
sbin/ggate/shared/ggate.c	1.7,1.8
	sbin/ggate/shared/ggate.h	1.4,1.5

Fix ggated for platforms with 64bit size_t. The DIOCGSECTORSIZE ioctl
returns u_int.

Reported by:	Javier Martín Rueda <jmrueda@diatel.upm.es>
PR:		amd64/91799
2006-12-18 11:25:02 +00:00