ipv6.h
#ifndef NET__IPV6__H__
#define NET__IPV6__H__
#include "sysdeps.h"
typedef struct {
uint8 addr[16];
} ipv6addr;
typedef uint16 ipv6port;
extern const ipv6addr IPV6ADDR_ANY;
extern const ipv6addr IPV6ADDR_LOOPBACK;
extern const ipv6addr IPV6ADDR_V4PREFIX;
extern const char* ipv6_scan(const char* s, ipv6addr* addr);
extern const char* ipv6_format(const ipv6addr* addr);
extern unsigned fmt_ipv6addr(char* buffer, const ipv6addr* addr);
extern int ipv6_isv4mapped(const ipv6addr* addr);
#endif
IPV6ADDR_V4PREFIX
const ipv6addr IPV6ADDR_V4PREFIX
Definition ipv6_addr.c:10
IPV6ADDR_LOOPBACK
const ipv6addr IPV6ADDR_LOOPBACK
Definition ipv6_addr.c:8
ipv6port
uint16 ipv6port
Definition ipv6.h:16
fmt_ipv6addr
unsigned fmt_ipv6addr(char *buffer, const ipv6addr *addr)
Definition ipv6_format.c:45
ipv6_format
const char * ipv6_format(const ipv6addr *addr)
Definition ipv6_format.c:29
ipv6_isv4mapped
int ipv6_isv4mapped(const ipv6addr *addr)
Definition ipv6_addr.c:13
IPV6ADDR_ANY
const ipv6addr IPV6ADDR_ANY
Definition ipv6_addr.c:6
ipv6_scan
const char * ipv6_scan(const char *s, ipv6addr *addr)
Definition ipv6_scan.c:53
ipv6addr
Definition ipv6.h:11
ipv6addr::addr
uint8 addr[16]
Definition ipv6.h:13