DHCPv6 client implementation.
More...
DHCPv6 client implementation.
|
file | client.h |
| DHCPv6 client definitions.
|
|
|
|
void | dhcpv6_client_req_ia_pd (unsigned netif, unsigned pfx_len) |
| Configures the client to request prefix delegation for a network interface from a server. More...
|
|
◆ dhcpv6_client_auto_init()
void dhcpv6_client_auto_init |
( |
void |
| ) |
|
Auto-initializes the client in its own thread.
- Note
- Only available with (and called by) the
dhcpv6_client_auto_init
module.
◆ dhcpv6_client_conf_prefix()
void dhcpv6_client_conf_prefix |
( |
unsigned |
netif, |
|
|
const ipv6_addr_t * |
pfx, |
|
|
unsigned |
pfx_len, |
|
|
uint32_t |
valid, |
|
|
uint32_t |
pref |
|
) |
| |
Configures a prefix delegation lease that is provided by the server.
- Parameters
-
[in] | netif | Network interface the prefix delegation was for. |
[in] | pfx | Prefix for the prefix delegation. |
[in] | pfx_len | Length of pfx in bits. |
[in] | valid | Valid lifetime of the prefix delegation. |
[in] | pref | Preferred lifetime of the prefix delegation. |
◆ dhcpv6_client_get_duid_l2()
Get the link-layer address DUID for the client.
- Parameters
-
[in] | netif | The network interface the client is bound to. May be SOCK_ADDR_ANY_NETIF for any interface. |
[out] | duid | The resulting DUID. |
- Returns
- length of the
duid
on success.
-
0, on error.
◆ dhcpv6_client_init()
void dhcpv6_client_init |
( |
event_queue_t * |
event_queue, |
|
|
uint16_t |
netif |
|
) |
| |
Initializes the client.
- Precondition
event_queue->waiter != NULL
- Parameters
-
[in] | event_queue | Event queue to use with the client. Needs to be initialized in the handler thread. |
[in] | netif | The network interface the client should listen on. SOCK_ADDR_ANY_NETIF for any interface |
◆ dhcpv6_client_prefix_valid_until()
uint32_t dhcpv6_client_prefix_valid_until |
( |
unsigned |
netif, |
|
|
const ipv6_addr_t * |
pfx, |
|
|
unsigned |
pfx_len |
|
) |
| |
Determines how long the prefix delegation lease is still valid.
- Parameters
-
[in] | netif | Network interface the prefix delegation was for. |
[in] | pfx | Prefix of the prefix delegation |
[in] | pfx_len | Length of pfx in bits. |
- Returns
- Remaining valid lifetime of the prefix delegation lease in seconds.
◆ dhcpv6_client_req_ia_pd()
void dhcpv6_client_req_ia_pd |
( |
unsigned |
netif, |
|
|
unsigned |
pfx_len |
|
) |
| |
Configures the client to request prefix delegation for a network interface from a server.
- Precondition
pfx_len <= 128
- Parameters
-
[in] | netif | The interface to request the prefix delegation for. |
[in] | pfx_len | The desired length of the prefix (note that the server might not consider this request). Must be <= 128 |
◆ dhcpv6_client_start()
void dhcpv6_client_start |
( |
void |
| ) |
|