kconfig: split the lexer out of zconf.y
[carl9170fw.git] / tools / src / wol.c
index 640380625e1ef5c1654f1f61d4556636eece7f96..f2bd51b2208f20e4eb488c27fc65eba6d1557236 100644 (file)
 #include <sys/types.h>
 #include <sys/socket.h>
 
+#include <arpa/inet.h>
+#include <net/if.h>
+
 #include <linux/types.h>
 #include <linux/if_ether.h>    /* ETH_P_ALL */
 #include <linux/if_packet.h>   /* sockaddr_ll */
-#include <linux/if.h>          /* IFNAMSIZ */
 
 static int monitor_init(const char *ifname)
 {
@@ -187,7 +189,7 @@ int main(int argc, char **args)
                return EXIT_FAILURE;
 
        if (verbose)
-               fprintf(stdout, "Generating WOL packet for ["MAC_STR"].\n", MAC_ARG2(mac));
+               fprintf(stdout, "Generating %d WOL packet for ["MAC_STR"].\n", num, MAC_ARG2(mac));
 
        prepare_wol(wol_magic_tmpl, mac);