summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_mac.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libxt_mac.c')
-rw-r--r--extensions/libxt_mac.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/extensions/libxt_mac.c b/extensions/libxt_mac.c
index 00996a0c..eb074676 100644
--- a/extensions/libxt_mac.c
+++ b/extensions/libxt_mac.c
@@ -1,4 +1,5 @@
/* Shared library add-on to iptables to add MAC address support. */
+#include <stdbool.h>
#include <stdio.h>
#include <netdb.h>
#include <string.h>
@@ -21,8 +22,8 @@ static void mac_help(void)
}
static const struct option mac_opts[] = {
- { "mac-source", 1, NULL, '1' },
- { .name = NULL }
+ {.name = "mac-source", .has_arg = true, .val = '1'},
+ XT_GETOPT_TABLEEND,
};
static void