Age | Commit message (Collapse) | Author | Files | Lines |
|
This patch adds a function to add a RFC 1533- and 2132-compliant DHCP
client-id option (61) to sent DHCPv4 packets.
|
|
Support specifying NULL-terminated string or raw data for allocated
DHCP options.
|
|
|
|
|
|
|
|
|
|
|
|
This patch contains solicitation message support.
|
|
See relevant parts from these RFCs:
RFC 3315 - DHCP for IPv6
RFC 3646 - DNS configuration options for DHCP for IPv6
RFC 3736 - Stateless DHCP service for IPv6
RFC 4075 - SNTP configuration option for DHCPv6
The patch does not support authenticated information messages.
|
|
The patch adds support for information-request DHCPv6 message.
|
|
Fixed following error:
connmand[4547]: src/dhcp.c:dhcp_release() dhcp 0x8c6d3e8
connmand[4547]: DHCP: switch listening mode (3 ==> 0)
(connmand:4547): GLib-CRITICAL **: g_source_remove: assertion `tag > 0' failed
|
|
g_atomic_int_exchange_and_add() has been removed from glib 2.30
and g_atomic_int_add() should be used. Though there are still
quite a few distros out which do not ship a glib version with
g_atomic_int_add().
Instead of maintaing a compatiblilty glib layer we just use
the built-in functions for atomic memory access.
|
|
Make sure all file descriptor are closed.
|
|
This fix will cause the DHCP_REQUESTED_IP option to be sent to
the server.
Fixes BMC #21068
|
|
Given the following reproduction steps:
1) Set up an access point with a Class B IP address, say
10.2.40.254.
2) Set up the access point to provide DHCP leases over a range
10.2.40.2 through 10.2.40.253.
3) Set up a short lease renewal period of 5-10 minutes.
4) Allow the device to associate, connect and receive an IP
address.
5) Midway through the lease interval, change the access point to a
different IP address, say, 10.2.41.254.
6) Change the access point to issue DHCP leases over a new range,
10.2.41.2 through 10.2.41.253.
7) Watch as the access point resets, the connection is lost, the
connection is regained and as connman tries to get a new DHCP
lease.
Prior to commit 39825846, connman could receive a new but different
DHCP lease but connman would not program the confirmed lease to the
interface.
However, following that commit, it now programs the new, changed DHCP
lease to the interface but still believes the old lease is valid and
attempts to keep servicing the old renewal timeout for the prior but
now stale lease.
This patch cancels any existing, pending DHCP lease renewal timeout
following a DHCP lease configuration change.
|
|
|
|
I got build failing as below:
cc1: warnings being treated as errors
gdhcp/client.c: In function ‘alloc_dhcp_option’:
gdhcp/client.c:1455: error: implicit declaration of function ‘strnlen’
define _GNU_SOURCE fixes this problem.
|
|
|
|
IPv4 Link-Local negociation starts on gdhcp client failure.
|
|
Add G_IO_NVAL, G_IO_ERR and G_IO_HUP to the events list.
|
|
|
|
|
|
|
|
Currently the DHCP discover is retried five times with a timeout of
three seconds. This is not always enough if a bridge forward delay
is longer than 15 seconds is configured. So increase DHCP discover
attempts to ten times.
|
|
This is needed for the dhcp server implementation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Unhandled dhcp options will trigger a divide by zero exception.
|
|
|
|
|
|
|