8 #define V4MAPPREFIX "::ffff:" 9 #define HOSTNAMELEN 1025 19 const static char ip4loopback[4] = {127,0,0,1};
48 const static unsigned char V4mappedprefix[12]={0,0,0,0,0,0,0,0,0,0,0xff,0xff};
49 const static unsigned char V6loopback[16]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1};
50 const static unsigned char V6any[16]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
unsigned int ip4_scan(struct ip_address *, char *)
ip4_scan parse IPv4 address string and convert to ip_address
unsigned int ip6_fmt(char *, struct ip6_address *)
ip6_fmt convert IPv6 address to compactified IPv6 address string
unsigned int ip4_fmt(char *, struct ip_address *)
ip4_fmt converts IPv4 address to dotted decimal string format
unsigned int ip6_scan(struct ip6_address *, char *)
ip6_scan parse compactified IPv6 address string and convert to ip6_address struct ...
unsigned int ip6_scanbracket(struct ip6_address *, char *)
ip6_scanbracket parse IPv6 string address enclosed in brackets
unsigned int ip6_bitstring(stralloc *, struct ip6_address *, int)
ip6_bitstring parse IPv6 address and represent as char string with length prefix
unsigned int ip4_bitstring(stralloc *, struct ip_address *, int)
ip4_bitstring parse IPv4 address and represent as char string with length prefix
unsigned int ip4_scanbracket(struct ip_address *, char *)
ip4_scanbracket parse IPv4 address string enclosed in brackets and convert to ip_address struct ...