summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2013-05-10Fix subnet check. Check our rdomain against the rdomains of the otherKenneth R Westerback
interfaces and not against our own. Problem noted, fix tested and ok mikeb@
2013-05-05Add a flag to struct client_state (IS_RESPONSIBLE) to record whenKenneth R Westerback
the first expected RTM_NEWADDR arrives, which signals that a lease has been bound to the interface. Ignore RTM_NEWADDR and RTM_DELADDR messages until the flag has been set. Makes it more likely that the last dhclient started will be the last dhclient standing. Fixes the problem reported by David Higgs, where restarting an install in a vm consistantly caused the new dhclient to be the one that dies.
2013-05-02Bunch of comment/whitespace cleanup. Eliminate some misleading orKenneth R Westerback
pointless ones, make multiline comments readable, nuke '...' in favour of '.', etc.
2013-05-02Enough of the hand-rolling of queues. Turn client->leases andKenneth R Westerback
client->offered_leases into TAILQs.
2013-04-27Use same parse_date() and date writing logic as in dhcpd. i.e.Kenneth R Westerback
strptime() rather than handrolling parsing. Change date format in leases to same as dhcpd, fixing 'u' vs 'w' error made in initial strftime() introduction.
2013-04-25big int_t/time_t fixes; ok deraadt@ krw@Otto Moerbeek
2013-04-25fix format string; found while scaning the tree for time_t/ino_t problems;Otto Moerbeek
ok deraadt@ krw@
2013-04-24pretty print bigger off_tTheo de Raadt
ok tedu otto
2013-04-24remove old backwards random junkTheo de Raadt
ok mikeb
2013-04-24Follow ISC and freebsd by increasing ip_ttl on packets from 16 toKenneth R Westerback
128, so people living many hops from their dhcp server can still get leases. Pointed out by deraadt@
2013-04-23handle large ino_t; ok teduTheo de Raadt
2013-04-23handle large ino_t; ok teduTheo de Raadt
2013-04-23simple repair for large ino_tTheo de Raadt
2013-04-23handle big ino_tTheo de Raadt
ok otto
2013-04-23prepare for more time (bits); ok deraadt@ millert@Otto Moerbeek
2013-04-21avoid truncating a time_t division into daysTheo de Raadt
2013-04-21Check both f_mntfromname and f_mntfromspec when looking for a mountedJoel Sing
filesystem. This makes umount via DUID possible. ok krw@
2013-04-21When mount(1) is run in verbose mode, display f_mntfromspec if it differsJoel Sing
from f_mntfromname. ok krw@
2013-04-19remove comment about "make gcc happy" for variables which WERE beingTheo de Raadt
used uninitialized... clean up time related variables too for 2038++ ok millert
2013-04-19make sure the fs blocksize doesn't get too big; ok krw@Otto Moerbeek
2013-04-17ext2fs has a 32-bit time fields. store a u_int32_t of the real time_t --Theo de Raadt
that should tide us over for a long time. ok guenther
2013-04-16mark time_t edges with commentsTheo de Raadt
2013-04-16improve name of the 32-bit timeval that ping uses, and bound the useTheo de Raadt
a bit better. discussed with guenther
2013-04-16handle big time_t types; ok guentherTheo de Raadt
2013-04-16remove casts to time_t * which are not neededTheo de Raadt
2013-04-16bzero struct tm before useTheo de Raadt
2013-04-16do not need to cast type to same typeTheo de Raadt
2013-04-16These are already static, because of ../Makefile.incTheo de Raadt
2013-04-16spelling fixes;Jason McIntyre
2013-04-15Remove CTL_USER hierarchy from sysctl()Philip Guenther
(Use sysconf() or confstr() instead) ok miod@ millert@
2013-04-06remove kern.rthreadsTed Unangst
2013-04-05send_packet() and writev() return ssize_t, not int. Use correctKenneth R Westerback
type to store the returned value. From dhill.
2013-04-05Nuke parameter to do_packet() not used since 2006. From dhill.Kenneth R Westerback
2013-04-04Make our dump(8) honour the "nodump" flag for directories, effectivelyVadim Zhukov
disabling dumping their contents. input and ok otto@ millert@ man page bits input and ok jmc@
2013-04-03handle larger time_t types; toss some unused codeTheo de Raadt
ok guenther
2013-04-02handle large time_tTheo de Raadt
2013-04-02handle time_t which is not u_int32_tTheo de Raadt
ok guenther
2013-04-02Stop assuming time_t is longPhilip Guenther
ok deraadt@
2013-04-02Use a time_t variable with ctime()Philip Guenther
ok deraadt@
2013-04-02Don't assume sizeof(time_t)==4Philip Guenther
ok krw@
2013-03-31typo fix from rodent@netbsd;Jason McIntyre
ok otto
2013-03-30Sync with latest IKEv2 Parameters from IANA. No functional change.Reyk Floeter
2013-03-30Since deleting all the addresses on an interface removes all theKenneth R Westerback
relevant entries from the arp cache, don't bother asking for/processing arp entries in the route dumps. Thus allowing use of NET_RT_FLAGS with RTF_GATEWAY and AF_INET, to ask for only the routes dhclient wants to expunge rather than all routes in existance. Greatly shrinks and simplifies the code. No intentional functional change. Tested by sthen@.
2013-03-29remove some of the unused fields from rndstats and stop printing zeroes.Ted Unangst
print labels before stats so people can tell what's what.
2013-03-29sadly, we are going to need machine/cpu.h here for a while to get machdepTed Unangst
noticed by naddy
2013-03-28remove excesss includesTheo de Raadt
2013-03-25the unused palm code goes away.Theo de Raadt
2013-03-24Simplify logic when processing route dump by using a helper functionKenneth R Westerback
delete_route(). No functional change.
2013-03-22Ignore client-identifier option in leases from a server. They're not supposedKenneth R Westerback
to be there! Instead, always record the client-identifier used to obtain the lease. Ignore recorded leases that have a different client-identifier than the one currently in force. If a client-identifier is not specified in the dhclient.conf file, construct one from the network type and MAC, like most other clients out there do these days. Thus, if one plugs in a different USB network adapter, renewing the previous lease (which upsets servers due to the MAC being different) is skipped and DISCOVER is attempted at once. Issue noted and fix tested by tedu@.
2013-03-21more substantial include cleanupTheo de Raadt