lwIP
2.1.0
Lightweight IP stack
|
#include "lwip/opt.h"
#include "lwip/ip_addr.h"
#include "lwip/def.h"
#include <string.h>
#include "lwip/ip4_addr.h"
Functions | |
int | ip6addr_aton (const char *cp, ip6_addr_t *addr) |
char * | ip6addr_ntoa (const ip6_addr_t *addr) |
char * | ip6addr_ntoa_r (const ip6_addr_t *addr, char *buf, int buflen) |
IPv6 addresses.
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.
cp | IPv6 address in ascii representation (e.g. "FF01::1") |
addr | pointer to which to save the ip address in network order |
char* ip6addr_ntoa | ( | const ip6_addr_t * | addr | ) |
Convert numeric IPv6 address into ASCII representation. returns ptr to static buffer; not reentrant!
addr | ip6 address in network order to convert |
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.
addr | ip6 address in network order to convert |
buf | target buffer where the string is stored |
buflen | length of buf |