summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
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
2013-03-21I don't feel great about adding an include for <sys/param.h>, but I feelTheo de Raadt
great for removing an include of <machine/param.h> This needs further cleanup if someone has time.
2013-03-21Free lease with free_client_lease() rather than free().Kenneth R Westerback
2013-03-21Correctly issue WSKBDIO_GETDEFAULTKEYREPEAT instead of WSKBDIO_GETKEYREPEATMiod Vallat
ioctl when getting the default repeat settings; bug report by ``Creamy'' on tech@
2013-03-21create realloc() loops around sysctl for array-based mibs, in programsTheo de Raadt
which want a "full" dump ok dlg
2013-03-21remove excessive includesTheo de Raadt
2013-03-21fetch NMBCLUSTERS at runtime from the sysctl kern.maxclustersTheo de Raadt
ok sthen
2013-03-20MCLBYTES does not belong in here.Theo de Raadt
2013-03-14tedu faith(4), suggested by todd@ some weeks ago after a submission byMartin Pieuchot
dhill. ok krw@, mikeb@, tedu@ (implicit)
2013-03-13Describe the counters that "pfctl -s info" displays. Tweaks jmc@, ok deraadt@Stuart Henderson
2013-03-13Make sure dhclient doesn't delete IPv6 routes.Paul de Weerd
OK krw@
2013-03-11handle ECONNABORTED errors from accept(). In many code blocks they can beTheo de Raadt
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
2013-03-11When binding a lease, check for and clear out any 'zombie' routesKenneth R Westerback
left behind by dead dhclients. i.e. dhclients that no longer respond to 'kill(pid, 0)'. As a result, no need to handle the 127.0.0.1 route separately when deleting an interface. Appears to fix in passing a problem with routes vs link addresses that sthen@ was seeing. ok sthen@
2013-03-08Consolidate parsing of rtm address lists. Use RTAX_GATEWAY entryKenneth R Westerback
to get ARP sockaddr_dl info, rather than re-parsing manually. ok sthen@
2013-03-07Refactor code around route label creation and checking to make it easierKenneth R Westerback
to read. No functional change. ok sthen@
2013-03-05802.1x enterprise is actually supported but requires external software, soStuart Henderson
update the manual. Pointed out by mlarkin@, ok mlarkin@ brad@ matthieu@
2013-03-05cross referencing the manual page is better.Igor Sobrado
change suggested and ok'd by jmc@
2013-03-05fix program name used in AUTHORS section.Igor Sobrado
ok mikeb@
2013-03-05add a few words to the -r description to avoid ambiguity;Jason McIntyre
issue noted by Ronald F. Guilmette, freebsd docs/176648
2013-03-02When a PF rule contains 'set tos' *followed by* a scrub option, the tosStuart Henderson
value is changed to 0x00. Left-over from the previous implementation where set-tos was part of "scrub". Problem reported by Jason Mader, ok henning
2013-03-02rework some text that ken thought ambiguous; ok krwJason McIntyre
2013-02-28Try 10 times to obtain the routing table via sysctl(), and if itKenneth R Westerback
can't be done just abandon attempt to clean up the routing and arp tables and carry on. Code adapted from itojun's route6d.c. May address problem reported on misc@ by Marc Peters. Best we can do for now. ok claudio@
2013-02-27Avoid alignment errors when processing routing messages by readingKenneth R Westerback
the messages into dynamically allocated memory rather than a char array on the stack. Revealed by armish bus error when installing latest snap. ok deraadt@
2013-02-24Remove some anachronisms and use consistant form and markup forKenneth R Westerback
"/var/db/dhclient.leases.<IFNAME>". Tweak and ok jmc@
2013-02-24Don't log a complaint that a non-existant default route could not beKenneth R Westerback
deleted. Be happy that the goal of no default route has been achieved. Part of the cleaning up the logs prodding by deraadt@. ok guenther@. error in first version pointed out by sthen@.
2013-02-24When no acceptable offers are received within the allowed timeframe callKenneth R Westerback
state_panic() instead of state_init(). state_init() immediately issues a new DISCOVER message and neither checks dhclient.leases.IF nor daemonizes. state_panic() looks for a lease in dhclient.leases.IF, and if none are available, waits for 'retry' seconds before retarting the DISCOVER process. Most importantly it calls go_daemon() to take the process into the background, giving back the command prompt. Reported by otto@ and deraadt@. ok deraadt@.
2013-02-23'contructed' -> 'constructed'. Spotted by zinke@.Kenneth R Westerback
2013-02-23Attempt a short explanation of the resolv.conf dance. A few otherKenneth R Westerback
verbiage adjustments. Fixes from & ok jmc@.
2013-02-22Attempt a short explanation of what happens on start up and whenKenneth R Westerback
external configuration occurs on a interface with an associated dhclient. Also add INT to SIGNALS section and alphabetize the list of signals. Tweaks from & ok jmc@.
2013-02-22Document signals dhclient currently pays attention to.Kenneth R Westerback
Much help from jmc@, positive feedback from sthen@
2013-02-21Use imsg_flush() to force delivery of IMSG_DELETE_ADDRESS toKenneth R Westerback
privileged process. This ensures a quicker exit of any previous copy of dhclient. Prodded by deraadt@