Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of OmniWheels by
lwip_ip6_addr.c File Reference
IPv6 addresses. More...
Go to the source code of this file.
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) |
| Convert numeric IPv6 address into ASCII representation. | |
| 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 lwip_ip6_addr.c.
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 ) |
Convert numeric IPv6 address into ASCII representation.
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 Fri Jul 22 2022 04:54:07 by
1.7.2
