summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2016-09-02Add switch(4) support to ifconfigKazuya Goda
ok deraadt@ yasuoka@ reyk@ henning@
2016-09-01tweak previous;Jason McIntyre
2016-09-01Nuke now unused 'sz' variable.Kenneth R Westerback
2016-09-01EFI firmware has been encountered that is (from our point of view) confusedKenneth R Westerback
about the disk size. Making the protective MBR created by fdisk invalid as fdisk used the 'correct' disk size. So just do what MS does and put UINT32_MAX into the EE partition size field, no matter what the disk size is. Lets tom@'s Dell boot. ok kettenis@ tom@
2016-09-01make the version symbol a fixed size (512) to reduce the potential forTed Unangst
bad effects when savecore reads beyond it ok deraadt (and thanks to bluhm for remembering that this happens)
2016-09-01better words for -b, wiyh help from jmc@Otto Moerbeek
2016-09-01Document new default timeouts/intervals.Kenneth R Westerback
2016-09-01Cut back the default values for the various timeout/interval values. We noKenneth R Westerback
longer live in a 10Mb/sec shared media world with 1Mhz Vaxen DHCP servers. ok benno@ otto@ phessler@
2016-09-01remove sparc reference;Jason McIntyre
2016-09-01Fix previous commit that displays all route flags with "route get".Alexander Bluhm
The successor of octal 027 is 030 and not 028. Found by regress/sbin/route/rttest20.ok test.
2016-09-01better computation of location of alternate superblocks, based on infoOtto Moerbeek
in the label; ok deraadt@ krw@
2016-09-01Informative comments describing the various timing fields (initial_interval,Kenneth R Westerback
reboot_timeout, etc.) when setting them to their defaults.
2016-09-01Aggressively use dprintf, rather than crazy unchecked writes. UseTheo de Raadt
localtime() since it tends to work better than ctime() when some filesystems are absent. ok guenther
2016-09-01remove references to sparcTed Unangst
2016-09-01Display all route flags in "route get", "route show" and "netstat -r"Alexander Bluhm
output. Sort them according to the RTF_... defines in route.h. OK claudio@ mpi@
2016-09-01Start writing the size of the cylinder group into the (unused) cpgOtto Moerbeek
field of the disklabel. To be used by fsck_ffs(8) to find alternate superblocks. ok deraadt@ krw@
2016-09-01Export machdep.cpufeature in hex, to avoid - values which madeTheo de Raadt
yuo@ grumpy. ok tom guenther yuo
2016-08-31REQUEST packets are not just sent when an interface reboots. So don't shortKenneth R Westerback
circuit the waiting for ACK's by giving up after reboot_timeout. ok tedu@
2016-08-31Remove unused RTF_MASK route flag.Alexander Bluhm
Requested by and OK mpi@
2016-08-31Delete SIGTRAP, SIGFPE, SIGBUS, and SIGSEGV handlers. Such patternsTheo de Raadt
don't help improve code because they block core dumps and there reduce inspection of bugs thus work on fixes. Secondly, these handlers are *stdio signal races* so they can produce different coredumps deep inside stdio.
2016-08-31Use reboot_timeout (default: 1) instead of initial_interval (default: 3) whenKenneth R Westerback
the interface reboots. Thus the fallback from REQUEST to DISCOVER will take place after the intended reboot_timeout seconds. ok tedu@ mpi@
2016-08-31Rename ifconfig's setinstance() function to setrdomain(). Less confusing.Stefan Sperling
ok claudio@ jca@
2016-08-31Remove the 'client' global and make it per-ifp.Martin Pieuchot
ok krw@
2016-08-30summary() is no longer called from a signal handler, so it can useTheo de Raadt
stdio and does not need the workarounds. ok florian millert
2016-08-30Avoid calling summary() from a signal handler. This will allow usTodd C. Miller
to go back to using stdio there. OK florian@ deraadt@
2016-08-30Make sure to not decrease packet size when running with -v.Florian Obser
OK benno
2016-08-30usage() is __dead.Florian Obser
While here remove one useless call to usage() that's covered by the very next line.
2016-08-30Add destination IP to MAC, reduces difference to ping(8).Florian Obser
2016-08-27further tweak previous: use the same text for norw as ro; ok teduJason McIntyre
2016-08-27for completeness, document (no)rw and ro options.Ted Unangst
2016-08-27Pull in <sys/time.h> for struct timespecPhilip Guenther
<sys/fcntl.h> shouldn't be used by userspace; this already uses <fcntl.h> ok deraadt@
2016-08-27Pull in <sys/time.h> for struct timespecPhilip Guenther
ok deraadt@
2016-08-26Pull in <sys/select.h> for fd_setPhilip Guenther
ok deraadt@
2016-08-26Add <time.h> for time(); sort <*.h> includesPhilip Guenther
ok deraadt@
2016-08-26Add <time.h> for time() and ctime(); sort <net*/*.h>Philip Guenther
ok deraadt@
2016-08-23Make the 'ifi' global local to dhclient.c and pass it as an argument toMartin Pieuchot
functions needing it. This is the first step to support multiple interfaces in one dhclient(8) instance. ok krw@
2016-08-20fsdb(8) sucks in and is pledged by fsck(8). Since it uses editline(3),Theo Buehler
add a special case for the missing "rpath" and "tty" promises. Issue found and initial analysis by Jan Stary, thanks! ok deraadt
2016-08-19correct a rate test introduced in rev 1.326Jonathan Gray
ok stsp@
2016-08-19Start with a default fragsize of 2048, double it for large disks and then capOtto Moerbeek
based on sector size. This avoid too large fragments on 4k disks. Problem noted by David Vasek; ok krw@
2016-08-16Track SSID in leases file and only consider leases from the current SSID whenKenneth R Westerback
starting up dhclient on wifi interfaces. In theory will preserve leases from other SSID's and speed up obtaining a lease by not wasting time attempting to re-acquire a lease from a different SSID. Experimental feature from n2k16 needing some real world testing before g2k16.
2016-08-15When running 'ifconfig scan' in hostap mode display the current Tx rate ourStefan Sperling
AP is using to send frames to an associated node. This used to always display the node's highest supported Rx rate, which isn't all that interesting. ok mpi@
2016-08-14Use int64_t and %ll for CTLTYPE_QUAD nodes.Philip Guenther
Use memcpy() instead of up-casting from char* to long long* ok krw@
2016-08-14Convert %q to %ll. Cast off_t to long long for printf-style args.Philip Guenther
Eliminate pointless casts to void* or off_t ok krw@
2016-08-10armish handled some early-gen arm machines, which required tons ofTheo de Raadt
workarounds. Some of them will soon stand in the way of armv7. Off to the attic you go.
2016-08-06Unbreak PSK authentication, broken by previous.Pascal Stumpf
ok reyk@ florian@
2016-08-03Fix typo, spotted by Holger Mikolon <holger@mikolon.com>Vincent Gross
2016-08-03A couple of "a->blah == a->blah" -> "a->blah == b->blah".Kenneth R Westerback
Spotted by the Echelon team with AppChecker static analyzer. ok sashan@
2016-08-02capitalize a question like all the othersJoshua Stein
ok krw
2016-07-31Ask for DHO_BOOTFILE_NAME and DHO_TFTP_SERVER by default. May proveKenneth R Westerback
useful to autoinstall in the future and in the meantime can provide information on what the dhcp server has done with the desired server name and file name info. Original diff from Patrik Lundin via tech@
2016-07-28after getenv, check for empty string too. ok millertTed Unangst