Commit Graph

6644 Commits

Author SHA1 Message Date
dholland 885f1ddec5 Merge the PR 36997 fixes into ping6. It already didn't accept too
small or wildly too large intervals, but it did allow intervals that
failed at poll(). Since that's signed integer overflow and thus UB,
better not to.
2016-12-18 01:30:54 +00:00
dholland 9275630b0c PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.
Reject packet intervals < 1 ns as they lead to infinite loops adding
zero timespecs.

Fix the behind-schedule behavior so it doesn't spend all its time in
that loop adding very small timespecs. Try ping -c 500 -i 0.000000001
to see this in action with the old ping.
2016-12-18 01:19:34 +00:00
dholland e0d8c787c6 PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.
Check for values between INT_MAX and LONG_MAX (if they're different)
when using strtol to get an int. This applies to the -c and -l options;
the other uses were already checked.

Also limit the inter-packet interval given with -i to values that
don't cause integer overflow calling poll() with milliseconds.

Really large intervals (the number is read as floating point) can
produce positive poll() values but negative integers when converted to
struct timespec; this produces behavior akin to using -l at first and
could be construed as a local DoS vulnerability.
2016-12-18 00:21:33 +00:00
alnsn 11d74f071c Add aes-xts to cgdconfig(8). 2016-12-11 00:34:39 +00:00
wiz 97151ea665 New sentence, new line. Sort SEE ALSO. Fix typo. 2016-11-24 12:38:32 +00:00
pho 4853973201 Major rework on mount_puffs(8) so that it can actually start file servers
Now you can do
  # mount_puffs -o rdonly rot13fs#/home/foo /mnt/rot13

or in fstab
  rot13fs#/home/foo  /mnt/rot13  puffs  rdonly

to start rot13fs with arguments identical to
  # rot13fs -o rdonly /home/foo /mnt/rot13
2016-11-23 14:33:29 +00:00
wiz 34aff94565 Whitespace, sort. 2016-11-20 09:38:11 +00:00
dholland 24da7c40a9 Add crossreference to scsi(4) per note in PR 9627. 2016-11-20 07:04:14 +00:00
wiz 39a1754c2e Bump date for previous.
Use more and more appropriate markup while here.
2016-11-19 23:37:33 +00:00
flxd b0be1b67cd Add "getrealloc" and "setrealloc" commands to get/set automatic reallocation
parameters/enables for error recovery, similar to {get,set}cache.
Many old SCSI disks shipped with reallocation disabled, albeit supporting it.
Minor (cosmetic) fixup of scsi_disk_pages while there.
Based upon code in PR bin/29165 by Greg A. Woods.
OK christos@
2016-11-19 08:43:40 +00:00
pgoyette fce2486282 Add a description for the new MODULE_CLASS_BUFQ class. 2016-11-16 10:43:37 +00:00
jdolecek ad7bde6ea4 stress more that discard is experimental, and explain why; also note that
it's not compatible with log
2016-11-10 22:28:00 +00:00
jdolecek 8ed63d94b4 remove dup line 2016-11-01 16:15:51 +00:00
snj b14abce7b5 revert part of revision 1.28. "e.g." is correct. bad igor! 2016-10-15 06:23:28 +00:00
sevan cb327570eb Whilst mount_pcfs originated as a patch in 386BSD, NetBSD 0.8 actually was the first release of an OS to ship with it.
Heads up by Ingo Schwarze.
2016-10-11 16:10:03 +00:00
christos 7699c5562f try to be more clear about what is not found. 2016-10-09 21:03:43 +00:00
maya fae5be1b07 change warning message
previously attempting to use mount -t ext2 like myself would result in
the warning "mount: mount_ext2 not found for /mnt", which (if you're me)
can be misunderstood as "/mnt is not an ext2 filesystem"...

change it to "mount: mount_ext2 not found"
2016-10-08 06:47:59 +00:00
joerg 14c0cd3532 Shuffle pointer magic to not depend on temporary overaligned pointers
into a packed structure.
2016-10-07 22:32:50 +00:00
joerg 7ee1d0f8e6 Make optspace an array of uint8_t, since some of the bytes written into
it are outside the signed char range.
2016-10-07 22:31:05 +00:00
kre eb67406f45 Avoiding having parameter name shadow its own function's name.
Strictly this shouldnt be (and hasn't been for almost a year) a problem,
but there are compilers that warn about locals shadowing globals (which
this is/was) and it is easy to avoid, so ...    No functinal difference.
2016-10-05 03:06:24 +00:00
mrg e6efae7434 add SMART 249: Total Raw NAND Writes (1GiB units), sourced from
intel spec sheets.
2016-10-04 21:37:46 +00:00
kre 902f3d8946 Return to printing explicit "netmask 0x...." in the case that the
mask set is non-contiguous.   We don't prohibit setting such things
(even if they are basically useless) so they can be set by accident.
	ifconfig ifN 10.0.0.1 netmask 225.0.0.0
produced
	ifN .. inet 10.0.0.1/8
with the previous form (since 225 is 0xE1), now it produces
	ifN ... inet 10.0.0.1 netmask 0xe1000000

If the "netmask" form ever appears in ifconfig output, it (now)
means that the netmask is non-contig, which should make that case
obvious (whther intended, or set by accident)
2016-10-01 20:59:49 +00:00
roy 5174f725c2 Modernise the output for the address to address/prefix instead
of differring outputs for INET and INET6.
The hex string of the INET netmask was particulary hard to read.
2016-10-01 15:10:58 +00:00
roy b5123ad110 Remove the alias keyword from ifconfig output as it serves no purpose. 2016-09-30 16:52:17 +00:00
roy d55c25711c ifaddrs has more data than just the address.
Use it instead of making pointless ioctl calls.
2016-09-30 16:47:56 +00:00
christos f3439cf7fb say that you need to destroy it first. 2016-09-24 13:40:55 +00:00
christos e1a93a1b84 PR/51497: Clare: Allow gpt -p <n> create to work. 2016-09-23 19:36:50 +00:00
christos e8e025ac01 fix bugs in ssid printing 2016-09-22 18:22:51 +00:00
christos a8664d176f PR/51478: Jose Luis Rodriguez Garcia: Fix leak mem fsck_lfs/lfs.c 2016-09-16 11:13:47 +00:00
roy c8fe052e74 Don't bail if SIOGIFMEDIA doesn't return any media lists because we
can still report link status.
2016-09-14 11:46:43 +00:00
kre 0b2d8dad17 Update the history, shutdown was first in 4.1 BSD (and existed earlier).
Ride date bump for previous update.
2016-09-14 00:16:31 +00:00
christos 448df9d70c print address flag bits using snprintb 2016-09-13 00:20:51 +00:00
sevan acacc6feb3 Actually, V6 included clri before 3BSD.
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V6/usr/man/man8/clri.8
Amend HISTORY once more.
Bump date.
2016-09-12 23:11:50 +00:00
wiz cb7bef0a8b Use standard section header. 2016-09-12 06:55:10 +00:00
wiz 31ba559526 Add .An -nosplit. 2016-09-12 06:52:59 +00:00
sevan 38077dbda0 umount appeared in V1
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man1/umount.1

Amend HISTORY.
Bump date.
2016-09-12 06:34:08 +00:00
sevan d11b992e7c shutdown appeared as a standalone utility in 4.2BSD release, in 4BSD its a
target in init.
http://www.tuhs.org/cgi-bin/utree.pl?file=4BSD/usr/src/cmd/init.c
http://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/etc/shutdown.c

Amend HISTORY.
Bump date.
2016-09-12 06:22:35 +00:00
sevan 08e27e9733 Replace contractions. 2016-09-12 05:47:21 +00:00
sevan 1bfbbe603d A standalone reboot utility showed up in 4.0BSD.
In AT&T UNIX init has a case for reboot and is present in the version shipped
with V5.
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V5/usr/source/s1/init.c

Amend HISTORY section.
Bump date.
2016-09-12 05:43:15 +00:00
sevan 9edbcb7169 pppoectl first appeared in NetBSD 1.6.
Bump date.
2016-09-12 05:35:20 +00:00
sevan d9f234e208 Mention author in AUTHORS section.
Bump date.
2016-09-12 05:23:32 +00:00
sevan d298703f11 Document newfs_v7fs appeared in NetBSD 6.0.
Add AUTHORS secton.
Bump date.
2016-09-12 05:16:04 +00:00
sevan 6933519a81 Add AUTHORS section.
Bump date.
2016-09-12 05:11:53 +00:00
sevan 1137c8dc70 Note the origin of the newfs_msdos command from FreeBSD 3.0.
Replace contraction.
s/filesystem/file system/
Bump date.
2016-09-12 05:09:39 +00:00
sevan 65286eb532 Memory File System support appeared in 4.4BSD, implemented as an extension to
newfs(8). So while newfs may have appeared in 4.2BSD, MFS support was later.
https://svnweb.freebsd.org/csrg/sbin/newfs/Makefile?r1=39047&r2=39051
Adjust HISTORY.
Bump date.
2016-09-12 04:50:48 +00:00
sevan 4a946ec4b7 modstat initially lived in src/usr.bin/modstat before being moved to src/modstat.
Note the history of the initial implementation and amend AUTHORS section to
credit Terrence R. Lambert.
Heads up by Matthew Green.
2016-09-12 04:00:27 +00:00
sevan dbcb8388b0 Add HISTORY & AUTHORS section.
Bump date.
2016-09-12 02:57:09 +00:00
sevan 013f37ee9c Add HISTORY & AUTHORS section.
Bump date.
2016-09-12 02:45:07 +00:00
sevan aa2167a3c8 Add AUTHORS section.
Bump date.
2016-09-12 02:38:31 +00:00
sevan f61b6f043e Add HISTORY section.
Bump date.
Not sure where mount_nfs first showed up but the version in the moder BSDs originates
from 4.4BSD according to CSRG archive
http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.4BSD/usr/src/sbin/mount_nfs
Commercial offerings from Sun and others covers older systems, eg
https://groups.google.com/forum/#!topic/net.unix-wizards/lMe7aQikqJI
2016-09-12 02:06:16 +00:00