summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-05-05 22:41:04 +0000
committerLennart Poettering <lennart@poettering.net>2005-05-05 22:41:04 +0000
commit3b077d5a0fdcf96897ef26be574b6a4d69dd2c13 (patch)
tree5637b4168393b834d043fd399485c7ca338acacd
parent45fdb1e3b47d532d959aa04337296032a2641a1e (diff)
* reenable ipv6 and address record generation
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@44 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--iface.c6
-rw-r--r--main.c6
-rw-r--r--server.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/iface.c b/iface.c
index 54a5880..dc990ac 100644
--- a/iface.c
+++ b/iface.c
@@ -23,9 +23,9 @@ static void update_address_rr(flxInterfaceMonitor *m, flxInterfaceAddress *a, in
}
} else {
if (!a->entry_group) {
-/* a->entry_group = flx_entry_group_new(m->server, NULL, NULL); */
-/* flx_server_add_address(m->server, a->entry_group, a->interface->hardware->index, AF_UNSPEC, 0, NULL, &a->address); */
-/* flx_entry_group_commit(a->entry_group); */
+ a->entry_group = flx_entry_group_new(m->server, NULL, NULL);
+ flx_server_add_address(m->server, a->entry_group, a->interface->hardware->index, AF_UNSPEC, 0, NULL, &a->address);
+ flx_entry_group_commit(a->entry_group);
}
}
}
diff --git a/main.c b/main.c
index 987df22..efb6172 100644
--- a/main.c
+++ b/main.c
@@ -44,12 +44,12 @@ int main(int argc, char *argv[]) {
flx = flx_server_new(NULL);
- g = flx_entry_group_new(flx, entry_group_callback, NULL);
+/* g = flx_entry_group_new(flx, entry_group_callback, NULL); */
/* flx_server_add_text(flx, g, 0, AF_UNSPEC, FLX_ENTRY_UNIQUE, NULL, "hallo", NULL); */
- flx_server_add_service(flx, g, 0, AF_UNSPEC, "_http._tcp", "gurke", NULL, NULL, 80, "foo", NULL);
+/* flx_server_add_service(flx, g, 0, AF_UNSPEC, "_http._tcp", "gurke", NULL, NULL, 80, "foo", NULL); */
- flx_entry_group_commit(g);
+/* flx_entry_group_commit(g); */
flx_server_dump(flx, stdout);
diff --git a/server.c b/server.c
index 9e2b692..5cdf56d 100644
--- a/server.c
+++ b/server.c
@@ -481,7 +481,7 @@ flxServer *flx_server_new(GMainContext *c) {
s->need_entry_cleanup = s->need_group_cleanup = FALSE;
s->fd_ipv4 = flx_open_socket_ipv4();
- s->fd_ipv6 = -1 /*flx_open_socket_ipv6() */;
+ s->fd_ipv6 = flx_open_socket_ipv6();
if (s->fd_ipv6 < 0 && s->fd_ipv4 < 0) {
g_critical("Failed to create IP sockets.\n");