]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
extensions: use NFPROTO_UNSPEC for .family field
authorJan Engelhardt <jengelh@medozas.de>
Mon, 1 Jun 2009 09:56:23 +0000 (11:56 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Mon, 1 Jun 2009 09:57:13 +0000 (11:57 +0200)
This constant would be the designated one for the .family field; it
also, given recent changes, makes grep for NFPROTO_UNSPEC work to
finally recollect all manpages.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
17 files changed:
extensions/libxt_CLASSIFY.c
extensions/libxt_MARK.c
extensions/libxt_RATEEST.c
extensions/libxt_SECMARK.c
extensions/libxt_TRACE.c
extensions/libxt_cluster.c
extensions/libxt_length.c
extensions/libxt_limit.c
extensions/libxt_mark.c
extensions/libxt_pkttype.c
extensions/libxt_quota.c
extensions/libxt_rateest.c
extensions/libxt_standard.c
extensions/libxt_statistic.c
extensions/libxt_string.c
extensions/libxt_time.c
extensions/libxt_u32.c

index 7db2e4cd522ac3faaa0cc9502e32522713098e47..82b8f4e0f98d10e1fa260aea47f2ecc25de3460a 100644 (file)
@@ -96,7 +96,7 @@ CLASSIFY_save(const void *ip, const struct xt_entry_target *target)
 }
 
 static struct xtables_target classify_target = { 
-       .family         = AF_UNSPEC,
+       .family         = NFPROTO_UNSPEC,
        .name           = "CLASSIFY",
        .version        = XTABLES_VERSION,
        .size           = XT_ALIGN(sizeof(struct xt_classify_target_info)),
index ec2fe96aeb46260b8be59ce838cabc11f22dd4ca..ff48a76476bb8f2dede8d4be40366a1264aa5cca 100644 (file)
@@ -326,7 +326,7 @@ static struct xtables_target mark_tg_reg_v2 = {
        .version       = XTABLES_VERSION,
        .name          = "MARK",
        .revision      = 2,
-       .family        = AF_UNSPEC,
+       .family        = NFPROTO_UNSPEC,
        .size          = XT_ALIGN(sizeof(struct xt_mark_tginfo2)),
        .userspacesize = XT_ALIGN(sizeof(struct xt_mark_tginfo2)),
        .help          = mark_tg_help,
index 1a7b0a9f14f8f0cb71589c4faa410f32bc5bdec2..4b7831ff6f430f61815e5ff9f1de68f61044752f 100644 (file)
@@ -202,7 +202,7 @@ RATEEST_save(const void *ip, const struct xt_entry_target *target)
 }
 
 static struct xtables_target rateest_tg_reg = {
-       .family         = AF_UNSPEC,
+       .family         = NFPROTO_UNSPEC,
        .name           = "RATEEST",
        .version        = XTABLES_VERSION,
        .size           = XT_ALIGN(sizeof(struct xt_rateest_target_info)),
index 0c09c88ec3f51cf5590e6027b7dbb1f004da2d84..2152b6fcd3aee3d5653cbc41bfff6238c1dcf251 100644 (file)
@@ -93,7 +93,7 @@ static void SECMARK_save(const void *ip, const struct xt_entry_target *target)
 }
 
 static struct xtables_target secmark_target = {
-       .family         = AF_UNSPEC,
+       .family         = NFPROTO_UNSPEC,
        .name           = "SECMARK",
        .version        = XTABLES_VERSION,
        .revision       = 0,
index b8eb969d8b2fb90b76807ea66d93eac98dfcdbbc..344b80dcb060b26a45540a81482a6888f32870d2 100644 (file)
@@ -19,7 +19,7 @@ static int TRACE_parse(int c, char **argv, int invert, unsigned int *flags,
 }
 
 static struct xtables_target trace_target = {
-       .family         = AF_UNSPEC,
+       .family         = NFPROTO_UNSPEC,
        .name           = "TRACE",
        .version        = XTABLES_VERSION,
        .size           = XT_ALIGN(0),
index 1659a60efdf67a9f561ac6f4d82d8a97259743e9..c80afe6bd7aec27733e4611e074dd0e04c2acb78 100644 (file)
@@ -219,7 +219,7 @@ cluster_save(const void *ip, const struct xt_entry_match *match)
 }
 
 static struct xtables_match cluster_mt_reg = {
-       .family         = AF_UNSPEC,
+       .family         = NFPROTO_UNSPEC,
        .name           = "cluster",
        .version        = XTABLES_VERSION,
        .size           = XT_ALIGN(sizeof(struct xt_cluster_match_info)),
index 7bb31a8379492ee38316329a7a0e14a3d023f20f..0f954cf8c8685cc1f8f62366f36dd19439e2bab7 100644 (file)
@@ -114,7 +114,7 @@ static void length_save(const void *ip, const struct xt_entry_match *match)
 }
 
 static struct xtables_match length_match = {
-       .family         = AF_UNSPEC,
+       .family         = NFPROTO_UNSPEC,
        .name           = "length",
        .version        = XTABLES_VERSION,
        .size           = XT_ALIGN(sizeof(struct xt_length_info)),
index 498f009a613194a7db8b286a95cb302df7d8268a..8ca921c6706f9b3ef485779e1a992d6b6b209e6f 100644 (file)
@@ -158,7 +158,7 @@ static void limit_save(const void *ip, const struct xt_entry_match *match)
 }
 
 static struct xtables_match limit_match = {
-       .family         = AF_UNSPEC,
+       .family         = NFPROTO_UNSPEC,
        .name           = "limit",
        .version        = XTABLES_VERSION,
        .size           = XT_ALIGN(sizeof(struct xt_rateinfo)),
index 0edff7487f8781c7b5c4dd60b9e5e596fb3231c1..6f8cc57066d8cbc3777dbc63673192787d86354b 100644 (file)
@@ -144,7 +144,7 @@ mark_save(const void *ip, const struct xt_entry_match *match)
 }
 
 static struct xtables_match mark_match = {
-       .family         = AF_UNSPEC,
+       .family         = NFPROTO_UNSPEC,
        .name           = "mark",
        .revision       = 0,
        .version        = XTABLES_VERSION,
@@ -162,7 +162,7 @@ static struct xtables_match mark_mt_reg = {
        .version        = XTABLES_VERSION,
        .name           = "mark",
        .revision       = 1,
-       .family         = AF_UNSPEC,
+       .family         = NFPROTO_UNSPEC,
        .size           = XT_ALIGN(sizeof(struct xt_mark_mtinfo1)),
        .userspacesize  = XT_ALIGN(sizeof(struct xt_mark_mtinfo1)),
        .help           = mark_mt_help,
index e3db2aa986b5277a05c07acc8842a660f3c1754e..7586c7f050be573dcc7f765c2d0192222e6187f5 100644 (file)
@@ -139,7 +139,7 @@ static void pkttype_save(const void *ip, const struct xt_entry_match *match)
 }
 
 static struct xtables_match pkttype_match = {
-       .family         = AF_UNSPEC,
+       .family         = NFPROTO_UNSPEC,
        .name           = "pkttype",
        .version        = XTABLES_VERSION,
        .size           = XT_ALIGN(sizeof(struct xt_pkttype_info)),
index 4c1bcb009b99bf3442123f55df5c9ca8c74a6739..0ccc94bbc98df093019632846db7ed6f0717a72c 100644 (file)
@@ -74,7 +74,7 @@ quota_parse(int c, char **argv, int invert, unsigned int *flags,
 }
 
 static struct xtables_match quota_match = {
-       .family         = AF_UNSPEC,
+       .family         = NFPROTO_UNSPEC,
        .name           = "quota",
        .version        = XTABLES_VERSION,
        .size           = XT_ALIGN(sizeof (struct xt_quota_info)),
index 9f3a436dee48ef7659a12ffccaddab973d132d6a..54a7579a661c1c1218c58be57a8384ce734b9cf6 100644 (file)
@@ -432,7 +432,7 @@ rateest_save(const void *ip, const struct xt_entry_match *match)
 }
 
 static struct xtables_match rateest_mt_reg = {
-       .family         = AF_UNSPEC,
+       .family         = NFPROTO_UNSPEC,
        .name           = "rateest",
        .version        = XTABLES_VERSION,
        .size           = XT_ALIGN(sizeof(struct xt_rateest_match_info)),
index 54e13483ac46ebd1a9fea5404c24d48ccfc67afb..56dc2d291465853d16380177f5f2cffdf2aa0120 100644 (file)
@@ -21,7 +21,7 @@ static int standard_parse(int c, char **argv, int invert, unsigned int *flags,
 }
 
 static struct xtables_target standard_target = {
-       .family         = AF_UNSPEC,
+       .family         = NFPROTO_UNSPEC,
        .name           = "standard",
        .version        = XTABLES_VERSION,
        .size           = XT_ALIGN(sizeof(int)),
index 5b036864e620bcc4804ca32f54c732b4ca06ffe6..913aa2c783f75f384fbdafd3d628ba4be576b877 100644 (file)
@@ -160,7 +160,7 @@ static void statistic_save(const void *ip, const struct xt_entry_match *match)
 }
 
 static struct xtables_match statistic_match = {
-       .family         = AF_UNSPEC,
+       .family         = NFPROTO_UNSPEC,
        .name           = "statistic",
        .version        = XTABLES_VERSION,
        .size           = XT_ALIGN(sizeof(struct xt_statistic_info)),
index ba4b720a81899a8cab62446f8ae458227e7bd027..18e3ed258fac4eb7aefcdb07fadd0f8ba769a946 100644 (file)
@@ -353,7 +353,7 @@ static void string_save(const void *ip, const struct xt_entry_match *match)
 static struct xtables_match string_match = {
     .name              = "string",
     .revision          = 0,
-    .family            = AF_UNSPEC,
+    .family            = NFPROTO_UNSPEC,
     .version           = XTABLES_VERSION,
     .size              = XT_ALIGN(sizeof(struct xt_string_info)),
     .userspacesize     = offsetof(struct xt_string_info, config),
@@ -369,7 +369,7 @@ static struct xtables_match string_match = {
 static struct xtables_match string_match_v1 = {
     .name              = "string",
     .revision          = 1,
-    .family            = AF_UNSPEC,
+    .family            = NFPROTO_UNSPEC,
     .version           = XTABLES_VERSION,
     .size              = XT_ALIGN(sizeof(struct xt_string_info)),
     .userspacesize     = offsetof(struct xt_string_info, config),
index 1c812602c1459194d07791d73ea66fd0aa847707..098fc9c9d4d5fe764b4862edfb7c382deb2124ee 100644 (file)
@@ -467,7 +467,7 @@ static void time_save(const void *ip, const struct xt_entry_match *match)
 
 static struct xtables_match time_match = {
        .name          = "time",
-       .family        = AF_UNSPEC,
+       .family        = NFPROTO_UNSPEC,
        .version       = XTABLES_VERSION,
        .size          = XT_ALIGN(sizeof(struct xt_time_info)),
        .userspacesize = XT_ALIGN(sizeof(struct xt_time_info)),
index c2aeb271363f79f973aeab591846c7e1c8c2825b..8e149c1b9e7340ca3542f62ac45735d4211c1d71 100644 (file)
@@ -267,7 +267,7 @@ static void u32_save(const void *ip, const struct xt_entry_match *match)
 
 static struct xtables_match u32_match = {
        .name          = "u32",
-       .family        = AF_UNSPEC,
+       .family        = NFPROTO_UNSPEC,
        .version       = XTABLES_VERSION,
        .size          = XT_ALIGN(sizeof(struct xt_u32)),
        .userspacesize = XT_ALIGN(sizeof(struct xt_u32)),