History log of /freebsd/sbin/dhclient/dhclient.c (Results 126 – 150 of 161)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# b35f2511 25-Jul-2005 Sam Leffler <sam@FreeBSD.org>

treat REASSOC events just like ASSOC

MFC after: 3 days


# a36c0b6b 30-Jun-2005 Brooks Davis <brooks@FreeBSD.org>

Don't complain when we receive smtp, pop, nntp, www, finger, and irc
server options.

Reported by: Max Boyarov <max_b at tut dot by>
Approved by: re (dhclient blanket)


# b388f1cb 30-Jun-2005 Brooks Davis <brooks@FreeBSD.org>

People like to do RFC violating things with the domain-name option and
include a space seperated list of domains instead of the domain of the
host. This is supported on too many platforms to break f

People like to do RFC violating things with the domain-name option and
include a space seperated list of domains instead of the domain of the
host. This is supported on too many platforms to break for now so,
remove validation of this option for the moment.

The correct solution longer term is to implement RFC 3397 support and
then treat domain-name options containing space seperated lists of
domains as domain-search options for backwards compatability.

Approved by: re (dhclient blanket)

show more ...


# 59eac186 14-Jun-2005 Brooks Davis <brooks@FreeBSD.org>

Avoid a null pointer dereference by not expiring our lease if we don't
have an active one.

Submitted by: sam
Reported by: James Snow <snow at teardrop dot org>
Approved by: re (dhclient blanket)


# 9c13d9cd 07-Jun-2005 Brooks Davis <brooks@FreeBSD.org>

Fix build on 64-bit platforms where time_t is 64 bit. Since where
talking about time related to leases, it should be OK to cast these to
(int)s rather than using intmax_t.

Submitted by: ru
Pointy h

Fix build on 64-bit platforms where time_t is 64 bit. Since where
talking about time related to leases, it should be OK to cast these to
(int)s rather than using intmax_t.

Submitted by: ru
Pointy hat: brooks

show more ...


# 2b19b6fc 07-Jun-2005 Brooks Davis <brooks@FreeBSD.org>

Define _PATH_VAREMPTY.

Add a -b option to background immediatly.

Add support for 802.11 routing messages to "instantly" renegotiate
at lease when we associate with a new network.

Submitted by: sam


# 47c08596 07-Jun-2005 Brooks Davis <brooks@FreeBSD.org>

Import the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tag
OPENBSD_3_7).


# 24bd614b 07-Jun-2005 Brooks Davis <brooks@FreeBSD.org>

This commit was generated by cvs2svn to compensate for changes in r147072,
which included commits to RCS files with non-trunk default branches.


# 7e857dd1 12-Jun-2009 Oleksandr Tymoshenko <gonzo@FreeBSD.org>

- Merge from HEAD


# 043bcc8d 08-Jun-2009 Brian Somers <brian@FreeBSD.org>

Fix an off by one error when we limit append/prepend text sizes based on our
internal buffer sizes.

When we 'append', assume we're appending to text. Some MS dhcp servers will
give us a string with

Fix an off by one error when we limit append/prepend text sizes based on our
internal buffer sizes.

When we 'append', assume we're appending to text. Some MS dhcp servers will
give us a string with the length including the trailing NUL. when we 'append
domain-name', we get something like "search x.y\000 z" in resolv.conf :(

MFC after: 1 week
Security: A buffer overflow (by one NUL byte) was possible.

show more ...


Revision tags: release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0
# 38e755fd 17-Oct-2008 Brooks Davis <brooks@FreeBSD.org>

Support the remaining options listed in dhcp-options(5) and RFC 2132.

PR: bin/127076
Submitted by: jkim
MFC after: 1 week


# 70892546 30-Jun-2008 Ed Schouten <ed@FreeBSD.org>

Run the privileged dhclient process in its own session.

In the MPSAFE TTY branch, I noticed PTY's to be leaked, because
dhclient's privileged process was run inside the session of, say, the
login sh

Run the privileged dhclient process in its own session.

In the MPSAFE TTY branch, I noticed PTY's to be leaked, because
dhclient's privileged process was run inside the session of, say, the
login shell. Make sure we call setsid() here.

Approved by: philip (mentor), brooks

show more ...


# 61063e47 22-Mar-2008 Sam Leffler <sam@FreeBSD.org>

Defer state change on disassociate to avoid unnecessarily dropping the
lease: track the current bssid and if it changes (as reported in an
assoc/reassoc) event only then kick the state machine. This

Defer state change on disassociate to avoid unnecessarily dropping the
lease: track the current bssid and if it changes (as reported in an
assoc/reassoc) event only then kick the state machine. This gives us
immediate response when roaming but otherwise causes us to fallback on
the normal state machine.

Reviewed by: brooks, jhb
MFC after: 3 weeks

show more ...


# 043f1935 22-Mar-2008 Sam Leffler <sam@FreeBSD.org>

correct syslog mask so LOG_DEBUG msgs are not lost

MFC after: 2 weeks


Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0
# 2fcc7370 09-Feb-2007 Ed Maste <emaste@FreeBSD.org>

Implement RFC3442, the Classless Static Route option.

The original DHCP specification includes a route option but it supports
only class-based routes. RFC3442 adds support for specifying the netmas

Implement RFC3442, the Classless Static Route option.

The original DHCP specification includes a route option but it supports
only class-based routes. RFC3442 adds support for specifying the netmask
width for each static route. A variable length encoding is used to minimize
the size of this option.

PR: bin/99534
Submitted by: Andrey V. Elsukov <bu7cher@yandex.ru>
Reviewed by: brooks

show more ...


# a0b5cadc 29-Jan-2007 Brooks Davis <brooks@FreeBSD.org>

Actually implement rev 1.12 for host names and NIS domain names. We
were removing the invalid option, but still rejecting the lease.

Reported by: Yoshihiko Sarumaru <mistral at imasy dot or dot jp>


Revision tags: release/6.2.0_cvs, release/6.2.0
# 3dd3357a 21-Aug-2006 Brian Somers <brian@FreeBSD.org>

Revert the addition of -p. It's flawed in that dhclient should not run
on an interface without carrier. devd should be used instead to handle
link up/down events.

Put on the right path by: brooks,

Revert the addition of -p. It's flawed in that dhclient should not run
on an interface without carrier. devd should be used instead to handle
link up/down events.

Put on the right path by: brooks, sam

show more ...


# 43cb852d 17-Aug-2006 Brian Somers <brian@FreeBSD.org>

Correct usage()


# 9341e8dd 17-Aug-2006 Brian Somers <brian@FreeBSD.org>

Add a -p switch to dhclient. The switch tells dhclient to persist
despite the interface link status.

Add dhclient_flags_iface and background_dhclient_iface rc.conf options.
(where iface is a specif

Add a -p switch to dhclient. The switch tells dhclient to persist
despite the interface link status.

Add dhclient_flags_iface and background_dhclient_iface rc.conf options.
(where iface is a specific interface). These can be used to give
interface specific flags to dhclient.

Reviewed by: brooks@

show more ...


# 473c2d12 04-Jul-2006 Jung-uk Kim <jkim@FreeBSD.org>

Send client identifier unconditionally. My ancient D-Link router response
with NACK if I don't set it. Setting 'option dhcp-client-identifier' is
alternative but it is inconvenient because I have t

Send client identifier unconditionally. My ancient D-Link router response
with NACK if I don't set it. Setting 'option dhcp-client-identifier' is
alternative but it is inconvenient because I have to keep the list of
all MAC addresses. As bin/94743 pointed out, it is always sent from
Windows clients and I found Mac OS X does the same.

OK'd by: brooks

show more ...


# 64948285 23-May-2006 Warner Losh <imp@FreeBSD.org>

Remove 'n' from the getopt string. There's no -n option that is
parsed, so it winds up at usage anyway.

Add 'b' to the usage summary. Noticed by Ben Mesander.


Revision tags: release/5.5.0_cvs, release/5.5.0
# fcab8add 08-May-2006 Brooks Davis <brooks@FreeBSD.org>

Be more like Windows and Linux and send our hostname in the host-name
option if none is given in the config file. Also add #ifdefd out
support for sending a client ID based on our MAC address.

PR:

Be more like Windows and Linux and send our hostname in the host-name
option if none is given in the config file. Also add #ifdefd out
support for sending a client ID based on our MAC address.

PR: bin/94743, bin/76401
Submitted by: Frank Behrens <frank at pinky dot sax dot de>
X-MFC after: 6.1-RELEASE

show more ...


Revision tags: release/6.1.0_cvs, release/6.1.0
# dfad96ea 10-Jan-2006 Brooks Davis <brooks@FreeBSD.org>

Allow users to add aliases to the interface.

PR: bin/87465 (different solution used)
MFC after: 1 week


# 82dbbc41 10-Dec-2005 Brooks Davis <brooks@FreeBSD.org>

When we get a bogus hostname in an option, drop the option rather than
refusing the lease. This allow obtaining leases on misadministered
networks that use host names with underscores in them.

MFC

When we get a bogus hostname in an option, drop the option rather than
refusing the lease. This allow obtaining leases on misadministered
networks that use host names with underscores in them.

MFC After: 3 days

show more ...


Revision tags: release/6.0.0_cvs, release/6.0.0
# 40767e22 02-Sep-2005 Brooks Davis <brooks@FreeBSD.org>

When we supersed the subnet-mask, write the forced value to the lease
file. This is what the ISC client does.

Submitted by: Rostislav Krasny <rosti dot bsd at gmail dot com>


1234567