]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Replaces ip6t_entry_* with xt_entry_* in matches/targets
authorYasuyuki KOZAKAI <yasuyuki@netfilter.org>
Tue, 24 Jul 2007 05:58:56 +0000 (05:58 +0000)
committerYasuyuki KOZAKAI <yasuyuki@netfilter.org>
Tue, 24 Jul 2007 05:58:56 +0000 (05:58 +0000)
34 files changed:
extensions/libip6t_CONNMARK.c
extensions/libip6t_CONNSECMARK.c
extensions/libip6t_HL.c
extensions/libip6t_LOG.c
extensions/libip6t_MARK.c
extensions/libip6t_NFQUEUE.c
extensions/libip6t_REJECT.c
extensions/libip6t_SECMARK.c
extensions/libip6t_TCPMSS.c
extensions/libip6t_ah.c
extensions/libip6t_condition.c
extensions/libip6t_connmark.c
extensions/libip6t_dst.c
extensions/libip6t_esp.c
extensions/libip6t_eui64.c
extensions/libip6t_frag.c
extensions/libip6t_hbh.c
extensions/libip6t_hl.c
extensions/libip6t_icmp6.c
extensions/libip6t_ipv6header.c
extensions/libip6t_length.c
extensions/libip6t_limit.c
extensions/libip6t_mac.c
extensions/libip6t_mark.c
extensions/libip6t_mh.c
extensions/libip6t_multiport.c
extensions/libip6t_owner.c
extensions/libip6t_physdev.c
extensions/libip6t_policy.c
extensions/libip6t_rt.c
extensions/libip6t_standard.c
extensions/libip6t_state.c
extensions/libip6t_tcp.c
extensions/libip6t_udp.c

index 9506f2623bfeeca62257e98332ecde2bd585040c..86b8e0f743b96040fbdb7a530c9c636b9f1269c0 100644 (file)
@@ -58,7 +58,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ip6t_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -67,7 +67,7 @@ init(struct ip6t_entry_target *t, unsigned int *nfcache)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
-      struct ip6t_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ipt_connmark_target_info *markinfo
                = (struct ipt_connmark_target_info *)(*target)->data;
@@ -145,7 +145,7 @@ print_mask(const char *text, unsigned long mask)
 /* Prints out the target info. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ipt_connmark_target_info *markinfo =
@@ -174,7 +174,7 @@ print(const struct ip6t_ip6 *ip,
 
 /* Saves the target into in parsable form to stdout. */
 static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_target *target)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_target *target)
 {
        const struct ipt_connmark_target_info *markinfo =
                (const struct ipt_connmark_target_info *)target->data;
index b11ed0769074dde5899424d0ad274a04fdbe5fb0..dc6a02f02b3b20b25f66da220ba8d8ec65ab859e 100644 (file)
@@ -31,7 +31,7 @@ static struct option opts[] = {
 };
 
 static int parse(int c, char **argv, int invert, unsigned int *flags,
-                 const struct ip6t_entry *entry, struct ip6t_entry_target **target)
+                 const struct ip6t_entry *entry, struct xt_entry_target **target)
 {
        struct xt_connsecmark_target_info *info =
                (struct xt_connsecmark_target_info*)(*target)->data;
@@ -87,7 +87,7 @@ static void print_connsecmark(struct xt_connsecmark_target_info *info)
 }
 
 static void print(const struct ip6t_ip6 *ip,
-                 const struct ip6t_entry_target *target, int numeric)
+                 const struct xt_entry_target *target, int numeric)
 {
        struct xt_connsecmark_target_info *info =
                (struct xt_connsecmark_target_info*)(target)->data;
@@ -96,7 +96,7 @@ static void print(const struct ip6t_ip6 *ip,
        print_connsecmark(info);
 }
 
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_target *target)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_target *target)
 {
        struct xt_connsecmark_target_info *info =
                (struct xt_connsecmark_target_info*)target->data;
index 206282807468e114c5b27bcf89d378465f9fd40c..fc6ba3433fd657cb5f9c4cf9469cdfbe24cd214a 100644 (file)
@@ -16,7 +16,7 @@
 
 #define IP6T_HL_USED   1
 
-static void init(struct ip6t_entry_target *t, unsigned int *nfcache) 
+static void init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -32,7 +32,7 @@ static void help(void)
 
 static int parse(int c, char **argv, int invert, unsigned int *flags,
                const struct ip6t_entry *entry,
-               struct ip6t_entry_target **target)
+               struct xt_entry_target **target)
 {
        struct ip6t_HL_info *info = (struct ip6t_HL_info *) (*target)->data;
        unsigned int value;
@@ -97,7 +97,7 @@ static void final_check(unsigned int flags)
 }
 
 static void save(const struct ip6t_ip6 *ip,
-               const struct ip6t_entry_target *target)
+               const struct xt_entry_target *target)
 {
        const struct ip6t_HL_info *info = 
                (struct ip6t_HL_info *) target->data;
@@ -118,7 +118,7 @@ static void save(const struct ip6t_ip6 *ip,
 }
 
 static void print(const struct ip6t_ip6 *ip,
-               const struct ip6t_entry_target *target, int numeric)
+               const struct xt_entry_target *target, int numeric)
 {
        const struct ip6t_HL_info *info =
                (struct ip6t_HL_info *) target->data;
index 5043b44e813e96f8f27d02f5b44b8f18e248105a..ad65bd5c2f7e9dc3352d18cfad5c415d14dbdec4 100644 (file)
@@ -44,7 +44,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ip6t_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
        struct ip6t_log_info *loginfo = (struct ip6t_log_info *)t->data;
 
@@ -111,7 +111,7 @@ parse_level(const char *level)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
-      struct ip6t_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ip6t_log_info *loginfo = (struct ip6t_log_info *)(*target)->data;
 
@@ -207,7 +207,7 @@ static void final_check(unsigned int flags)
 /* Prints out the targinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ip6t_log_info *loginfo
@@ -247,7 +247,7 @@ print(const struct ip6t_ip6 *ip,
 
 /* Saves the union ip6t_targinfo in parsable form to stdout. */
 static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_target *target)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_target *target)
 {
        const struct ip6t_log_info *loginfo
                = (const struct ip6t_log_info *)target->data;
index 0b043fb13e6d0e9e07518259a25286a86f85d896..e5b7c70e882f43c5fd0d501dd66b1e79d8b4467c 100644 (file)
@@ -27,7 +27,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ip6t_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -36,7 +36,7 @@ init(struct ip6t_entry_target *t, unsigned int *nfcache)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
-      struct ip6t_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ip6t_mark_target_info *markinfo
                = (struct ip6t_mark_target_info *)(*target)->data;
@@ -76,7 +76,7 @@ print_mark(unsigned long mark)
 /* Prints out the targinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ip6t_mark_target_info *markinfo =
@@ -88,7 +88,7 @@ print(const struct ip6t_ip6 *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_target *target)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_target *target)
 {
        const struct ip6t_mark_target_info *markinfo =
                (const struct ip6t_mark_target_info *)target->data;
index e1964afaaa0e0fd6a8951bfe3bc2231e6ea893b0..e1f17ab5d196fe30fcb87c60fd375f1b36610cc3 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/netfilter_ipv6/ip6_tables.h>
 #include <linux/netfilter_ipv4/ipt_NFQUEUE.h>
 
-static void init(struct ip6t_entry_target *t, unsigned int *nfcache) 
+static void init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -48,7 +48,7 @@ parse_num(const char *s, struct ipt_NFQ_info *tinfo)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
-      struct ip6t_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ipt_NFQ_info *tinfo
                = (struct ipt_NFQ_info *)(*target)->data;
@@ -75,7 +75,7 @@ final_check(unsigned int flags)
 /* Prints out the targinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ipt_NFQ_info *tinfo =
@@ -85,7 +85,7 @@ print(const struct ip6t_ip6 *ip,
 
 /* Saves the union ip6t_targinfo in parsable form to stdout. */
 static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_target *target)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_target *target)
 {
        const struct ipt_NFQ_info *tinfo =
                (const struct ipt_NFQ_info *)target->data;
index 879716b0c12a2435ca35933c227d72adc9ed045a..5b3c7bfb74d676cab60817fa0fc727bdaceb7c26 100644 (file)
@@ -72,7 +72,7 @@ static struct option opts[] = {
 
 /* Allocate and initialize the target. */
 static void
-init(struct ip6t_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
        struct ip6t_reject_info *reject = (struct ip6t_reject_info *)t->data;
 
@@ -86,7 +86,7 @@ init(struct ip6t_entry_target *t, unsigned int *nfcache)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
-      struct ip6t_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ip6t_reject_info *reject = 
                (struct ip6t_reject_info *)(*target)->data;
@@ -121,7 +121,7 @@ static void final_check(unsigned int flags)
 /* Prints out ipt_reject_info. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ip6t_reject_info *reject
@@ -137,7 +137,7 @@ print(const struct ip6t_ip6 *ip,
 
 /* Saves ipt_reject in parsable form to stdout. */
 static void save(const struct ip6t_ip6 *ip, 
-                const struct ip6t_entry_target *target)
+                const struct xt_entry_target *target)
 {
        const struct ip6t_reject_info *reject
                = (const struct ip6t_reject_info *)target->data;
index 8fbae0504280950aac16dd85054d8993252e6d17..88fbf5990104d7ffac3b1c498af0c40749f79a79 100644 (file)
@@ -31,7 +31,7 @@ static struct option opts[] = {
 };
 
 /* Initialize the target. */
-static void init(struct ip6t_entry_target *t, unsigned int *nfcache)
+static void init(struct xt_entry_target *t, unsigned int *nfcache)
 { }
 
 /*
@@ -39,7 +39,7 @@ static void init(struct ip6t_entry_target *t, unsigned int *nfcache)
  * ate an option.
  */
 static int parse(int c, char **argv, int invert, unsigned int *flags,
-                 const struct ip6t_entry *entry, struct ip6t_entry_target **target)
+                 const struct ip6t_entry *entry, struct xt_entry_target **target)
 {
        struct xt_secmark_target_info *info =
                (struct xt_secmark_target_info*)(*target)->data;
@@ -86,7 +86,7 @@ static void print_secmark(struct xt_secmark_target_info *info)
 }
 
 static void print(const struct ip6t_ip6 *ip,
-                 const struct ip6t_entry_target *target, int numeric)
+                 const struct xt_entry_target *target, int numeric)
 {
        struct xt_secmark_target_info *info =
                (struct xt_secmark_target_info*)(target)->data;
@@ -96,7 +96,7 @@ static void print(const struct ip6t_ip6 *ip,
 }
 
 /* Saves the target info in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_target *target)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_target *target)
 {
        struct xt_secmark_target_info *info =
                (struct xt_secmark_target_info*)target->data;
index 7fcccd5ce10af25ec4d06d163f08722dd6ad1fda..1f4b32beb88aef611e34a1a75f878275c9097b08 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/netfilter_ipv6/ip6t_TCPMSS.h>
 
 struct mssinfo {
-       struct ip6t_entry_target t;
+       struct xt_entry_target t;
        struct ip6t_tcpmss_info mss;
 };
 
@@ -35,7 +35,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ip6t_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -44,7 +44,7 @@ init(struct ip6t_entry_target *t, unsigned int *nfcache)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
-      struct ip6t_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ip6t_tcpmss_info *mssinfo
                = (struct ip6t_tcpmss_info *)(*target)->data;
@@ -89,7 +89,7 @@ final_check(unsigned int flags)
 /* Prints out the targinfo. */
 static void
 print(const struct ip6t_ip6 *ip6,
-      const struct ip6t_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ip6t_tcpmss_info *mssinfo =
@@ -102,7 +102,7 @@ print(const struct ip6t_ip6 *ip6,
 
 /* Saves the union ip6t_targinfo in parsable form to stdout. */
 static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_target *target)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_target *target)
 {
        const struct ip6t_tcpmss_info *mssinfo =
                (const struct ip6t_tcpmss_info *)target->data;
index 794e02eb306867e801f71d2527aecfce4c3168f3..5f1013de803ce5fbbe10551af36fd2cec8852233 100644 (file)
@@ -72,7 +72,7 @@ parse_ah_spis(const char *spistring, u_int32_t *spis)
 
 /* Initialize the match. */
 static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ip6t_ah *ahinfo = (struct ip6t_ah *)m->data;
 
@@ -87,7 +87,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_ah *ahinfo = (struct ip6t_ah *)(*match)->data;
 
@@ -158,7 +158,7 @@ print_len(const char *name, u_int32_t len, int invert)
 /* Prints out the union ip6t_matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match, int numeric)
+      const struct xt_entry_match *match, int numeric)
 {
        const struct ip6t_ah *ah = (struct ip6t_ah *)match->data;
 
@@ -177,7 +177,7 @@ print(const struct ip6t_ip6 *ip,
 }
 
 /* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        const struct ip6t_ah *ahinfo = (struct ip6t_ah *)match->data;
 
index 0e94c39e11902dbdb8489f525912b0800ed5060a..8cb4ec05bde649b767fb0de5b30c0f71878b9626 100644 (file)
@@ -27,7 +27,7 @@ static struct option opts[] = {
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry, unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct condition6_info *info =
            (struct condition6_info *) (*match)->data;
@@ -65,7 +65,7 @@ final_check(unsigned int flags)
 
 static void
 print(const struct ip6t_ip6 *ip,
-                 const struct ip6t_entry_match *match, int numeric)
+                 const struct xt_entry_match *match, int numeric)
 {
        const struct condition6_info *info =
            (const struct condition6_info *) match->data;
@@ -76,7 +76,7 @@ print(const struct ip6t_ip6 *ip,
 
 static void
 save(const struct ip6t_ip6 *ip,
-                const struct ip6t_entry_match *match)
+                const struct xt_entry_match *match)
 {
        const struct condition6_info *info =
            (const struct condition6_info *) match->data;
index 419da3049a9873f069d61da2d91958bcd1accc09..9900af4a0c889fea1ba22624e942002345e6af7b 100644 (file)
@@ -46,7 +46,7 @@ static struct option opts[] = {
 
 /* Initialize the match. */
 static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        /* Can't cache this. */
        *nfcache |= NFC_UNKNOWN;
@@ -58,7 +58,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_connmark_info *markinfo = (struct ipt_connmark_info *)(*match)->data;
 
@@ -107,7 +107,7 @@ final_check(unsigned int flags)
 /* Prints out the matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ipt_connmark_info *info = (struct ipt_connmark_info *)match->data;
@@ -120,7 +120,7 @@ print(const struct ip6t_ip6 *ip,
 
 /* Saves the matchinfo in parsable form to stdout. */
 static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        struct ipt_connmark_info *info = (struct ipt_connmark_info *)match->data;
 
index 19ca23c0876627f982c662c30036aaa1e27fede8..4b0cd3e1490cbd6a3a82b17f8bd640e2a09e9af5 100644 (file)
@@ -118,7 +118,7 @@ parse_options(const char *optsstr, u_int16_t *opts)
 
 /* Initialize the match. */
 static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ip6t_opts *optinfo = (struct ip6t_opts *)m->data;
 
@@ -134,7 +134,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_opts *optinfo = (struct ip6t_opts *)(*match)->data;
 
@@ -204,7 +204,7 @@ print_options(int optsnr, u_int16_t *optsp)
 /* Prints out the union ip6t_matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match, int numeric)
+      const struct xt_entry_match *match, int numeric)
 {
        const struct ip6t_opts *optinfo = (struct ip6t_opts *)match->data;
 
@@ -228,7 +228,7 @@ print(const struct ip6t_ip6 *ip,
 }
 
 /* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        const struct ip6t_opts *optinfo = (struct ip6t_opts *)match->data;
 
index 886e09b335cbf24a20d361544e86466404c2f504..9b031b73870a77ae23929c6654f11bb06d76e1c6 100644 (file)
@@ -70,7 +70,7 @@ parse_esp_spis(const char *spistring, u_int32_t *spis)
 
 /* Initialize the match. */
 static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ip6t_esp *espinfo = (struct ip6t_esp *)m->data;
 
@@ -85,7 +85,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_esp *espinfo = (struct ip6t_esp *)(*match)->data;
 
@@ -130,7 +130,7 @@ print_spis(const char *name, u_int32_t min, u_int32_t max,
 /* Prints out the union ip6t_matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match, int numeric)
+      const struct xt_entry_match *match, int numeric)
 {
        const struct ip6t_esp *esp = (struct ip6t_esp *)match->data;
 
@@ -143,7 +143,7 @@ print(const struct ip6t_ip6 *ip,
 }
 
 /* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        const struct ip6t_esp *espinfo = (struct ip6t_esp *)match->data;
 
index c74b04dbae94fb064ac6d10ccf2368b3e50338ea..494f17aa59926e8e8ddf640a7acfc83107421798 100644 (file)
@@ -32,7 +32,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        return 0;
 }
@@ -45,14 +45,14 @@ static void final_check(unsigned int flags)
 /* Prints out the matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        printf("eui64 ");
 }
 
 /* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
 
 }
index 51a14fa7619fa3794aaf386547ca7d20a55a9e2a..44661e9cd4f18f7cef3d4af2409b3efd06d58666 100644 (file)
@@ -78,7 +78,7 @@ parse_frag_ids(const char *idstring, u_int32_t *ids)
 
 /* Initialize the match. */
 static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ip6t_frag *fraginfo = (struct ip6t_frag *)m->data;
 
@@ -95,7 +95,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_frag *fraginfo = (struct ip6t_frag *)(*match)->data;
 
@@ -181,7 +181,7 @@ print_ids(const char *name, u_int32_t min, u_int32_t max,
 /* Prints out the union ip6t_matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match, int numeric)
+      const struct xt_entry_match *match, int numeric)
 {
        const struct ip6t_frag *frag = (struct ip6t_frag *)match->data;
 
@@ -213,7 +213,7 @@ print(const struct ip6t_ip6 *ip,
 }
 
 /* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        const struct ip6t_frag *fraginfo = (struct ip6t_frag *)match->data;
 
index bdcbf9b7c571f7f507d8e92f793b9ced699621fb..24a0485d9dafe206131e1305f26be7d5a5b38b00 100644 (file)
@@ -117,7 +117,7 @@ parse_options(const char *optsstr, u_int16_t *opts)
 
 /* Initialize the match. */
 static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ip6t_opts *optinfo = (struct ip6t_opts *)m->data;
 
@@ -133,7 +133,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_opts *optinfo = (struct ip6t_opts *)(*match)->data;
 
@@ -201,7 +201,7 @@ print_options(int optsnr, u_int16_t *optsp)
 /* Prints out the union ip6t_matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match, int numeric)
+      const struct xt_entry_match *match, int numeric)
 {
        const struct ip6t_opts *optinfo = (struct ip6t_opts *)match->data;
 
@@ -221,7 +221,7 @@ print(const struct ip6t_ip6 *ip,
 }
 
 /* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        const struct ip6t_opts *optinfo = (struct ip6t_opts *)match->data;
 
index 208da33f0ba3c628e404a6c1f4e8728271ee70bf..4a4d3c52ce3c6b737b926e4e578123776498e61f 100644 (file)
@@ -27,7 +27,7 @@ static void help(void)
 
 static int parse(int c, char **argv, int invert, unsigned int *flags,
                const struct ip6t_entry *entry, unsigned int *nfcache,
-               struct ip6t_entry_match **match)
+               struct xt_entry_match **match)
 {
        struct ip6t_hl_info *info = (struct ip6t_hl_info *) (*match)->data;
        u_int8_t value;
@@ -90,7 +90,7 @@ static void final_check(unsigned int flags)
 }
 
 static void print(const struct ip6t_ip6 *ip, 
-               const struct ip6t_entry_match *match,
+               const struct xt_entry_match *match,
                int numeric)
 {
        static const char *op[] = {
@@ -106,7 +106,7 @@ static void print(const struct ip6t_ip6 *ip,
 }
 
 static void save(const struct ip6t_ip6 *ip, 
-               const struct ip6t_entry_match *match)
+               const struct xt_entry_match *match)
 {
        static const char *op[] = {
                [IP6T_HL_EQ] = "eq",
index 6940d0e572f6ec2157aca1fbe160f99d6d37493c..ac7e7997765b6297c14caf9fff04e139c6cbd3c4 100644 (file)
@@ -145,7 +145,7 @@ parse_icmpv6(const char *icmpv6type, u_int8_t *type, u_int8_t code[])
 
 /* Initialize the match. */
 static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ip6t_icmp *icmpv6info = (struct ip6t_icmp *)m->data;
 
@@ -158,7 +158,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_icmp *icmpv6info = (struct ip6t_icmp *)(*match)->data;
 
@@ -222,7 +222,7 @@ static void print_icmpv6type(u_int8_t type,
 /* Prints out the union ipt_matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        const struct ip6t_icmp *icmpv6 = (struct ip6t_icmp *)match->data;
@@ -238,7 +238,7 @@ print(const struct ip6t_ip6 *ip,
 }
 
 /* Saves the match in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        const struct ip6t_icmp *icmpv6 = (struct ip6t_icmp *)match->data;
 
index a260e6e1ebe59e8dd8477ee31910411e60486c7a..d0bc93dec55e0cdbe8619b4acbe79ce8d2a71209 100644 (file)
@@ -155,7 +155,7 @@ static struct option opts[] = {
 };
 
 static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ip6t_ipv6header_info *info = (struct ip6t_ipv6header_info *)m->data;
 
@@ -187,7 +187,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_ipv6header_info *info = (struct ip6t_ipv6header_info *)(*match)->data;
 
@@ -255,7 +255,7 @@ print_header(u_int8_t flags){
 /* Prints out the match */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        const struct ip6t_ipv6header_info *info = (const struct ip6t_ipv6header_info *)match->data;
@@ -280,7 +280,7 @@ print(const struct ip6t_ip6 *ip,
 /* Saves the match */
 static void
 save(const struct ip6t_ip6 *ip,
-     const struct ip6t_entry_match *match)
+     const struct xt_entry_match *match)
 {
 
        const struct ip6t_ipv6header_info *info = (const struct ip6t_ipv6header_info *)match->data;
index 9f7ba16559afd838efdf840c77e7b0aee27e4c83..4c77fee8d36ae53b1677e0ae1a4fac7f12c97c74 100644 (file)
@@ -70,7 +70,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_length_info *info = (struct ip6t_length_info *)(*match)->data;
 
@@ -118,7 +118,7 @@ print_length(struct ip6t_length_info *info)
 /* Prints out the matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        printf("length ");
@@ -127,7 +127,7 @@ print(const struct ip6t_ip6 *ip,
 
 /* Saves the union ip6t_matchinfo in parsable form to stdout. */
 static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        printf("--length ");
        print_length((struct ip6t_length_info *)match->data);
index 6c88ee1cea928ba49e5266e0fbf727c26438d671..2a5a9b283e1dca8e9d1d354befef38384818a3df 100644 (file)
@@ -74,7 +74,7 @@ int parse_rate(const char *rate, u_int32_t *val)
 
 /* Initialize the match. */
 static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ip6t_rateinfo *r = (struct ip6t_rateinfo *)m->data;
 
@@ -95,7 +95,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_rateinfo *r = (struct ip6t_rateinfo *)(*match)->data;
        unsigned int num;
@@ -157,7 +157,7 @@ static void print_rate(u_int32_t period)
 /* Prints out the matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ip6t_rateinfo *r = (struct ip6t_rateinfo *)match->data;
@@ -166,7 +166,7 @@ print(const struct ip6t_ip6 *ip,
 }
 
 /* FIXME: Make minimalist: only print rate if not default --RR */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        struct ip6t_rateinfo *r = (struct ip6t_rateinfo *)match->data;
 
index e47f21f6a2375a2d1ece91f0d31b669a826e7496..b50b0c90d945d6d109b03e9fbffdade3234dd41e 100644 (file)
@@ -58,7 +58,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_mac_info *macinfo = (struct ip6t_mac_info *)(*match)->data;
 
@@ -99,7 +99,7 @@ static void final_check(unsigned int flags)
 /* Prints out the matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        printf("MAC ");
@@ -111,7 +111,7 @@ print(const struct ip6t_ip6 *ip,
 }
 
 /* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        if (((struct ip6t_mac_info *)match->data)->invert)
                printf("! ");
index 9c7f1371c8edecdc71987477f1c3912a3108aee6..bcdaadaceb6608491d208d580f3b1c424eb43f01 100644 (file)
@@ -31,7 +31,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_mark_info *markinfo = (struct ip6t_mark_info *)(*match)->data;
 
@@ -78,7 +78,7 @@ final_check(unsigned int flags)
 /* Prints out the matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ip6t_mark_info *info = (struct ip6t_mark_info *)match->data;
@@ -93,7 +93,7 @@ print(const struct ip6t_ip6 *ip,
 
 /* Saves the union ip6t_matchinfo in parsable form to stdout. */
 static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        struct ip6t_mark_info *info = (struct ip6t_mark_info *)match->data;
 
index 2475b4d1349ba01a86354f32d444f90afb38b9ea..7ea8f89295ce1c6aa466520b265dc4dbbe426d3a 100644 (file)
@@ -67,7 +67,7 @@ IPTABLES_VERSION);
        print_types_all();
 }
 
-static void init(struct ip6t_entry_match *m, unsigned int *nfcache)
+static void init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ip6t_mh *mhinfo = (struct ip6t_mh *)m->data;
 
@@ -128,7 +128,7 @@ static void parse_mh_types(const char *mhtype, u_int8_t *types)
 static int parse(int c, char **argv, int invert, unsigned int *flags,
                 const struct ip6t_entry *entry,
                 unsigned int *nfcache,
-                struct ip6t_entry_match **match)
+                struct xt_entry_match **match)
 {
        struct ip6t_mh *mhinfo = (struct ip6t_mh *)(*match)->data;
 
@@ -196,7 +196,7 @@ static void print_types(u_int8_t min, u_int8_t max, int invert, int numeric)
 }
 
 static void print(const struct ip6t_ip6 *ip,
-                 const struct ip6t_entry_match *match,
+                 const struct xt_entry_match *match,
                  int numeric)
 {
        const struct ip6t_mh *mhinfo = (struct ip6t_mh *)match->data;
@@ -210,8 +210,7 @@ static void print(const struct ip6t_ip6 *ip,
                       mhinfo->invflags & ~IP6T_MH_INV_MASK);
 }
 
-static void save(const struct ip6t_ip6 *ip,
-                const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        const struct ip6t_mh *mhinfo = (struct ip6t_mh *)match->data;
 
index 166abce167d58752e4992310cca3b8b3df167b34..bb55f23e4da59210ddcb4518bf8a7d9d27cd1617 100644 (file)
@@ -130,7 +130,7 @@ parse_multi_ports_v1(const char *portstring,
 
 /* Initialize the match. */
 static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
 }
 
@@ -155,7 +155,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        const char *proto;
        struct ip6t_multiport *multiinfo
@@ -280,7 +280,7 @@ print_port(u_int16_t port, u_int8_t protocol, int numeric)
 /* Prints out the matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        const struct ip6t_multiport *multiinfo
@@ -358,7 +358,7 @@ print_v1(const struct ip6t_ip6 *ip,
 }
 
 /* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        const struct ip6t_multiport *multiinfo
                = (const struct ip6t_multiport *)match->data;
index 99b5c1346c62105866a03819569059dca41a00b5..adbe840db54584204c9776617c954201cbd9fd3e 100644 (file)
@@ -53,7 +53,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_owner_info *ownerinfo = (struct ip6t_owner_info *)(*match)->data;
 
@@ -200,7 +200,7 @@ final_check(unsigned int flags)
 /* Prints out the matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ip6t_owner_info *info = (struct ip6t_owner_info *)match->data;
@@ -216,7 +216,7 @@ print(const struct ip6t_ip6 *ip,
 
 /* Saves the union ip6t_matchinfo in parsable form to stdout. */
 static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        struct ip6t_owner_info *info = (struct ip6t_owner_info *)match->data;
 
index e7fa22e98d3685deddafc3bf52a982f257d57e18..d4df6420fad28ca48dbb7cb3417f6e823459d0d0 100644 (file)
@@ -35,7 +35,7 @@ static struct option opts[] = {
 };
 
 static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
 }
 
@@ -43,7 +43,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_physdev_info *info =
                (struct ip6t_physdev_info*)(*match)->data;
@@ -122,7 +122,7 @@ static void final_check(unsigned int flags)
 
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ip6t_physdev_info *info =
@@ -148,7 +148,7 @@ print(const struct ip6t_ip6 *ip,
        printf(" ");
 }
 
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        struct ip6t_physdev_info *info =
                (struct ip6t_physdev_info*)match->data;
index 2f4453ef050ca8feb8e30f8e15073107cae4ad5c..f5c6487d470e600a906c57b85dd859922bc2b734 100644 (file)
@@ -133,7 +133,7 @@ extern void parse_hostnetworkmask(const char *name, struct in6_addr **addrpp,
 
 /* End duplicated code from ip6tables.c */
 
-static void init(struct ip6t_entry_match *m, unsigned int *nfcache)
+static void init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        *nfcache |= NFC_UNKNOWN;
 }
@@ -168,7 +168,7 @@ static int parse_mode(char *s)
 static int parse(int c, char **argv, int invert, unsigned int *flags,
                  const struct ip6t_entry *entry,
                  unsigned int *nfcache,
-                 struct ip6t_entry_match **match)
+                 struct xt_entry_match **match)
 {
        struct ip6t_policy_info *info = (void *)(*match)->data;
        struct ip6t_policy_elem *e = &info->pol[info->len];
@@ -428,7 +428,7 @@ static void print_flags(char *prefix, const struct ip6t_policy_info *info)
 }
 
 static void print(const struct ip6t_ip6 *ip,
-                  const struct ip6t_entry_match *match,
+                  const struct xt_entry_match *match,
                  int numeric)
 {
        const struct ip6t_policy_info *info = (void *)match->data;
@@ -445,7 +445,7 @@ static void print(const struct ip6t_ip6 *ip,
        printf("\n");
 }
 
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        const struct ip6t_policy_info *info = (void *)match->data;
        unsigned int i;
index 251604b29a842bced30003aa4945e65864478660..246b2da8726342dbbd6cc338505b0e371eb262ea 100644 (file)
@@ -139,7 +139,7 @@ parse_addresses(const char *addrstr, struct in6_addr *addrp)
 
 /* Initialize the match. */
 static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ip6t_rt *rtinfo = (struct ip6t_rt *)m->data;
 
@@ -158,7 +158,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_rt *rtinfo = (struct ip6t_rt *)(*match)->data;
 
@@ -278,7 +278,7 @@ print_addresses(int addrnr, struct in6_addr *addrp)
 /* Prints out the union ip6t_matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match, int numeric)
+      const struct xt_entry_match *match, int numeric)
 {
        const struct ip6t_rt *rtinfo = (struct ip6t_rt *)match->data;
 
@@ -304,7 +304,7 @@ print(const struct ip6t_ip6 *ip,
 }
 
 /* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        const struct ip6t_rt *rtinfo = (struct ip6t_rt *)match->data;
 
index c48882f1d8afa312034eb5fc5bdfe3ff99902fe7..211cc8b2ff78939e3277dcc2e8db559edb807ef5 100644 (file)
@@ -22,7 +22,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ip6t_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -31,7 +31,7 @@ init(struct ip6t_entry_target *t, unsigned int *nfcache)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
-      struct ip6t_entry_target **target)
+      struct xt_entry_target **target)
 {
        return 0;
 }
@@ -43,7 +43,7 @@ static void final_check(unsigned int flags)
 
 /* Saves the targinfo in parsable form to stdout. */
 static void
-save(const struct ip6t_ip6 *ip6, const struct ip6t_entry_target *target)
+save(const struct ip6t_ip6 *ip6, const struct xt_entry_target *target)
 {
 }
 
index a4477cecddbb25d35787498b1cdb9ed5bedaf53b..4bfb50be3b2f3ea7addc657528498ef7a82056ed 100644 (file)
@@ -67,7 +67,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_state_info *sinfo = (struct ipt_state_info *)(*match)->data;
 
@@ -125,7 +125,7 @@ static void print_state(unsigned int statemask)
 /* Prints out the matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ipt_state_info *sinfo = (struct ipt_state_info *)match->data;
@@ -135,7 +135,7 @@ print(const struct ip6t_ip6 *ip,
 }
 
 /* Saves the matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        struct ipt_state_info *sinfo = (struct ipt_state_info *)match->data;
 
index 8af65ea89b7bbe303eb90cbae52662f10a8fc6d1..8e46deb8499d5b263b014775ae08e763e054815a 100644 (file)
@@ -131,7 +131,7 @@ parse_tcp_option(const char *option, u_int8_t *result)
 
 /* Initialize the match. */
 static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ip6t_tcp *tcpinfo = (struct ip6t_tcp *)m->data;
 
@@ -149,7 +149,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_tcp *tcpinfo = (struct ip6t_tcp *)(*match)->data;
 
@@ -318,7 +318,7 @@ print_flags(u_int8_t mask, u_int8_t cmp, int invert, int numeric)
 /* Prints out the union ipt_matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match, int numeric)
+      const struct xt_entry_match *match, int numeric)
 {
        const struct ip6t_tcp *tcp = (struct ip6t_tcp *)match->data;
 
@@ -341,7 +341,7 @@ print(const struct ip6t_ip6 *ip,
 }
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        const struct ip6t_tcp *tcpinfo = (struct ip6t_tcp *)match->data;
 
index cd3c3d4568d01670cf9ca6a75ba89310eff99c13..61d824f5921aad1a271d084cecbf237d3b982335 100644 (file)
@@ -55,7 +55,7 @@ parse_udp_ports(const char *portstring, u_int16_t *ports)
 
 /* Initialize the match. */
 static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ip6t_udp *udpinfo = (struct ip6t_udp *)m->data;
 
@@ -71,7 +71,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ip6t_entry *entry,
       unsigned int *nfcache,
-      struct ip6t_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ip6t_udp *udpinfo = (struct ip6t_udp *)(*match)->data;
 
@@ -157,7 +157,7 @@ print_ports(const char *name, u_int16_t min, u_int16_t max,
 /* Prints out the union ipt_matchinfo. */
 static void
 print(const struct ip6t_ip6 *ip,
-      const struct ip6t_entry_match *match, int numeric)
+      const struct xt_entry_match *match, int numeric)
 {
        const struct ip6t_udp *udp = (struct ip6t_udp *)match->data;
 
@@ -174,7 +174,7 @@ print(const struct ip6t_ip6 *ip,
 }
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
 {
        const struct ip6t_udp *udpinfo = (struct ip6t_udp *)match->data;