19 i =
fmt_ulong(name + namelen + 1,(
unsigned long) (
unsigned char) ip[3]);
22 i =
fmt_ulong(name + namelen + 1,(
unsigned long) (
unsigned char) ip[2]);
25 i =
fmt_ulong(name + namelen + 1,(
unsigned long) (
unsigned char) ip[1]);
28 i =
fmt_ulong(name + namelen + 1,(
unsigned long) (
unsigned char) ip[0]);
31 byte_copy(name + namelen,14,
"\7in-addr\4arpa\0");
39 for (j = 0; j < 16; j++) {
41 name[j * 4 + 1] =
tohex(ip[15 - j] & 15);
43 name[j * 4 + 3] =
tohex((
unsigned char)ip[15 - j] >> 4);
45 byte_copy(name + 4 * 16,10,
"\3ip6\4arpa\0");
int dns_name4_domain(char name[DNS_NAME4_DOMAIN], const char ip[4])
int dns_name6_domain(char name[DNS_NAME6_DOMAIN], const char ip[16])
conversion function declarations
unsigned int fmt_ulong(char *, unsigned long)
void byte_copy(void *, unsigned int, const void *)