Age | Commit message (Collapse) | Author |
|
longer live in a 10Mb/sec shared media world with 1Mhz Vaxen DHCP servers.
ok benno@ otto@ phessler@
|
|
reboot_timeout, etc.) when setting them to their defaults.
|
|
ok krw@
|
|
functions needing it.
This is the first step to support multiple interfaces in one dhclient(8)
instance.
ok krw@
|
|
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.
|
|
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@
|
|
is not necessary, and in fact quite annoying when I swtich networks and
want to get back to the init state quickly. Default instead to 1 second.
The very few users who encounter problems may edit dhclient.conf.
ok benno
krw does not object
|
|
each *.c file.
Inspired by mention of header silliness by Edgar Pettijohn and mmcc@
on tech@.
|
|
Search" if supplied by the server.
Requested by a few. Original diff from Ray Lai via tech@.
Tested & ok claudio@
|
|
Reported long ago by matthieu@. Also Jacob Berkman via the lists.
Tests and suggestions from Jacob and Matthieu.
|
|
or non-NULLness before calling free().
This batch from Benjamin Baier.
|
|
lease supersedes an earlier one.
|
|
|
|
|
|
'wrong interface' specification. So display that error message only for
non-static leases. i.e. when reading /var/db/dhclient.leases.<if>.
|
|
statements in dhclient.conf.
Recorded and static leases should now be bound to interfaces when
appropriate.
.... Ken
|
|
|
|
|
|
'next-server'. Modify new lease being cloned with their values
rather than overwriting original lease being cloned.
|
|
'filename' and 'server-name'. dhclient.conf can now override anything
in an offer or saved lease when creating the effective lease.
|
|
(classless-ms-static-routes). dhcpd can now specify and serve
these options and dhclient can recognize and use supersede, etc.
statements on them.
Based on a diff from Stefan Rinke. Thanks!
|
|
invalid IP in a reject statement.
|
|
variable.
|
|
signed 8 bit dhcp option types. So nuke getShort() and all 's' and
'b' format support. While here use '%u'/'%lu' and not
'%d'/'%ld' to snprintf() unsigned values.
|
|
make the code more readable. And prepare for some new things
that will need to be parsed.
ok dlg@
|
|
it actually does.
|
|
exiting.
|
|
than occasionally 'expected'. End all with a '.'.
|
|
encountering a ';'. I.e. when checking the token type, 'skip_to_semi()'
after 'parse_warn()' only when the parsed token wasn't a ';'.
|
|
recognition of zero length value vs parsing error. This lets us avoid
the erroneous consumption of the semicolon ending the 'X' value, and
the resulting accidental consumption of the following line in the file
being parsed.
|
|
the perfectly adequate parse_semi(). And some blocks didn't even
need to peek.
|
|
been invoked. Fixes silent loss of the statement following a broken or
inapplicable 'interface' declaration in a lease, or an unrecognized
lease attribute.
|
|
file opener will call new_parse() to initialize that amoung
other things. Nuke extraneous blank line in passing.
|
|
bother returning one.
|
|
of the loop and closes the file being parsed. And the previous
statement warns the user the leases file being parsed has been
determined to be corrupt. Eliminate further gilding in the form of an
'else' after the same 'if' clause includes the 'break'.
|
|
|
|
time.
|
|
|
|
statement in dhclient.conf.
|
|
put local functions prototypes and variables in their .c files, and
cross-file functions into .h files. Prompted by deraadt@.
|
|
file name without the server address seems silly.
Tested & ok uwe@
|
|
passing the correct destination for the default route, '0.0.0.0', rather
than the new lease address.
Populating egress group works this time.
Problem found the hard way by Chris Smith.
|
|
since the former relies on the latter and the latter breaks 'egress'
group populating.
|
|
routes option (121).
ok sthen@
|
|
pointless ones, make multiline comments readable, nuke '...' in
favour of '.', etc.
|
|
client->offered_leases into TAILQs.
|
|
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@.
|
|
|
|
an option list if it contains duplicate option names. Just ignore
the duplicates.
|
|
ok krw@
|