Browse Source

add prototype for dns_name6 (Rolf Eike Beer)

add FMT_IP4 and FMT_IP6 for consistency
master
Felix von Leitner 16 years ago
parent
commit
3613fa18ff
  1. 1
      dns.h
  2. 1
      ip4.h
  3. 1
      ip6.h

1
dns.h

@ -91,5 +91,6 @@ int dns_ip6_qualify(stralloc *,stralloc *,const stralloc *);
#define DNS_IP6_ARPA 1
void dns_name6_domain(char *,const char *,int);
#define DNS_NAME6_DOMAIN (4*16+11)
int dns_name6(stralloc *,const char *);
#endif

1
ip4.h

@ -9,6 +9,7 @@ unsigned int fmt_ip4(char *dest,const char *ip);
#define ip4_fmt fmt_ip4
#define IP4_FMT 20
#define FMT_IP4 20
extern const char ip4loopback[4]; /* = {127,0,0,1};*/

1
ip6.h

@ -24,6 +24,7 @@ unsigned int fmt_ip6_flat(char *dest,const char *);
*/
#define IP6_FMT 40
#define FMT_IP6 40
extern const char V4mappedprefix[12]; /*={0,0,0,0,0,0,0,0,0,0,0xff,0xff}; */
extern const char V6loopback[16]; /*={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}; */

Loading…
Cancel
Save