Commit Graph

6669 Commits

Author SHA1 Message Date
rin
879e53004e Cosmetic changes. No functional changes. 2017-02-08 23:26:24 +00:00
rin
d394916260 Factor out a common part in Makefile's of ifconfig and x_ifconfig. 2017-02-08 23:22:43 +00:00
rin
6323d1adb5 Rename sbin/ifconfig/Makefile.inc to Makefile.common; the former can
potentially conflict with bsd.subdir.mk.
2017-02-08 23:16:41 +00:00
rin
9766216654 Remove ifconfig hack on m68000. I've confirmed that the problem has already
gone with TME.
2017-02-08 23:13:59 +00:00
rin
ce7fa6f1d3 __empty -> __nothing 2017-02-08 18:05:25 +00:00
rin
47e6c13bb2 switch to __empty 2017-02-08 16:56:56 +00:00
christos
58acfeb884 use __empty 2017-02-08 16:23:24 +00:00
rin
ccc9d98e52 Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where
support for Endian-Independent FFS and Apple UFS is disabled unless FFS_EI=1
and APPLE_UFS=1 are added to CRUNCHENV, respectively.

This reduces the size of ramdisk image for atari by over 15KB.

Thanks tsutsui and christos for their useful comments.
2017-02-08 16:11:39 +00:00
rin
872902e1dd Do not compile in progress.c when SMALLPROG is defined. 2017-02-07 16:14:47 +00:00
christos
ec5c127714 remove debugging printf. 2017-02-05 00:24:24 +00:00
christos
e18b8724f0 use the netid value because it could be udp6... 2017-02-03 21:56:01 +00:00
abhinav
d468dc41e1 Fix spelling of partition. 2017-01-27 10:21:16 +00:00
abhinav
f1b8958974 Fix spelling of simultaneous. 2017-01-27 10:12:05 +00:00
abhinav
fc37131283 Fix typo: s/forwared/forwarded
Also remove full stop from the date.
2017-01-18 22:07:25 +00:00
joerg
f9c2736326 Disable a couple of warnings until further investigation. 2017-01-11 12:19:43 +00:00
joerg
2c0cac8e7f Use an explicitly aligned buffer for ip. 2017-01-11 12:13:52 +00:00
christos
9878dfd06c need <sys/stat.h> 2017-01-10 20:53:09 +00:00
christos
ec09bb40fd fix includes, addr __RCSID 2017-01-10 20:49:20 +00:00
christos
ce0cfa0c1e need <sys/stat.h> ... for stat() 2017-01-10 20:48:12 +00:00
christos
cc8b3fb098 need <sys/stat.h> for fstat() 2017-01-10 20:47:05 +00:00
christos
4ffcc39190 missing <sys/stat.h> 2017-01-10 20:45:53 +00:00
christos
8cdbd53a62 Need <sys/stat.h> for S_IFBLK. 2017-01-10 20:45:19 +00:00
kamil
52678ac6a4 Adapt funopen(3) call after switch to new zlib(3)
In the prototype of the gzclose() function of changed from:

  typedef struct gzFile_s *gzFile;    /* semi-opaque gzip file descriptor */

to:

  typedef voidp gzFile;

This caused type mismatch when calling funopen(3) as:
   'int (*)(void *)' != 'int (*)(struct gzFile_s *)'

Cast gzclose to (int (*)(void *)) when used in funopen(3).
2017-01-10 04:42:20 +00:00
mrg
0537635d0c for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl.  systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.
2016-12-23 10:19:57 +00:00
ozaki-r
e3db1a05a1 Fix that routed deletes local routes
routed previousely ignored local routes, which have RTF_LOCAL flag, because
such routes have RTF_LLINFO and routed ignored routes having the flag. When
we obsoleted RTF_LLINFO, we removed the ignoring logic from routed, then
routed started removing local routes unexpectedly.

Fix this behavior by teaching local routes to routed to ignore them.

kardel@ reported the issue and helped testing, thanks!
2016-12-20 03:35:12 +00:00
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