Age | Commit message (Collapse) | Author |
|
always starting DHCP packet options with DHO_DHCP_MESSAGE_TYPE. Now
DHCP-specific options always come after the option identifying the
packet as DHCP rather than BOOTP. Makes at least Nortel NetIP DHCP
server happier. Clean up some code and parameter passing.
Closes PR#6543, as confirmed by original submitter and patch
tester Len Zaifman. Thanks!
ok matthew@ (who hates the ISC-like code)
|
|
warning unless we ask dhclient to reject leases with unknown options
OK krw@
(this was lost in my tree for even longer)
|
|
hints for the proper fix, and OK claudio@
(this was lost in my tree for far too long)
|
|
is as a host route rather than a classful network route. Too
much trouble to fix such an obsolete feature, so ignore option
33 info.
|
|
stuff.
|
|
|
|
|
|
ARPSEND, ARPCHECK. Drop support for 'media', 'medium' and 'alias'
specifications in dhclient.conf. Old leases still parse but these
options now have no effect.
Be more polite and decline all offers we don't accept. Fix a IMSG
length check.
Many expressions of support at various bars.
ok henning@ deraadt@ beck@
|
|
exponentially backed off initial_interval. Don't hallucinate that
we can send ARP packets without waiting. Don't claim to be waiting
for ARP packets when not doing so. Correctly detect expiry of
selecting period. Speeds up negotiations.
Tested on various dhcp servers by Martin Pelika, ian@, and David
Coppa. And works at Starbucks and a mall for me.
|
|
|
|
ten, seconds. Use words not numerals consistently when naming
various timing values. Tweak one clumsy sentence.
|
|
|
|
found by clang
OK claudio@, krw@
|
|
ok krw@ phessler@
|
|
ok jmc@
|
|
rememberingwhich interface dhclient was actually active on.
Requested by deraadt, OK deraadt@, krw@
|
|
and make it possible to bind sockets (including listening sockets!)
to rtables and not just rdomains. This changes the name of the
system calls, socket option, and ioctl. After building with this
you should remove the files /usr/share/man/cat2/[gs]etrdomain.0.
Since this removes the existing [gs]etrdomain() system calls, the
libc major is bumped.
Written by claudio@, criticized^Wcritiqued by me
|
|
|
|
the similar changes to dhcpd.
|
|
|
|
rdomain 0.
OK krw@, claudio@
sharp stick prodding from claudio@
|
|
ok krw@ ramdisks checked by deraadt@
|
|
ISC dhclient had a buffer overflow:
http://www.kb.cert.org/vuls/id/410676
and while our dhclient is not vulnerable to that, it got us looking at
how the subnet mask option is handled. this limits specific ip
address options to length 4 in conformance with RFC 2132. discussion
started by william@ and with input from krw@
ok krw@
|
|
or can't return important flags via ioctl. Excess verbiage pointed out
by deraadt@.
ok henning@
|
|
of dhcp options.
found by parfait.
ok krw@
|
|
|
|
interface to each address and trying to ping the gateway. This will
trigger an RTM_NEWADDR message.
routehandler() only checks for the active and alias address in
RTM_NEWADDR messages, so we can exit when state_panic() and the
message address is on client->leases. routehandler() needs to also
check client->leases.
testing krw, 'I say commit' krw
|
|
normal operations.
Prodded by deraadt@ a while ago.
|
|
dhclient can more or less peacefully coexist. OK beck@ krw@
|
|
|
|
this fixes an old, old bug that could cause lease entries to be lost
when initially loading client leases. found while looking for another
issue.
ok krw@
|
|
|
|
error out.
Add a new user _rwalld for rpc.rwalld, and use that instead
of nobody, also unconditionally drop to _rwalld not only
if rpc.rwalld was started with euid 0 (as root).
ok deraadt@
|
|
switch the rtsocket message filter specification so you can or the macros
converting the routing socket message types into the mask used by the
filter. ie:
- ROUTE_SETFILTER(rtfilter, RTM_NEWADDR);
- ROUTE_SETFILTER(rtfilter, RTM_DELADDR);
- ROUTE_SETFILTER(rtfilter, RTM_IFINFO);
- ROUTE_SETFILTER(rtfilter, RTM_IFANNOUNCE);
+ rtfilter = ROUTE_FILTER(RTM_NEWADDR) | ROUTE_FILTER(RTM_DELADDR) |
+ ROUTE_FILTER(RTM_IFINFO) | ROUTE_FILTER(RTM_IFANNOUNCE);
there's a manpage change coming.
ok claudio@
|
|
Log the packets before checking the client state. Makes it easy to
find MACs for 'surprise' DHCP servers.
Positive comments from mbalmer@, jasper@.
|
|
first two terms so ifi is checked first.
|
|
|
|
socket dhclient will get.
ja ja claudio@
|
|
make source code fit on 80-column displays; while here, remove superfluous
comment sign.
ok krw@
|
|
|
|
binaries to stop working.
OK krw@, michele@, henning@, dlg@
|
|
- Xr dhclient-script on first mention, which is section 8 not 5
ok krw
|
|
|
|
to dhclient-script. Our default script only uses a few options so
others are unaffected by option modifiers. PR#5834 is thus rendered
moot.
Feedback & suggestions from jmc@, ok deraadt@.
|
|
|
|
give it about 4 seconds of (silent) grace period before doing the verbose
search for a link...
tested by various developers who got burned a bit
|
|
goes to background and listens on the routing socket for link to come
up before it retries.
- renew the lease whenever the link was lost and becomes active again.
- listen for link state changes on non-ethernet devices like wireless,
the link state becomes active when the wireless has been associated to
the AP and becomes active. this helps to automatically renew the lease
when the user is roaming.
ok beck@, deraadt@
|
|
deraadt@ OK
|
|
ok krw@ henning@
|
|
ok jmc@
|