mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-29 18:32:46 +00:00
Add some dual-stack notes to documentation
This commit is contained in:
parent
05a6d82fa1
commit
4b45baee10
@ -472,6 +472,8 @@ raw_new(u8_t proto)
|
||||
* could not be allocated.
|
||||
*
|
||||
* @param type IP address type, see IPADDR_TYPE_XX definitions.
|
||||
* If you want to listen to IPv4 and IPv6 (dual-stack) packets,
|
||||
* supply @ref IPADDR_TYPE_ANY as argument and bind to @ref IP_ANY_TYPE.
|
||||
* @param proto the protocol number (next header) of the IPv6 packet payload
|
||||
* (e.g. IP6_NEXTH_ICMP6)
|
||||
*
|
||||
|
@ -1603,6 +1603,8 @@ tcp_new(void)
|
||||
* The pcb is not put on any list until binding using tcp_bind().
|
||||
*
|
||||
* @param type IP address type, see IPADDR_TYPE_XX definitions.
|
||||
* If you want to listen to IPv4 and IPv6 (dual-stack) connections,
|
||||
* supply @ref IPADDR_TYPE_ANY as argument and bind to @ref IP_ANY_TYPE.
|
||||
* @return a new tcp_pcb that initially is in state CLOSED
|
||||
*/
|
||||
struct tcp_pcb *
|
||||
|
@ -1145,6 +1145,8 @@ udp_new(void)
|
||||
* Create a UDP PCB for specific IP type.
|
||||
*
|
||||
* @param type IP address type, see IPADDR_TYPE_XX definitions.
|
||||
* If you want to listen to IPv4 and IPv6 (dual-stack) packets,
|
||||
* supply @ref IPADDR_TYPE_ANY as argument and bind to @ref IP_ANY_TYPE.
|
||||
* @return The UDP PCB which was created. NULL if the PCB data structure
|
||||
* could not be allocated.
|
||||
*
|
||||
|
@ -47,9 +47,13 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** These are the values for ip_addr_t.type */
|
||||
/** Value for ip_addr_t.type: IPv4 */
|
||||
#define IPADDR_TYPE_V4 0U
|
||||
/** Value for ip_addr_t.type: IPv6 */
|
||||
#define IPADDR_TYPE_V6 6U
|
||||
/** Value for ip_addr_t.type: IPv4+IPv6 ("dual-stack")
|
||||
* @see tcp_new_ip_type(), udp_new_ip_type(), raw_new_ip_type().
|
||||
*/
|
||||
#define IPADDR_TYPE_ANY 46U
|
||||
|
||||
#if LWIP_IPV4 && LWIP_IPV6
|
||||
|
Loading…
x
Reference in New Issue
Block a user