sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
dhcp6.h
Go to the documentation of this file.
1
9
10
/*
11
* Copyright (c) 2018 Simon Goldschmidt
12
* All rights reserved.
13
*
14
* Redistribution and use in source and binary forms, with or without modification,
15
* are permitted provided that the following conditions are met:
16
*
17
* 1. Redistributions of source code must retain the above copyright notice,
18
* this list of conditions and the following disclaimer.
19
* 2. Redistributions in binary form must reproduce the above copyright notice,
20
* this list of conditions and the following disclaimer in the documentation
21
* and/or other materials provided with the distribution.
22
* 3. The name of the author may not be used to endorse or promote products
23
* derived from this software without specific prior written permission.
24
*
25
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
26
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
27
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
28
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
30
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
33
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
34
* OF SUCH DAMAGE.
35
*
36
* This file is part of the lwIP TCP/IP stack.
37
*
38
* Author: Simon Goldschmidt <goldsimon@gmx.de>
39
*/
40
41
#ifndef LWIP_HDR_IP6_DHCP6_H
42
#define LWIP_HDR_IP6_DHCP6_H
43
44
#include "
lwip/opt.h
"
45
46
#if LWIP_IPV6_DHCP6
/* don't build if not configured for use in lwipopts.h */
47
48
#include "
lwip/err.h
"
49
#include "
lwip/netif.h
"
50
51
#ifdef __cplusplus
52
extern
"C"
{
53
#endif
54
56
#define DHCP6_TIMER_MSECS 500
57
58
struct
dhcp6
59
{
61
u32_t xid;
63
u8_t pcb_allocated;
65
u8_t state;
67
u8_t tries;
69
u8_t request_config_pending;
71
u16_t request_timeout;
72
#if LWIP_IPV6_DHCP6_STATEFUL
73
/* @todo: add more members here to keep track of stateful DHCPv6 data, like lease times */
74
#endif
/* LWIP_IPV6_DHCP6_STATEFUL */
75
};
76
77
void
dhcp6_set_struct(
struct
netif
*
netif
,
struct
dhcp6 *dhcp6);
79
#define dhcp6_remove_struct(netif) netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP6, NULL)
80
void
dhcp6_cleanup(
struct
netif
*
netif
);
81
82
err_t dhcp6_enable_stateful(
struct
netif
*
netif
);
83
err_t dhcp6_enable_stateless(
struct
netif
*
netif
);
84
void
dhcp6_disable(
struct
netif
*
netif
);
85
86
void
dhcp6_tmr(
void
);
87
88
void
dhcp6_nd6_ra_trigger(
struct
netif
*
netif
, u8_t managed_addr_config, u8_t other_config);
89
90
#if LWIP_DHCP6_GET_NTP_SRV
94
extern
void
dhcp6_set_ntp_servers(u8_t num_ntp_servers,
const
ip_addr_t* ntp_server_addrs);
95
#endif
/* LWIP_DHCP6_GET_NTP_SRV */
96
97
#define netif_dhcp6_data(netif) ((struct dhcp6*)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP6))
98
99
#ifdef __cplusplus
100
}
101
#endif
102
103
#endif
/* LWIP_IPV6_DHCP6 */
104
105
#endif
/* LWIP_HDR_IP6_DHCP6_H */
err.h
netif.h
opt.h
netif
Definition
tcpip.h:1271
core
ps2ip
include
lwip_include
lwip
dhcp6.h
Generated by
1.18.0