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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libxt_mac.c b/extensions/libxt_mac.c
index 2fe5e7b4..f4128c01 100644
--- a/extensions/libxt_mac.c
+++ b/extensions/libxt_mac.c
@@ -112,7 +112,7 @@ static void mac_save(const void *ip, const struct xt_entry_match *match)
}
static struct xtables_match mac_match = {
- .family = AF_INET,
+ .family = NFPROTO_IPV4,
.name = "mac",
.version = XTABLES_VERSION,
.size = XT_ALIGN(sizeof(struct xt_mac_info)),
@@ -126,7 +126,7 @@ static struct xtables_match mac_match = {
};
static struct xtables_match mac_match6 = {
- .family = AF_INET6,
+ .family = NFPROTO_IPV6,
.name = "mac",
.version = XTABLES_VERSION,
.size = XT_ALIGN(sizeof(struct xt_mac_info)),