summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_multiport.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-11-18 12:27:54 +0100
committerPatrick McHardy <kaber@trash.net>2008-11-18 12:27:54 +0100
commit03d99486d8283552705b58dc55b6085dffc38792 (patch)
tree98a383ac7e646d596ba872a443dc96da4b60cb04 /extensions/libxt_multiport.c
parentc354105d3578e3dd1ec825a57005fe60c095f7cb (diff)
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>
Diffstat (limited to 'extensions/libxt_multiport.c')
-rw-r--r--extensions/libxt_multiport.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/libxt_multiport.c b/extensions/libxt_multiport.c
index 6efd6428..2552bbd8 100644
--- a/extensions/libxt_multiport.c
+++ b/extensions/libxt_multiport.c
@@ -507,7 +507,7 @@ static void multiport_save6_v1(const void *ip_void,
}
static struct xtables_match multiport_match = {
- .family = AF_INET,
+ .family = NFPROTO_IPV4,
.name = "multiport",
.revision = 0,
.version = XTABLES_VERSION,
@@ -522,7 +522,7 @@ static struct xtables_match multiport_match = {
};
static struct xtables_match multiport_match6 = {
- .family = AF_INET6,
+ .family = NFPROTO_IPV6,
.name = "multiport",
.revision = 0,
.version = XTABLES_VERSION,
@@ -537,7 +537,7 @@ static struct xtables_match multiport_match6 = {
};
static struct xtables_match multiport_match_v1 = {
- .family = AF_INET,
+ .family = NFPROTO_IPV4,
.name = "multiport",
.version = XTABLES_VERSION,
.revision = 1,
@@ -552,7 +552,7 @@ static struct xtables_match multiport_match_v1 = {
};
static struct xtables_match multiport_match6_v1 = {
- .family = AF_INET6,
+ .family = NFPROTO_IPV6,
.name = "multiport",
.version = XTABLES_VERSION,
.revision = 1,