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_state.c b/extensions/libxt_state.c
index 3af2e48..95d7db5 100644
--- a/extensions/libxt_state.c
+++ b/extensions/libxt_state.c
@@ -136,7 +136,7 @@
}
static struct xtables_match state_match = {
- .family = AF_INET,
+ .family = NFPROTO_IPV4,
.name = "state",
.version = XTABLES_VERSION,
.size = XT_ALIGN(sizeof(struct xt_state_info)),
@@ -150,7 +150,7 @@
};
static struct xtables_match state_match6 = {
- .family = AF_INET6,
+ .family = NFPROTO_IPV6,
.name = "state",
.version = XTABLES_VERSION,
.size = XT_ALIGN(sizeof(struct xt_state_info)),