bglibs
ipv6.h
1 #ifndef NET__IPV6__H__
2 #define NET__IPV6__H__
3 
4 #include "sysdeps.h"
5 
11 typedef struct {
13  uint8 addr[16];
14 } ipv6addr;
16 typedef uint16 ipv6port;
17 
18 extern const ipv6addr IPV6ADDR_ANY;
19 extern const ipv6addr IPV6ADDR_LOOPBACK;
20 extern const ipv6addr IPV6ADDR_V4PREFIX;
21 
22 extern const char* ipv6_scan(const char* s, ipv6addr* addr);
23 extern const char* ipv6_format(const ipv6addr* addr);
24 extern unsigned fmt_ipv6addr(char* buffer, const ipv6addr* addr);
25 extern int ipv6_isv4mapped(const ipv6addr* addr);
26 
29 #endif
Definition: ipv6.h:11
const ipv6addr IPV6ADDR_ANY
Definition: ipv6_addr.c:6
const char * ipv6_format(const ipv6addr *addr)
Definition: ipv6_format.c:29
unsigned fmt_ipv6addr(char *buffer, const ipv6addr *addr)
Definition: ipv6_format.c:45
const ipv6addr IPV6ADDR_LOOPBACK
Definition: ipv6_addr.c:8
uint16 ipv6port
Definition: ipv6.h:16
const char * ipv6_scan(const char *s, ipv6addr *addr)
Definition: ipv6_scan.c:53
const ipv6addr IPV6ADDR_V4PREFIX
Definition: ipv6_addr.c:10
int ipv6_isv4mapped(const ipv6addr *addr)
Definition: ipv6_addr.c:13