Rtos API example
ip6_addr.h File Reference
IPv6 addresses. More...
Go to the source code of this file.
Data Structures | |
struct | ip6_addr |
This is the aligned version of ip6_addr_t, used as local variable, on the stack, etc. More... | |
Typedefs | |
typedef struct ip6_addr | ip6_addr_t |
IPv6 address. | |
Functions | |
int | ip6addr_aton (const char *cp, ip6_addr_t *addr) |
Check whether "cp" is a valid ascii representation of an IPv6 address and convert to a binary address. | |
char * | ip6addr_ntoa (const ip6_addr_t *addr) |
returns ptr to static buffer; not reentrant! | |
char * | ip6addr_ntoa_r (const ip6_addr_t *addr, char *buf, int buflen) |
Same as ipaddr_ntoa, but reentrant since a user-supplied buffer is used. |
Detailed Description
IPv6 addresses.
Definition in file ip6_addr.h.
Typedef Documentation
typedef struct ip6_addr ip6_addr_t |
IPv6 address.
Definition at line 63 of file ip6_addr.h.
Function Documentation
int ip6addr_aton | ( | const char * | cp, |
ip6_addr_t * | addr | ||
) |
Check whether "cp" is a valid ascii representation of an IPv6 address and convert to a binary address.
Returns 1 if the address is valid, 0 if not.
- Parameters:
-
cp IPv6 address in ascii representation (e.g. "FF01::1") addr pointer to which to save the ip address in network order
- Returns:
- 1 if cp could be converted to addr, 0 on failure
Definition at line 73 of file lwip_ip6_addr.c.
char* ip6addr_ntoa | ( | const ip6_addr_t * | addr ) |
returns ptr to static buffer; not reentrant!
returns ptr to static buffer; not reentrant!
returns ptr to static buffer; not reentrant!
- Parameters:
-
addr ip6 address in network order to convert
- Returns:
- pointer to a global static (!) buffer that holds the ASCII representation of addr
Definition at line 175 of file lwip_ip6_addr.c.
char* ip6addr_ntoa_r | ( | const ip6_addr_t * | addr, |
char * | buf, | ||
int | buflen | ||
) |
Same as ipaddr_ntoa, but reentrant since a user-supplied buffer is used.
- Parameters:
-
addr ip6 address in network order to convert buf target buffer where the string is stored buflen length of buf
- Returns:
- either pointer to buf which now holds the ASCII representation of addr or NULL if buf was too small
Definition at line 191 of file lwip_ip6_addr.c.
Generated on Sun Jul 17 2022 08:25:34 by 1.7.2