Added API and test to add additional RRs (lAAAA RRs i.e.)

This commit is contained in:
A Weinlein
2012-12-21 18:02:50 +01:00
parent 501803d9d3
commit 3acbda1c5d
3 changed files with 28 additions and 0 deletions

View File

@@ -47,6 +47,17 @@ int main(int argc, char *argv[]) {
mdnsd_set_hostname(svr, hostname, inet_addr("192.168.0.29"));
struct rr_entry *a2_e = NULL;
a2_e = rr_create_a(create_nlabel(hostname), inet_addr("192.168.0.31"));
mdnsd_add_rr(svr, a2_e);
struct rr_entry *aaaa_e = NULL;
struct in6_addr v6addr;
inet_pton(AF_INET6, "fe80::e2f8:47ff:fe20:28e0", &v6addr);
aaaa_e = rr_create_aaaa(create_nlabel(hostname), &v6addr);
mdnsd_add_rr(svr, aaaa_e);
const char *txt[] = {
"path=/mywebsite",
NULL