Procházet zdrojové kódy

examples: ncdinterfacemonitor_test: watch all events not just link events

ambrop7 před 14 roky
rodič
revize
949e93d98a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      examples/ncdinterfacemonitor_test.c

+ 1 - 1
examples/ncdinterfacemonitor_test.c

@@ -79,7 +79,7 @@ int main (int argc, char **argv)
         goto fail2;
         goto fail2;
     }
     }
     
     
-    int watch_flags = NCDIFMONITOR_WATCH_LINK;
+    int watch_flags = NCDIFMONITOR_WATCH_LINK|NCDIFMONITOR_WATCH_IPV4_ADDR|NCDIFMONITOR_WATCH_IPV6_ADDR;
     
     
     if (!NCDInterfaceMonitor_Init(&monitor, ifindex, watch_flags, &reactor, NULL, monitor_handler, monitor_handler_error)) {
     if (!NCDInterfaceMonitor_Init(&monitor, ifindex, watch_flags, &reactor, NULL, monitor_handler, monitor_handler_error)) {
         DEBUG("NCDInterfaceMonitor_Init failed");
         DEBUG("NCDInterfaceMonitor_Init failed");