diff options
Diffstat (limited to 'app/lwip_glue.c')
-rw-r--r-- | app/lwip_glue.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/lwip_glue.c b/app/lwip_glue.c index b4370a2..d2dc4b5 100644 --- a/app/lwip_glue.c +++ b/app/lwip_glue.c @@ -14,6 +14,14 @@ void dispatch_lwip (void) } +static void if_status_changed (struct netif *netif) +{ + mdns_resp_netif_settings_changed (netif); +} + + + + void start_lwip (void) { @@ -22,6 +30,7 @@ void start_lwip (void) netif_add (&if0, NULL, NULL, NULL, NULL, steth_lwip_init, ethernet_input); + netif_set_status_callback (&if0, if_status_changed); /* Registers the default network interface.*/ netif_set_default (&if0); @@ -33,6 +42,9 @@ void start_lwip (void) httpd_init(); cgi_init(); + + mdns_resp_init(); + mdns_resp_add_netif (&if0, "clock", 5); } static sys_prot_t ethernet_irq_enabled = 1; |