Added API and test to add additional RRs (lAAAA RRs i.e.)
This commit is contained in:
11
testmdnsd.c
11
testmdnsd.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user