diff --git a/infrastructure-centred/owlps-listener/owlps-listenerd.c b/infrastructure-centred/owlps-listener/owlps-listenerd.c index e7d1378..e253bff 100644 --- a/infrastructure-centred/owlps-listener/owlps-listenerd.c +++ b/infrastructure-centred/owlps-listener/owlps-listenerd.c @@ -88,6 +88,13 @@ int main(int argc, char *argv[]) action.sa_handler = sigterm_handler ; sigaction(SIGTERM, &action, NULL) ; + get_mac_addr(GET_WIFI_IFACE(), my_mac) ; + mac_string = mac_bytes_to_string(my_mac) ; + printf("My MAC address is: %s\n", mac_string) ; + free(mac_string) ; + get_ip_addr(GET_WIFI_IFACE(), my_ip) ; + printf("My IP address is: %s\n", my_ip) ; + #ifdef USE_PTHREAD /* Set up threads */ if (GET_KEEP_MONITOR()) @@ -102,13 +109,6 @@ int main(int argc, char *argv[]) } #endif // USE_PTHREAD - get_mac_addr(GET_WIFI_IFACE(), my_mac) ; - mac_string = mac_bytes_to_string(my_mac) ; - printf("My MAC address is: %s\n", mac_string) ; - free(mac_string) ; - get_ip_addr(GET_WIFI_IFACE(), my_ip) ; - printf("My IP address is: %s\n", my_ip) ; - ret = capture() ; // Capture loop #ifdef USE_CONFIG_FILE