add prototype for dns_name6 (Rolf Eike Beer)

add FMT_IP4 and FMT_IP6 for consistency
master
leitner 19 years ago
parent c3c46494a6
commit 3fc96fdc7f

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

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

@ -24,6 +24,7 @@ unsigned int fmt_ip6_flat(char *dest,const char *);
*/ */
#define IP6_FMT 40 #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 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}; */ extern const char V6loopback[16]; /*={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}; */

Loading…
Cancel
Save