summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
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
2016-07-27correct syntax for baddynamic example. from Holger MikolonTed Unangst
2016-07-27increase the size of forkstat fields to accomodate large valuesTed Unangst
2016-07-25Revert change to density calculation. David Vasek points out thisKenneth R Westerback
is a more complicated problem than it appears. ok deraadt@
2016-07-23Back out the dhclient BPF change. There are DHCP servers out there whichStefan Sperling
send frames to the ethernet broadcast address, so this will need some more thought and it's too late for 6.0. Problem reported by Holger Mikolon. ok mpi@
2016-07-23At n2k16 David Vasek pointed out that FFS partitions on 4K disks areKenneth R Westerback
created with far fewer inodes than DEV_BSIZE devices. Scale the default 'density' value by (sector size)/DEV_BSIZE to create the same number of inodes. Obviously a NO-OP on DEV_BSIZE devices. Thanks David! ok deraadt@
2016-07-22Actually DECLINE and delete unused offers. Don't just say so in a comment.Kenneth R Westerback
In situations where >1 offer is received this will eliminate unbounded memory growth and make us a more polite netizen. In some corner cases it might prevent reuse of inappropriate older offers. ok millert@
2016-07-21Use explicit idiom when testing the result of strcmp() and strncmp().Kenneth R Westerback
i.e. == 0 and != 0 as appropriate. No intentional functional change. Suggested by & ok tom@
2016-07-20Shrink priv_write_file() API so that it does less, and the callers askTheo de Raadt
it to do less. Discussion with guenther. ok krw
2016-07-20As a general rule, fchown before fchmod is a safer order (because manyTheo de Raadt
systems throw away bits upon chown). Not in this case, but code gets copied.. ok krw
2016-07-20When parsing the configuration. initialize the auth structureReyk Floeter
correctly, as parse.y's $$ is not zero-initialized. Found by Rene Ammerlaan OK markus@ florian@
2016-07-20Make the size for the syn cache hash array tunable. As we areAlexander Bluhm
swapping between two syn caches for random reseeding anyway, this feature can be added easily. When the cache is empty, there is an opportunity to change the hash size. This allows an admin under SYN flood attack to defend his machine. Suggested by claudio@; OK jung@ claudio@ jmc@
2016-07-19Narrow the BPF read filter rules so only packets sent to theKenneth R Westerback
interface's LLADDR pass. Rely on dhclient's existing ability to detect and react to LLADDR changes. This limits the number of packets that get dropped as a result of dhclient setting BIOCSFILDROP on the bpf descriptor. Problem with bridges and multiple dhclients noted by stsp@. ok mpi@ stsp@ deraadt@ henning@
2016-07-18no more cbq_opts - CBQ is gone, ok mpi phessler bennoHenning Brauer
2016-07-18g/c unused (global!) var: oqueues isn't used any more. ALTQ leftover; notHenning Brauer
noticed since struct node_queue stayed. ok claudio benno gcc
2016-07-14kern.usermount is currently a no-op;Jason McIntyre
ok deraadt
2016-07-13Introduce RTF_MULTICAST and flag corresponding IPv6 routes as suchMartin Pieuchot
instead of abusing RTF_CLONING. Fix a leak reporeted by Aaron Riekenberg on misc@, ok sthen@
2016-07-09only print one error, not multiple misleading messagesTed Unangst