/* $Id: ipv6.h 616 2005-08-19 20:11:01Z bruce $ */ #ifndef NET__IPV6__H__ #define NET__IPV6__H__ #include /** \defgroup ipv6 ipv6: IPv6 Address Handling @{ */ /** IPv6 address structure. */ typedef struct { /** 128-bit IPv4 address, represented as 16 8-bit \c unsigned \c chars. */ uint8 addr[16]; } ipv6addr; /** IPv6 port number. */ typedef uint16 ipv6port; extern const ipv6addr IPV6ADDR_ANY; extern const ipv6addr IPV6ADDR_LOOPBACK; 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); /** @} */ #endif