src: use NFPROTO_ constants
Resync netfilter.h from the latest kernel and make use of the new
NFPROTO_ constants that have been introduced.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
diff --git a/extensions/libxt_physdev.c b/extensions/libxt_physdev.c
index a40cdf7..0572aba 100644
--- a/extensions/libxt_physdev.c
+++ b/extensions/libxt_physdev.c
@@ -163,7 +163,7 @@
}
static struct xtables_match physdev_match = {
- .family = AF_INET,
+ .family = NFPROTO_IPV4,
.name = "physdev",
.version = XTABLES_VERSION,
.size = XT_ALIGN(sizeof(struct xt_physdev_info)),
@@ -177,7 +177,7 @@
};
static struct xtables_match physdev_match6 = {
- .family = AF_INET6,
+ .family = NFPROTO_IPV6,
.name = "physdev",
.version = XTABLES_VERSION,
.size = XT_ALIGN(sizeof(struct xt_physdev_info)),