]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Replaces ipt_entry_* with xt_entry_* in matches/targets
authorYasuyuki KOZAKAI <yasuyuki@netfilter.org>
Tue, 24 Jul 2007 05:57:28 +0000 (05:57 +0000)
committerYasuyuki KOZAKAI <yasuyuki@netfilter.org>
Tue, 24 Jul 2007 05:57:28 +0000 (05:57 +0000)
64 files changed:
extensions/libipt_CLASSIFY.c
extensions/libipt_CLUSTERIP.c
extensions/libipt_CONNMARK.c
extensions/libipt_CONNSECMARK.c
extensions/libipt_DNAT.c
extensions/libipt_DSCP.c
extensions/libipt_ECN.c
extensions/libipt_LOG.c
extensions/libipt_MARK.c
extensions/libipt_MASQUERADE.c
extensions/libipt_MIRROR.c
extensions/libipt_NETMAP.c
extensions/libipt_NFQUEUE.c
extensions/libipt_NOTRACK.c
extensions/libipt_REDIRECT.c
extensions/libipt_REJECT.c
extensions/libipt_SAME.c
extensions/libipt_SECMARK.c
extensions/libipt_SET.c
extensions/libipt_SNAT.c
extensions/libipt_TCPMSS.c
extensions/libipt_TOS.c
extensions/libipt_TTL.c
extensions/libipt_ULOG.c
extensions/libipt_addrtype.c
extensions/libipt_ah.c
extensions/libipt_comment.c
extensions/libipt_condition.c
extensions/libipt_connbytes.c
extensions/libipt_connmark.c
extensions/libipt_connrate.c
extensions/libipt_conntrack.c
extensions/libipt_dccp.c
extensions/libipt_dscp.c
extensions/libipt_ecn.c
extensions/libipt_esp.c
extensions/libipt_hashlimit.c
extensions/libipt_helper.c
extensions/libipt_icmp.c
extensions/libipt_iprange.c
extensions/libipt_length.c
extensions/libipt_limit.c
extensions/libipt_mac.c
extensions/libipt_mark.c
extensions/libipt_multiport.c
extensions/libipt_owner.c
extensions/libipt_physdev.c
extensions/libipt_pkttype.c
extensions/libipt_policy.c
extensions/libipt_quota.c
extensions/libipt_realm.c
extensions/libipt_recent.c
extensions/libipt_sctp.c
extensions/libipt_set.c
extensions/libipt_standard.c
extensions/libipt_state.c
extensions/libipt_statistic.c
extensions/libipt_string.c
extensions/libipt_tcp.c
extensions/libipt_tcpmss.c
extensions/libipt_tos.c
extensions/libipt_ttl.c
extensions/libipt_udp.c
extensions/libipt_unclean.c

index 07c9b25ef0bd0d26d383b6049db340044f85be64..2e4cc151fac96a425e02620e6fb4e34835ee8857 100644 (file)
@@ -28,7 +28,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -48,7 +48,7 @@ int string_to_priority(const char *s, unsigned int *p)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ipt_classify_target_info *clinfo
                = (struct ipt_classify_target_info *)(*target)->data;
@@ -88,7 +88,7 @@ print_class(unsigned int priority, int numeric)
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ipt_classify_target_info *clinfo =
@@ -99,7 +99,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        const struct ipt_classify_target_info *clinfo =
                (const struct ipt_classify_target_info *)target->data;
index 3268ac5395b01504c660dd208f295d4d1778700e..b6df5bd31cb58c3b60af2aa5abafe6b81c4ae7bf 100644 (file)
@@ -55,7 +55,7 @@ static struct option opts[] = {
 };
 
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -86,7 +86,7 @@ parse_mac(const char *mac, char *macbuf)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ipt_clusterip_tgt_info *cipinfo
                = (struct ipt_clusterip_tgt_info *)(*target)->data;
@@ -208,7 +208,7 @@ static char *mac2str(const u_int8_t mac[ETH_ALEN])
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ipt_clusterip_tgt_info *cipinfo =
@@ -229,7 +229,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        const struct ipt_clusterip_tgt_info *cipinfo =
                (const struct ipt_clusterip_tgt_info *)target->data;
index 2e17b3facd761620434c252fb4fbb7ce53e20776..54f33c99df963ee28bb1556905ade9bae81f8562 100644 (file)
@@ -30,7 +30,7 @@
 
 #if 0
 struct markinfo {
-       struct ipt_entry_target t;
+       struct xt_entry_target t;
        struct ipt_connmark_target_info mark;
 };
 #endif
@@ -58,7 +58,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -67,7 +67,7 @@ init(struct ipt_entry_target *t, unsigned int *nfcache)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_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 ipt_ip *ip,
-      const struct ipt_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 ipt_ip *ip,
 
 /* Saves the target into in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        const struct ipt_connmark_target_info *markinfo =
                (const struct ipt_connmark_target_info *)target->data;
index 237a41f35095c5d2527897dc8f2589784e9d6900..e8dd38086e07f0e132b71d009b8b4a054368755e 100644 (file)
@@ -31,7 +31,7 @@ static struct option opts[] = {
 };
 
 static int parse(int c, char **argv, int invert, unsigned int *flags,
-                 const struct ipt_entry *entry, struct ipt_entry_target **target)
+                 const struct ipt_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 ipt_ip *ip,
-                 const struct ipt_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 ipt_ip *ip,
        print_connsecmark(info);
 }
 
-static void save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+static void save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        struct xt_connsecmark_target_info *info =
                (struct xt_connsecmark_target_info*)target->data;
index b0def31298f484d7ce81b0028aca70df82f70f9c..7dce2d459fe773b722b05e2ed056d6d3e65f4b73 100644 (file)
@@ -15,7 +15,7 @@
    to. */
 struct ipt_natinfo
 {
-       struct ipt_entry_target t;
+       struct xt_entry_target t;
        struct ip_nat_multi_range mr;
 };
 
@@ -58,7 +58,7 @@ append_range(struct ipt_natinfo *info, const struct ip_nat_range *range)
 }
 
 /* Ranges expected in network order. */
-static struct ipt_entry_target *
+static struct xt_entry_target *
 parse_to(char *arg, int portok, struct ipt_natinfo *info)
 {
        struct ip_nat_range range;
@@ -142,7 +142,7 @@ parse_to(char *arg, int portok, struct ipt_natinfo *info)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ipt_natinfo *info = (void *)*target;
        int portok;
@@ -216,7 +216,7 @@ static void print_range(const struct ip_nat_range *r)
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        struct ipt_natinfo *info = (void *)target;
@@ -233,7 +233,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        struct ipt_natinfo *info = (void *)target;
        unsigned int i = 0;
index c50d902bb463baadaa1172fab5479d99bc5179e7..26f70bde39f04e1fbf1da35483c521de7333bef9 100644 (file)
@@ -22,7 +22,7 @@
 #include "libipt_dscp_helper.c"
 
 
-static void init(struct ipt_entry_target *t, unsigned int *nfcache) 
+static void init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -79,7 +79,7 @@ parse_class(const char *s, struct ipt_DSCP_info *dinfo)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ipt_DSCP_info *dinfo
                = (struct ipt_DSCP_info *)(*target)->data;
@@ -124,7 +124,7 @@ print_dscp(u_int8_t dscp, int numeric)
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ipt_DSCP_info *dinfo =
@@ -135,7 +135,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        const struct ipt_DSCP_info *dinfo =
                (const struct ipt_DSCP_info *)target->data;
index b9ef29ea460ecf8bcd51e6c2da8b08d6a3344dd4..ed899e33fd406b8299ee7937a8b9d8cfd2e4d80d 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/netfilter_ipv4/ip_tables.h>
 #include <linux/netfilter_ipv4/ipt_ECN.h>
 
-static void init(struct ipt_entry_target *t, unsigned int *nfcache) 
+static void init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -48,7 +48,7 @@ static struct option opts[] = {
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        unsigned int result;
        struct ipt_ECN_info *einfo
@@ -115,7 +115,7 @@ final_check(unsigned int flags)
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ipt_ECN_info *einfo =
@@ -141,7 +141,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        const struct ipt_ECN_info *einfo =
                (const struct ipt_ECN_info *)target->data;
index 96cc70108a63d8f1f321622dfb8c6889da2ea558..114180853dcbad4d32aa78086ea479354ff3d339 100644 (file)
@@ -44,7 +44,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
        struct ipt_log_info *loginfo = (struct ipt_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 ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ipt_log_info *loginfo = (struct ipt_log_info *)(*target)->data;
 
@@ -207,7 +207,7 @@ static void final_check(unsigned int flags)
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ipt_log_info *loginfo
@@ -247,7 +247,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        const struct ipt_log_info *loginfo
                = (const struct ipt_log_info *)target->data;
index b8413522e9fcb12d80fd06464301d63729d57aff..8157f1e4e93f16efcb9ee9550952063789905976 100644 (file)
@@ -31,7 +31,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -40,7 +40,7 @@ init(struct ipt_entry_target *t, unsigned int *nfcache)
 static int
 parse_v0(int c, char **argv, int invert, unsigned int *flags,
         const struct ipt_entry *entry,
-        struct ipt_entry_target **target)
+        struct xt_entry_target **target)
 {
        struct ipt_mark_target_info *markinfo
                = (struct ipt_mark_target_info *)(*target)->data;
@@ -82,7 +82,7 @@ final_check(unsigned int flags)
 static int
 parse_v1(int c, char **argv, int invert, unsigned int *flags,
         const struct ipt_entry *entry,
-        struct ipt_entry_target **target)
+        struct xt_entry_target **target)
 {
        struct ipt_mark_target_info_v1 *markinfo
                = (struct ipt_mark_target_info_v1 *)(*target)->data;
@@ -121,7 +121,7 @@ print_mark(unsigned long mark)
 /* Prints out the targinfo. */
 static void
 print_v0(const struct ipt_ip *ip,
-        const struct ipt_entry_target *target,
+        const struct xt_entry_target *target,
         int numeric)
 {
        const struct ipt_mark_target_info *markinfo =
@@ -132,7 +132,7 @@ print_v0(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save_v0(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save_v0(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        const struct ipt_mark_target_info *markinfo =
                (const struct ipt_mark_target_info *)target->data;
@@ -144,7 +144,7 @@ save_v0(const struct ipt_ip *ip, const struct ipt_entry_target *target)
 /* Prints out the targinfo. */
 static void
 print_v1(const struct ipt_ip *ip,
-        const struct ipt_entry_target *target,
+        const struct xt_entry_target *target,
         int numeric)
 {
        const struct ipt_mark_target_info_v1 *markinfo =
@@ -166,7 +166,7 @@ print_v1(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save_v1(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save_v1(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        const struct ipt_mark_target_info_v1 *markinfo =
                (const struct ipt_mark_target_info_v1 *)target->data;
index c24bb32135aa87a0488dc94677e71042116ee4d4..8db6bdd38ddaa0094fe180b1acb6e696ddd419df 100644 (file)
@@ -31,7 +31,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
        struct ip_nat_multi_range *mr = (struct ip_nat_multi_range *)t->data;
 
@@ -79,7 +79,7 @@ parse_ports(const char *arg, struct ip_nat_multi_range *mr)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        int portok;
        struct ip_nat_multi_range *mr
@@ -122,7 +122,7 @@ static void final_check(unsigned int flags)
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        struct ip_nat_multi_range *mr
@@ -143,7 +143,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        struct ip_nat_multi_range *mr
                = (struct ip_nat_multi_range *)target->data;
index 7e617030aa6f4a453de1a163c6bc301eb5df3671..9141bd13f42e093980ac7047ae378b4f2ee925f2 100644 (file)
@@ -22,7 +22,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -31,7 +31,7 @@ init(struct ipt_entry_target *t, unsigned int *nfcache)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        return 0;
 }
index 4b4b14dd075c31219f78386d04545c1fe4ef1c29..37af94b61248add37de50e66ce34cf1fd78191ce 100644 (file)
@@ -56,7 +56,7 @@ netmask2bits(u_int32_t netmask)
 
 /* Initialize the target. */
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
        struct ip_nat_multi_range *mr = (struct ip_nat_multi_range *)t->data;
 
@@ -119,7 +119,7 @@ parse_to(char *arg, struct ip_nat_range *range)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ip_nat_multi_range *mr
                = (struct ip_nat_multi_range *)(*target)->data;
@@ -150,7 +150,7 @@ static void final_check(unsigned int flags)
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        struct ip_nat_multi_range *mr
@@ -171,7 +171,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        printf("--%s ", opts[0].name);
        print(ip, target, 0);
index bc4e82f4356273139c158ea1ed0c7e86a678a2a3..8f89828df8dcf23f09baea03b97bc7a260d164f7 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/netfilter_ipv4/ip_tables.h>
 #include <linux/netfilter_ipv4/ipt_NFQUEUE.h>
 
-static void init(struct ipt_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 ipt_entry *entry,
-      struct ipt_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 ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ipt_NFQ_info *tinfo =
@@ -85,7 +85,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        const struct ipt_NFQ_info *tinfo =
                (const struct ipt_NFQ_info *)target->data;
index 39489aea3200eb2139309b0e5da1093bc67fb443..c0d40f2424c42a2a4636e7b4f9b259177c0f2ab5 100644 (file)
@@ -22,7 +22,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -31,7 +31,7 @@ init(struct ipt_entry_target *t, unsigned int *nfcache)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        return 0;
 }
index 6b387169ead44f163e73ce0c7416cbb4c5dd057f..3810b997841c0bea876f7caa4d844ab2b872a941 100644 (file)
@@ -30,7 +30,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
        struct ip_nat_multi_range *mr = (struct ip_nat_multi_range *)t->data;
 
@@ -81,7 +81,7 @@ parse_ports(const char *arg, struct ip_nat_multi_range *mr)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ip_nat_multi_range *mr
                = (struct ip_nat_multi_range *)(*target)->data;
@@ -131,7 +131,7 @@ static void final_check(unsigned int flags)
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        struct ip_nat_multi_range *mr
@@ -151,7 +151,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        struct ip_nat_multi_range *mr
                = (struct ip_nat_multi_range *)target->data;
index 70859eb5a631d92f5a12a970dc62de05e0f36691..4f8f06d25f57423c95ba16394972c29a02f5e6dd 100644 (file)
@@ -87,7 +87,7 @@ static struct option opts[] = {
 
 /* Allocate and initialize the target. */
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
        struct ipt_reject_info *reject = (struct ipt_reject_info *)t->data;
 
@@ -101,7 +101,7 @@ init(struct ipt_entry_target *t, unsigned int *nfcache)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ipt_reject_info *reject = (struct ipt_reject_info *)(*target)->data;
        unsigned int limit = sizeof(reject_table)/sizeof(struct reject_names);
@@ -140,7 +140,7 @@ static void final_check(unsigned int flags)
 /* Prints out ipt_reject_info. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ipt_reject_info *reject
@@ -155,7 +155,7 @@ print(const struct ipt_ip *ip,
 }
 
 /* Saves ipt_reject in parsable form to stdout. */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+static void save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        const struct ipt_reject_info *reject
                = (const struct ipt_reject_info *)target->data;
index 7211f608a2bc1f4b96a5313aa8b69f35b46bf2e2..6e2353cc96b2ec817c7455c511b2d6fa9196db24 100644 (file)
@@ -38,7 +38,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
        struct ipt_same_info *mr = (struct ipt_same_info *)t->data;
 
@@ -90,7 +90,7 @@ parse_to(char *arg, struct ip_nat_range *range)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ipt_same_info *mr
                = (struct ipt_same_info *)(*target)->data;
@@ -149,7 +149,7 @@ static void final_check(unsigned int flags)
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        int count;
@@ -185,7 +185,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        int count;
        struct ipt_same_info *mr
index 89a2b2addfcecff8649bfa74766e927683792231..6dc9160dbcede143c053df756e52b65394103500 100644 (file)
@@ -29,7 +29,7 @@ static struct option opts[] = {
 };
 
 /* Initialize the target. */
-static void init(struct ipt_entry_target *t, unsigned int *nfcache)
+static void init(struct xt_entry_target *t, unsigned int *nfcache)
 { }
 
 /*
@@ -37,7 +37,7 @@ static void init(struct ipt_entry_target *t, unsigned int *nfcache)
  * ate an option.
  */
 static int parse(int c, char **argv, int invert, unsigned int *flags,
-                 const struct ipt_entry *entry, struct ipt_entry_target **target)
+                 const struct ipt_entry *entry, struct xt_entry_target **target)
 {
        struct xt_secmark_target_info *info =
                (struct xt_secmark_target_info*)(*target)->data;
@@ -84,7 +84,7 @@ static void print_secmark(struct xt_secmark_target_info *info)
 }
 
 static void print(const struct ipt_ip *ip,
-                 const struct ipt_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;
@@ -94,7 +94,7 @@ static void print(const struct ipt_ip *ip,
 }
 
 /* Saves the target info in parsable form to stdout. */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+static void save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        struct xt_secmark_target_info *info =
                (struct xt_secmark_target_info*)target->data;
index 1d8ace6434645ea598b421eef5175702f95aa8a9..1c116314abe3af1a5c37ea858152c6f59efd2c8c 100644 (file)
@@ -41,7 +41,7 @@ static struct option opts[] = {
 };
 
 /* Initialize the target. */
-static void init(struct ipt_entry_target *target, unsigned int *nfcache)
+static void init(struct xt_entry_target *target, unsigned int *nfcache)
 {
        struct ipt_set_info_target *info =
            (struct ipt_set_info_target *) target->data;
@@ -85,7 +85,7 @@ parse_target(char **argv, int invert, unsigned int *flags,
    ate an option */
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
-      const struct ipt_entry *entry, struct ipt_entry_target **target)
+      const struct ipt_entry *entry, struct xt_entry_target **target)
 {
        struct ipt_set_info_target *myinfo =
            (struct ipt_set_info_target *) (*target)->data;
@@ -137,7 +137,7 @@ print_target(const char *prefix, const struct ipt_set_info *info)
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target, int numeric)
+      const struct xt_entry_target *target, int numeric)
 {
        struct ipt_set_info_target *info =
            (struct ipt_set_info_target *) target->data;
@@ -148,7 +148,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        struct ipt_set_info_target *info =
            (struct ipt_set_info_target *) target->data;
index 0a665a09df3205b0a2af7da366eb090392d0c1da..bdf9429ac72e90407cd947d01cf37d7d01ba6cf6 100644 (file)
@@ -15,7 +15,7 @@
    to. */
 struct ipt_natinfo
 {
-       struct ipt_entry_target t;
+       struct xt_entry_target t;
        struct ip_nat_multi_range mr;
 };
 
@@ -58,7 +58,7 @@ append_range(struct ipt_natinfo *info, const struct ip_nat_range *range)
 }
 
 /* Ranges expected in network order. */
-static struct ipt_entry_target *
+static struct xt_entry_target *
 parse_to(char *arg, int portok, struct ipt_natinfo *info)
 {
        struct ip_nat_range range;
@@ -142,7 +142,7 @@ parse_to(char *arg, int portok, struct ipt_natinfo *info)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ipt_natinfo *info = (void *)*target;
        int portok;
@@ -218,7 +218,7 @@ static void print_range(const struct ip_nat_range *r)
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        struct ipt_natinfo *info = (void *)target;
@@ -235,7 +235,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        struct ipt_natinfo *info = (void *)target;
        unsigned int i = 0;
index c3256f00baa24886c1e87b73bd9073fd2595da1c..f2e18a765c002f10540e56e42b88db445147d2a9 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/netfilter_ipv4/ipt_TCPMSS.h>
 
 struct mssinfo {
-       struct ipt_entry_target t;
+       struct xt_entry_target t;
        struct ipt_tcpmss_info mss;
 };
 
@@ -35,7 +35,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -44,7 +44,7 @@ init(struct ipt_entry_target *t, unsigned int *nfcache)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ipt_tcpmss_info *mssinfo
                = (struct ipt_tcpmss_info *)(*target)->data;
@@ -89,7 +89,7 @@ final_check(unsigned int flags)
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ipt_tcpmss_info *mssinfo =
@@ -102,7 +102,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        const struct ipt_tcpmss_info *mssinfo =
                (const struct ipt_tcpmss_info *)target->data;
index 999f7b028c668b8d6b06d7257f04037627bb3197..2a5185e233557017955ae8ea80427c2d3346b56a 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/netfilter_ipv4/ipt_TOS.h>
 
 struct tosinfo {
-       struct ipt_entry_target t;
+       struct xt_entry_target t;
        struct ipt_tos_target_info tos;
 };
 
@@ -54,7 +54,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -87,7 +87,7 @@ parse_tos(const char *s, struct ipt_tos_target_info *info)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_entry_target **target)
+      struct xt_entry_target **target)
 {
        struct ipt_tos_target_info *tosinfo
                = (struct ipt_tos_target_info *)(*target)->data;
@@ -134,7 +134,7 @@ print_tos(u_int8_t tos, int numeric)
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target,
+      const struct xt_entry_target *target,
       int numeric)
 {
        const struct ipt_tos_target_info *tosinfo =
@@ -145,7 +145,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
        const struct ipt_tos_target_info *tosinfo =
                (const struct ipt_tos_target_info *)target->data;
index ca83f295b0a07da188be496226e55903784f1c2e..5c88f799c544022ed70746d577645be56bdedd24 100644 (file)
@@ -16,7 +16,7 @@
 
 #define IPT_TTL_USED   1
 
-static void init(struct ipt_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 ipt_entry *entry,
-               struct ipt_entry_target **target)
+               struct xt_entry_target **target)
 {
        struct ipt_TTL_info *info = (struct ipt_TTL_info *) (*target)->data;
        unsigned int value;
@@ -97,7 +97,7 @@ static void final_check(unsigned int flags)
 }
 
 static void save(const struct ipt_ip *ip,
-               const struct ipt_entry_target *target)
+               const struct xt_entry_target *target)
 {
        const struct ipt_TTL_info *info = 
                (struct ipt_TTL_info *) target->data;
@@ -118,7 +118,7 @@ static void save(const struct ipt_ip *ip,
 }
 
 static void print(const struct ipt_ip *ip,
-               const struct ipt_entry_target *target, int numeric)
+               const struct xt_entry_target *target, int numeric)
 {
        const struct ipt_TTL_info *info =
                (struct ipt_TTL_info *) target->data;
index f783f9671bcc9e4e02b5b7f018951fc76aaa0986..91fcfb020ad8df7b512d9ba2ce03b2e092fec0d1 100644 (file)
@@ -53,7 +53,7 @@ static struct option opts[] = {
 };
 
 /* Initialize the target. */
-static void init(struct ipt_entry_target *t, unsigned int *nfcache)
+static void init(struct xt_entry_target *t, unsigned int *nfcache)
 {
        struct ipt_ulog_info *loginfo = (struct ipt_ulog_info *) t->data;
 
@@ -71,7 +71,7 @@ static void init(struct ipt_entry_target *t, unsigned int *nfcache)
    ate an option */
 static int parse(int c, char **argv, int invert, unsigned int *flags,
                 const struct ipt_entry *entry,
-                struct ipt_entry_target **target)
+                struct xt_entry_target **target)
 {
        struct ipt_ulog_info *loginfo =
            (struct ipt_ulog_info *) (*target)->data;
@@ -157,7 +157,7 @@ static void final_check(unsigned int flags)
 
 /* Saves the union ipt_targinfo in parsable form to stdout. */
 static void save(const struct ipt_ip *ip,
-                const struct ipt_entry_target *target)
+                const struct xt_entry_target *target)
 {
        const struct ipt_ulog_info *loginfo
            = (const struct ipt_ulog_info *) target->data;
@@ -179,7 +179,7 @@ static void save(const struct ipt_ip *ip,
 /* Prints out the targinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_target *target, int numeric)
+      const struct xt_entry_target *target, int numeric)
 {
        const struct ipt_ulog_info *loginfo
            = (const struct ipt_ulog_info *) target->data;
index d8e192966c547f33182b92fc0f166aac5afb037a..dbf4be74845f2a70b46da28c6cf4273f842fbcca 100644 (file)
@@ -83,7 +83,7 @@ static void parse_types(const char *arg, u_int16_t *mask)
 
 static int parse(int c, char **argv, int invert, unsigned int *flags,
                const struct ipt_entry *entry, unsigned int *nfcache,
-               struct ipt_entry_match **match)
+               struct xt_entry_match **match)
 {
        struct ipt_addrtype_info *info =
                (struct ipt_addrtype_info *) (*match)->data;
@@ -138,7 +138,7 @@ static void print_types(u_int16_t mask)
 }
 
 static void print(const struct ipt_ip *ip, 
-               const struct ipt_entry_match *match,
+               const struct xt_entry_match *match,
                int numeric)
 {
        const struct ipt_addrtype_info *info = 
@@ -160,7 +160,7 @@ static void print(const struct ipt_ip *ip,
 }
 
 static void save(const struct ipt_ip *ip, 
-               const struct ipt_entry_match *match)
+               const struct xt_entry_match *match)
 {
        const struct ipt_addrtype_info *info =
                (struct ipt_addrtype_info *) match->data;
index 443c9f8286b691e8340c4676a72683b8afcfded1..3929bdbb3967925aae5955f6713483f9e3dff80f 100644 (file)
@@ -68,7 +68,7 @@ parse_ah_spis(const char *spistring, u_int32_t *spis)
 
 /* Initialize the match. */
 static void
-init(struct ipt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ipt_ah *ahinfo = (struct ipt_ah *)m->data;
 
@@ -83,7 +83,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_ah *ahinfo = (struct ipt_ah *)(*match)->data;
 
@@ -135,7 +135,7 @@ print_spis(const char *name, u_int32_t min, u_int32_t max,
 /* Prints out the union ipt_matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match, int numeric)
+      const struct xt_entry_match *match, int numeric)
 {
        const struct ipt_ah *ah = (struct ipt_ah *)match->data;
 
@@ -148,7 +148,7 @@ print(const struct ipt_ip *ip,
 }
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        const struct ipt_ah *ahinfo = (struct ipt_ah *)match->data;
 
index 692acca3307687d084831c558d42cbda4efe8a61..1b73c237df3f3a22edde0f4feab32043b4ca79d4 100644 (file)
@@ -47,7 +47,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_comment_info *commentinfo = (struct ipt_comment_info *)(*match)->data;
 
@@ -80,7 +80,7 @@ final_check(unsigned int flags)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ipt_comment_info *commentinfo = (struct ipt_comment_info *)match->data;
@@ -91,7 +91,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_comment_info *commentinfo = (struct ipt_comment_info *)match->data;
 
index 16558fe6979e836c0df0323545ae9e68cce12783..677b5f51e87cb8e10dd352b4175a029d05394d8a 100644 (file)
@@ -27,7 +27,7 @@ static struct option opts[] = {
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry, unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct condition_info *info =
            (struct condition_info *) (*match)->data;
@@ -65,7 +65,7 @@ final_check(unsigned int flags)
 
 static void
 print(const struct ipt_ip *ip,
-                 const struct ipt_entry_match *match, int numeric)
+                 const struct xt_entry_match *match, int numeric)
 {
        const struct condition_info *info =
            (const struct condition_info *) match->data;
@@ -76,7 +76,7 @@ print(const struct ipt_ip *ip,
 
 static void
 save(const struct ipt_ip *ip,
-                const struct ipt_entry_match *match)
+                const struct xt_entry_match *match)
 {
        const struct condition_info *info =
            (const struct condition_info *) match->data;
index f6439c2d1835ad2c5fee7f1a6a4a8667f34fa10e..c59f9be63ae15f840d7bc7f6568b95f0ae81db40 100644 (file)
@@ -51,7 +51,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_connbytes_info *sinfo = (struct ipt_connbytes_info *)(*match)->data;
        unsigned long i;
@@ -147,7 +147,7 @@ static void print_direction(struct ipt_connbytes_info *sinfo)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ipt_connbytes_info *sinfo = (struct ipt_connbytes_info *)match->data;
@@ -167,7 +167,7 @@ print(const struct ipt_ip *ip,
 }
 
 /* Saves the matchinfo in parsable form to stdout. */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_connbytes_info *sinfo = (struct ipt_connbytes_info *)match->data;
 
index bc15f0d1826f54da2bf0bd483a93295f29c3ec3c..9412d667a02218f1183d022516faaeb11228c82a 100644 (file)
@@ -46,7 +46,7 @@ static struct option opts[] = {
 
 /* Initialize the match. */
 static void
-init(struct ipt_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 ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_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 ipt_ip *ip,
-      const struct ipt_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 ipt_ip *ip,
 
 /* Saves the matchinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_connmark_info *info = (struct ipt_connmark_info *)match->data;
 
index 5abe3c4d4fa4b58134319708b48550f8105201e3..b22f1918716c6a8d9eb091ae60aedb3bce71f3a6 100644 (file)
@@ -78,7 +78,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_connrate_info *sinfo = (struct ipt_connrate_info *)(*match)->data;
        u_int32_t tmp;
@@ -139,7 +139,7 @@ print_range(struct ipt_connrate_info *sinfo)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ipt_connrate_info *sinfo = (struct ipt_connrate_info *)match->data;
@@ -150,7 +150,7 @@ print(const struct ipt_ip *ip,
 }
 
 /* Saves the matchinfo in parsable form to stdout. */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_connrate_info *sinfo = (struct ipt_connrate_info *)match->data;
 
index 7914d395c28c24a07cf8004d68905e7729c41292..18f97b36bf4294f7eb308c9adf39a00027cbe447 100644 (file)
@@ -169,7 +169,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_conntrack_info *sinfo = (struct ipt_conntrack_info *)(*match)->data;
        char *protocol = NULL;
@@ -412,7 +412,7 @@ print_addr(struct in_addr *addr, struct in_addr *mask, int inv, int numeric)
 
 /* Saves the matchinfo in parsable form to stdout. */
 static void
-matchinfo_print(const struct ipt_ip *ip, const struct ipt_entry_match *match, int numeric, const char *optpfx)
+matchinfo_print(const struct ipt_ip *ip, const struct xt_entry_match *match, int numeric, const char *optpfx)
 {
        struct ipt_conntrack_info *sinfo = (struct ipt_conntrack_info *)match->data;
 
@@ -492,14 +492,14 @@ matchinfo_print(const struct ipt_ip *ip, const struct ipt_entry_match *match, in
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        matchinfo_print(ip, match, numeric, "");
 }
 
 /* Saves the matchinfo in parsable form to stdout. */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        matchinfo_print(ip, match, 1, "--");
 }
index e5782a85d049ca91a411fc3dbf827a442bdd674c..b86d2a44f5ed92ee5a41f88cbb62af95355ee52d 100644 (file)
@@ -26,7 +26,7 @@
 
 /* Initialize the match. */
 static void
-init(struct ipt_entry_match *m, 
+init(struct xt_entry_match *m,
      unsigned int *nfcache)
 {
        struct ipt_dccp_info *einfo = (struct ipt_dccp_info *)m->data;
@@ -136,7 +136,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_dccp_info *einfo
                = (struct ipt_dccp_info *)(*match)->data;
@@ -280,7 +280,7 @@ print_option(u_int8_t option, int invert, int numeric)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        const struct ipt_dccp_info *einfo =
@@ -315,7 +315,7 @@ print(const struct ipt_ip *ip,
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
 static void
 save(const struct ipt_ip *ip, 
-     const struct ipt_entry_match *match)
+     const struct xt_entry_match *match)
 {
        const struct ipt_dccp_info *einfo =
                (const struct ipt_dccp_info *)match->data;
index bb19bede841b544bd1f4c555ebf8dc1f01af5c29..68bc0aabd5d500e7f7613843dc257e5e5685337b 100644 (file)
@@ -77,7 +77,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_dscp_info *dinfo
                = (struct ipt_dscp_info *)(*match)->data;
@@ -132,7 +132,7 @@ print_dscp(u_int8_t dscp, int invert, int numeric)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        const struct ipt_dscp_info *dinfo =
@@ -143,7 +143,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        const struct ipt_dscp_info *dinfo =
                (const struct ipt_dscp_info *)match->data;
index 97e839da5539101badf39382b93616854050fe42..9d32b0f5b3705b0e1bf06cfe8ffe5ff3d955199d 100644 (file)
@@ -37,7 +37,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        unsigned int result;
        struct ipt_ecn_info *einfo
@@ -98,7 +98,7 @@ final_check(unsigned int flags)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        const struct ipt_ecn_info *einfo =
@@ -127,7 +127,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        const struct ipt_ecn_info *einfo =
                (const struct ipt_ecn_info *)match->data;
index 21e912b7b04f5c6fbbee1803c38ce72afe180f37..380af848f16f91ddb71c892dc6f499620a3af881 100644 (file)
@@ -71,7 +71,7 @@ parse_esp_spis(const char *spistring, u_int32_t *spis)
 
 /* Initialize the match. */
 static void
-init(struct ipt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ipt_esp *espinfo = (struct ipt_esp *)m->data;
 
@@ -86,7 +86,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_esp *espinfo = (struct ipt_esp *)(*match)->data;
 
@@ -138,7 +138,7 @@ print_spis(const char *name, u_int32_t min, u_int32_t max,
 /* Prints out the union ipt_matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match, int numeric)
+      const struct xt_entry_match *match, int numeric)
 {
        const struct ipt_esp *esp = (struct ipt_esp *)match->data;
 
@@ -151,7 +151,7 @@ print(const struct ipt_ip *ip,
 }
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        const struct ipt_esp *espinfo = (struct ipt_esp *)match->data;
 
index 6fb0eccb594ef668792f940ce57e0ee935e7ad6b..527b2e8e47b9a608372e751a8dae99b520c732e4 100644 (file)
@@ -96,7 +96,7 @@ int parse_rate(const char *rate, u_int32_t *val)
 
 /* Initialize the match. */
 static void
-init(struct ipt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ipt_hashlimit_info *r = (struct ipt_hashlimit_info *)m->data;
 
@@ -153,7 +153,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_hashlimit_info *r = 
                        (struct ipt_hashlimit_info *)(*match)->data;
@@ -305,7 +305,7 @@ static void print_mode(const struct ipt_hashlimit_info *r, char separator)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ipt_hashlimit_info *r = 
@@ -325,7 +325,7 @@ print(const struct ipt_ip *ip,
 }
 
 /* FIXME: Make minimalist: only print rate if not default --RR */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_hashlimit_info *r = 
                (struct ipt_hashlimit_info *)match->data;
index 7c9f3e3c6400943f56f59b8222a4a69dfae33cfa..ee2fbd25064a09bea2c85d2bbffc937913926643 100644 (file)
@@ -30,7 +30,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_helper_info *info = (struct ipt_helper_info *)(*match)->data;
 
@@ -65,7 +65,7 @@ final_check(unsigned int flags)
 /* Prints out the info. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ipt_helper_info *info = (struct ipt_helper_info *)match->data;
@@ -75,7 +75,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_info in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_helper_info *info = (struct ipt_helper_info *)match->data;
 
index a6e642a2a3824682aaf977aac35bda7575d3678e..d6fd485ecc6e845501a07bd02751b8c4d853b9f9 100644 (file)
@@ -169,7 +169,7 @@ parse_icmp(const char *icmptype, u_int8_t *type, u_int8_t code[])
 
 /* Initialize the match. */
 static void
-init(struct ipt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ipt_icmp *icmpinfo = (struct ipt_icmp *)m->data;
 
@@ -183,7 +183,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_icmp *icmpinfo = (struct ipt_icmp *)(*match)->data;
 
@@ -247,7 +247,7 @@ static void print_icmptype(u_int8_t type,
 /* Prints out the union ipt_matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        const struct ipt_icmp *icmp = (struct ipt_icmp *)match->data;
@@ -263,7 +263,7 @@ print(const struct ipt_ip *ip,
 }
 
 /* Saves the match in parsable form to stdout. */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        const struct ipt_icmp *icmp = (struct ipt_icmp *)match->data;
 
index e6967029dde8da3ff2766b927f6cceefb01298ab..bca2f5bfd5c3aa6837fb483e033d8a8d1b68404c 100644 (file)
@@ -58,7 +58,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_iprange_info *info = (struct ipt_iprange_info *)(*match)->data;
 
@@ -123,7 +123,7 @@ print_iprange(const struct ipt_iprange *range)
 /* Prints out the info. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ipt_iprange_info *info = (struct ipt_iprange_info *)match->data;
@@ -144,7 +144,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_info in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_iprange_info *info = (struct ipt_iprange_info *)match->data;
 
index cfac1c5ff78a147d90f43782bc089d73017f9443..49d91b8ae3ff1168e22ca9b938015dc4c2f6f136 100644 (file)
@@ -68,7 +68,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_length_info *info = (struct ipt_length_info *)(*match)->data;
 
@@ -116,7 +116,7 @@ print_length(struct ipt_length_info *info)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        printf("length ");
@@ -125,7 +125,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        printf("--length ");
        print_length((struct ipt_length_info *)match->data);
index 7f0337ae6e50e9d2e505d0a473ffd9a2de6ec2d2..214e6f6ac6aea4a25d49bf33bb23526f1fb5796d 100644 (file)
@@ -74,7 +74,7 @@ int parse_rate(const char *rate, u_int32_t *val)
 
 /* Initialize the match. */
 static void
-init(struct ipt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ipt_rateinfo *r = (struct ipt_rateinfo *)m->data;
 
@@ -95,7 +95,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_rateinfo *r = (struct ipt_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 ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ipt_rateinfo *r = (struct ipt_rateinfo *)match->data;
@@ -166,7 +166,7 @@ print(const struct ipt_ip *ip,
 }
 
 /* FIXME: Make minimalist: only print rate if not default --RR */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_rateinfo *r = (struct ipt_rateinfo *)match->data;
 
index bac851257902e7e864a07d0d57a46322978c5e55..a9f6194a5ded30437c11ba84dbce8c3bc4abbaf8 100644 (file)
@@ -58,7 +58,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_mac_info *macinfo = (struct ipt_mac_info *)(*match)->data;
 
@@ -99,7 +99,7 @@ static void final_check(unsigned int flags)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        printf("MAC ");
@@ -111,7 +111,7 @@ print(const struct ipt_ip *ip,
 }
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        if (((struct ipt_mac_info *)match->data)->invert)
                printf("! ");
index 10dfad5e4cd14e6f1eb692fcf6c4dfbb745940f4..869c7588abb76c166338935f33f3185248d96683 100644 (file)
@@ -31,7 +31,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_mark_info *markinfo = (struct ipt_mark_info *)(*match)->data;
 
@@ -78,7 +78,7 @@ final_check(unsigned int flags)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ipt_mark_info *info = (struct ipt_mark_info *)match->data;
@@ -93,7 +93,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_mark_info *info = (struct ipt_mark_info *)match->data;
 
index 58b6a0eb1ad923678c92aaa4d7da210c3f2f7522..889e439936ead43eb21de718c98f8fed66990d75 100644 (file)
@@ -132,7 +132,7 @@ parse_multi_ports_v1(const char *portstring,
 
 /* Initialize the match. */
 static void
-init(struct ipt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
 }
 
@@ -162,7 +162,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        const char *proto;
        struct ipt_multiport *multiinfo
@@ -212,7 +212,7 @@ static int
 parse_v1(int c, char **argv, int invert, unsigned int *flags,
         const struct ipt_entry *entry,
         unsigned int *nfcache,
-        struct ipt_entry_match **match)
+        struct xt_entry_match **match)
 {
        const char *proto;
        struct ipt_multiport_v1 *multiinfo
@@ -287,7 +287,7 @@ print_port(u_int16_t port, u_int8_t protocol, int numeric)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        const struct ipt_multiport *multiinfo
@@ -323,7 +323,7 @@ print(const struct ipt_ip *ip,
 
 static void
 print_v1(const struct ipt_ip *ip,
-        const struct ipt_entry_match *match,
+        const struct xt_entry_match *match,
         int numeric)
 {
        const struct ipt_multiport_v1 *multiinfo
@@ -365,7 +365,7 @@ print_v1(const struct ipt_ip *ip,
 }
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        const struct ipt_multiport *multiinfo
                = (const struct ipt_multiport *)match->data;
@@ -393,7 +393,7 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
 }
 
 static void save_v1(const struct ipt_ip *ip, 
-                   const struct ipt_entry_match *match)
+                   const struct xt_entry_match *match)
 {
        const struct ipt_multiport_v1 *multiinfo
                = (const struct ipt_multiport_v1 *)match->data;
index cf13cb970ba8c5ece54e7d1c30e25424c7fb7de0..87531d6d8ada481254d2fe57dfe18c32efe23349 100644 (file)
@@ -55,7 +55,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_owner_info *ownerinfo = (struct ipt_owner_info *)(*match)->data;
 
@@ -201,7 +201,7 @@ final_check(unsigned int flags)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ipt_owner_info *info = (struct ipt_owner_info *)match->data;
@@ -217,7 +217,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_owner_info *info = (struct ipt_owner_info *)match->data;
 
index 28ee82712f2e8962ad2a80921828f9f5dcc3d085..0bf3ea8cf951aedb41b364ae10095c8c4d063ceb 100644 (file)
@@ -35,7 +35,7 @@ static struct option opts[] = {
 };
 
 static void
-init(struct ipt_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 ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_physdev_info *info =
                (struct ipt_physdev_info*)(*match)->data;
@@ -122,7 +122,7 @@ static void final_check(unsigned int flags)
 
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ipt_physdev_info *info =
@@ -148,7 +148,7 @@ print(const struct ipt_ip *ip,
        printf(" ");
 }
 
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_physdev_info *info =
                (struct ipt_physdev_info*)match->data;
index ea6439efd2fade4cdcdbd86ca31a512f77086777..9f09419c3139d9717d79892d30086e8e8079c0dd 100644 (file)
@@ -88,7 +88,7 @@ static void parse_pkttype(const char *pkttype, struct ipt_pkttype_info *info)
 static int parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_pkttype_info *info = (struct ipt_pkttype_info *)(*match)->data;
        
@@ -131,7 +131,7 @@ static void print_pkttype(struct ipt_pkttype_info *info)
        printf("%d ", info->pkttype);   /* in case we didn't find an entry in named-packtes */
 }
 
-static void print(const struct ipt_ip *ip, const struct ipt_entry_match *match, int numeric)
+static void print(const struct ipt_ip *ip, const struct xt_entry_match *match, int numeric)
 {
        struct ipt_pkttype_info *info = (struct ipt_pkttype_info *)match->data;
        
@@ -139,7 +139,7 @@ static void print(const struct ipt_ip *ip, const struct ipt_entry_match *match,
        print_pkttype(info);
 }
 
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_pkttype_info *info = (struct ipt_pkttype_info *)match->data;
        
index 681995ad17cbcecdff7d4c9936f342adc7aa588e..06393fe6dece285aa4713c294ed96713a9a0b0dc 100644 (file)
@@ -93,7 +93,7 @@ static struct option opts[] =
        { }
 };
 
-static void init(struct ipt_entry_match *m, unsigned int *nfcache)
+static void init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        *nfcache |= NFC_UNKNOWN;
 }
@@ -128,7 +128,7 @@ static int parse_mode(char *s)
 static int parse(int c, char **argv, int invert, unsigned int *flags,
                  const struct ipt_entry *entry,
                  unsigned int *nfcache,
-                 struct ipt_entry_match **match)
+                 struct xt_entry_match **match)
 {
        struct ipt_policy_info *info = (void *)(*match)->data;
        struct ipt_policy_elem *e = &info->pol[info->len];
@@ -388,7 +388,7 @@ static void print_flags(char *prefix, const struct ipt_policy_info *info)
 }
 
 static void print(const struct ipt_ip *ip,
-                  const struct ipt_entry_match *match,
+                  const struct xt_entry_match *match,
                  int numeric)
 {
        const struct ipt_policy_info *info = (void *)match->data;
@@ -403,7 +403,7 @@ static void print(const struct ipt_ip *ip,
        }
 }
 
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        const struct ipt_policy_info *info = (void *)match->data;
        unsigned int i;
index 838075413a6287198bec0c7cba6fbdd7ef27100d..eb26e662f79671aa135e285094c51330dd267237 100644 (file)
@@ -27,7 +27,7 @@ help(void)
 
 /* print matchinfo */
 static void
-print(const struct ipt_ip *ip, const struct ipt_entry_match *match, int numeric)
+print(const struct ipt_ip *ip, const struct xt_entry_match *match, int numeric)
 {
         struct xt_quota_info *q = (struct xt_quota_info *) match->data;
         printf("quota: %llu bytes", (unsigned long long) q->quota);
@@ -35,7 +35,7 @@ print(const struct ipt_ip *ip, const struct ipt_entry_match *match, int numeric)
 
 /* save matchinfo */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
         struct xt_quota_info *q = (struct xt_quota_info *) match->data;
         printf("--quota %llu ", (unsigned long long) q->quota);
@@ -61,7 +61,7 @@ parse_quota(const char *s, u_int64_t * quota)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      unsigned int *nfcache, struct ipt_entry_match **match)
+      unsigned int *nfcache, struct xt_entry_match **match)
 {
         struct xt_quota_info *info = (struct xt_quota_info *) (*match)->data;
 
index 15646778eb3de803f0d84dfb0062c04d45a6245e..5be8982f23f40b534c539393ca82b7b2be0a146a 100644 (file)
@@ -158,7 +158,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_realm_info *realminfo = (struct ipt_realm_info *)(*match)->data;
        int id;
@@ -216,7 +216,7 @@ print_realm(unsigned long id, unsigned long mask, int numeric)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ipt_realm_info *ri = (struct ipt_realm_info *) match->data;
@@ -231,7 +231,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_realm_info *ri = (struct ipt_realm_info *) match->data;
 
index 0b0ed2d18e8cf5e589fd45483e887f88b8575200..16b4b0bd93ba1265ad38a8bc4b20e815a06795b8 100644 (file)
@@ -68,7 +68,7 @@ IPTABLES_VERSION);
   
 /* Initialize the match. */
 static void
-init(struct ipt_entry_match *match, unsigned int *nfcache)
+init(struct xt_entry_match *match, unsigned int *nfcache)
 {
        struct ipt_recent_info *info = (struct ipt_recent_info *)(match)->data;
 
@@ -86,7 +86,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_recent_info *info = (struct ipt_recent_info *)(*match)->data;
        switch (c) {
@@ -176,7 +176,7 @@ final_check(unsigned int flags)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct ipt_recent_info *info = (struct ipt_recent_info *)match->data;
@@ -199,7 +199,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_recent_info *info = (struct ipt_recent_info *)match->data;
 
index 0354d191f6caf15d52999884093e3bdc4719ee64..c1aa2ce7cd477be4484ba29c7ab06a3f2bd07beb 100644 (file)
@@ -43,7 +43,7 @@ print_chunk(u_int32_t chunknum, int numeric);
 
 /* Initialize the match. */
 static void
-init(struct ipt_entry_match *m, 
+init(struct xt_entry_match *m,
      unsigned int *nfcache)
 {
        int i;
@@ -265,7 +265,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_sctp_info *einfo
                = (struct ipt_sctp_info *)(*match)->data;
@@ -459,7 +459,7 @@ out:
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        const struct ipt_sctp_info *einfo =
@@ -493,7 +493,7 @@ print(const struct ipt_ip *ip,
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
 static void
 save(const struct ipt_ip *ip, 
-     const struct ipt_entry_match *match)
+     const struct xt_entry_match *match)
 {
        const struct ipt_sctp_info *einfo =
                (const struct ipt_sctp_info *)match->data;
index cf5d19dd43a40cf71bd9d6497ef100c71282040f..b9f3122382c6e8c087810572e99291fbe4d5d2ef 100644 (file)
@@ -38,7 +38,7 @@ static struct option opts[] = {
 };
 
 /* Initialize the match. */
-static void init(struct ipt_entry_match *match, unsigned int *nfcache)
+static void init(struct xt_entry_match *match, unsigned int *nfcache)
 {
        struct ipt_set_info_match *info = 
                (struct ipt_set_info_match *) match->data;
@@ -52,7 +52,7 @@ static void init(struct ipt_entry_match *match, unsigned int *nfcache)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      unsigned int *nfcache, struct ipt_entry_match **match)
+      unsigned int *nfcache, struct xt_entry_match **match)
 {
        struct ipt_set_info_match *myinfo = 
                (struct ipt_set_info_match *) (*match)->data;
@@ -127,7 +127,7 @@ print_match(const char *prefix, const struct ipt_set_info *info)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match, int numeric)
+      const struct xt_entry_match *match, int numeric)
 {
        struct ipt_set_info_match *info = 
                (struct ipt_set_info_match *) match->data;
@@ -137,7 +137,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the matchinfo in parsable form to stdout. */
 static void save(const struct ipt_ip *ip,
-                const struct ipt_entry_match *match)
+                const struct xt_entry_match *match)
 {
        struct ipt_set_info_match *info = 
                (struct ipt_set_info_match *) match->data;
index 4c5a3f5a5dfa49b1224824985c78db6ab58453c9..a3acdaebfc56198b6ebc0f886d177ca8a5489558 100644 (file)
@@ -22,7 +22,7 @@ static struct option opts[] = {
 
 /* Initialize the target. */
 static void
-init(struct ipt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
 {
 }
 
@@ -31,7 +31,7 @@ init(struct ipt_entry_target *t, unsigned int *nfcache)
 static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
-      struct ipt_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 ipt_ip *ip, const struct ipt_entry_target *target)
+save(const struct ipt_ip *ip, const struct xt_entry_target *target)
 {
 }
 
index 6a784ffce1abf4d97da83bc1fced160b22e6dc12..f5772dbe4e40ccdcc6cf71983ef9005951136cc5 100644 (file)
@@ -67,7 +67,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_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 ipt_ip *ip,
-      const struct ipt_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 ipt_ip *ip,
 }
 
 /* Saves the matchinfo in parsable form to stdout. */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct ipt_state_info *sinfo = (struct ipt_state_info *)match->data;
 
index f8aad2acd4215560f7f4c469a8a1614e75903fa9..41b648373f50e78d6d89d8f9883247cf88335b7e 100644 (file)
@@ -37,7 +37,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        double prob;
 
@@ -147,7 +147,7 @@ static void print_match(const struct xt_statistic_info *info, char *prefix)
 
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        struct xt_statistic_info *info = (struct xt_statistic_info *)match->data;
@@ -158,7 +158,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        struct xt_statistic_info *info = (struct xt_statistic_info *)match->data;
 
index 266b3e53dce5fe65c0affbe6058523f6ae06f070..82a0f7ce2167d05ae592fc958edecc8680fb57b7 100644 (file)
@@ -54,7 +54,7 @@ static struct option opts[] = {
 };
 
 static void
-init(struct ipt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ipt_string_info *i = (struct ipt_string_info *) m->data;
 
@@ -172,7 +172,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_string_info *stringinfo = (struct ipt_string_info *)(*match)->data;
 
@@ -290,7 +290,7 @@ print_string(const char *str, const unsigned short int len)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        const struct ipt_string_info *info =
@@ -313,7 +313,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_matchinfo in parseable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        const struct ipt_string_info *info =
            (const struct ipt_string_info*) match->data;
index 412b6cfc7deb53c83e9f52fb235e13a2b821dbf0..bfbebc1e1574ed0a4e02febe1e071a06fd8fa8d3 100644 (file)
@@ -131,7 +131,7 @@ parse_tcp_option(const char *option, u_int8_t *result)
 
 /* Initialize the match. */
 static void
-init(struct ipt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ipt_tcp *tcpinfo = (struct ipt_tcp *)m->data;
 
@@ -149,7 +149,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_tcp *tcpinfo = (struct ipt_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 ipt_ip *ip,
-      const struct ipt_entry_match *match, int numeric)
+      const struct xt_entry_match *match, int numeric)
 {
        const struct ipt_tcp *tcp = (struct ipt_tcp *)match->data;
 
@@ -341,7 +341,7 @@ print(const struct ipt_ip *ip,
 }
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        const struct ipt_tcp *tcpinfo = (struct ipt_tcp *)match->data;
 
index 9a399bbddbac254d469937bccbf21dfcb2391054..198f7fd88dd2dd0a07fa15541e2a74b553945b63 100644 (file)
@@ -62,7 +62,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_tcpmss_match_info *mssinfo =
                (struct ipt_tcpmss_match_info *)(*match)->data;
@@ -109,7 +109,7 @@ final_check(unsigned int flags)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        const struct ipt_tcpmss_match_info *mssinfo =
@@ -122,7 +122,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        const struct ipt_tcpmss_match_info *mssinfo =
                (const struct ipt_tcpmss_match_info *)match->data;
index f8b5cb495bfda581f65d6788c9ad4005b90db80b..7fdc9f7faccec2a21824c96839f12333c1268176 100644 (file)
@@ -78,7 +78,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_tos_info *tosinfo = (struct ipt_tos_info *)(*match)->data;
 
@@ -129,7 +129,7 @@ final_check(unsigned int flags)
 /* Prints out the matchinfo. */
 static void
 print(const struct ipt_ip *ip,
-      const struct ipt_entry_match *match,
+      const struct xt_entry_match *match,
       int numeric)
 {
        const struct ipt_tos_info *info = (const struct ipt_tos_info *)match->data;
@@ -142,7 +142,7 @@ print(const struct ipt_ip *ip,
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
 static void
-save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        const struct ipt_tos_info *info = (const struct ipt_tos_info *)match->data;
     
index f9d52822d8e65b357e9d1ea4613b8f02232648ad..75a3ead678e74559e9487fdab33d4886485c54ef 100644 (file)
@@ -26,7 +26,7 @@ static void help(void)
 
 static int parse(int c, char **argv, int invert, unsigned int *flags,
                const struct ipt_entry *entry, unsigned int *nfcache,
-               struct ipt_entry_match **match)
+               struct xt_entry_match **match)
 {
        struct ipt_ttl_info *info = (struct ipt_ttl_info *) (*match)->data;
        unsigned int value;
@@ -93,7 +93,7 @@ static void final_check(unsigned int flags)
 }
 
 static void print(const struct ipt_ip *ip, 
-               const struct ipt_entry_match *match,
+               const struct xt_entry_match *match,
                int numeric)
 {
        const struct ipt_ttl_info *info = 
@@ -118,7 +118,7 @@ static void print(const struct ipt_ip *ip,
 }
 
 static void save(const struct ipt_ip *ip, 
-               const struct ipt_entry_match *match)
+               const struct xt_entry_match *match)
 {
        const struct ipt_ttl_info *info =
                (struct ipt_ttl_info *) match->data;
index 7f461d830cdd814a26945ee98840c8d3ac1281be..0d7cb97dc63b7075b713b6fc5a1b52731a00ae7b 100644 (file)
@@ -55,7 +55,7 @@ parse_udp_ports(const char *portstring, u_int16_t *ports)
 
 /* Initialize the match. */
 static void
-init(struct ipt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
 {
        struct ipt_udp *udpinfo = (struct ipt_udp *)m->data;
 
@@ -71,7 +71,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        struct ipt_udp *udpinfo = (struct ipt_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 ipt_ip *ip,
-      const struct ipt_entry_match *match, int numeric)
+      const struct xt_entry_match *match, int numeric)
 {
        const struct ipt_udp *udp = (struct ipt_udp *)match->data;
 
@@ -174,7 +174,7 @@ print(const struct ipt_ip *ip,
 }
 
 /* Saves the union ipt_matchinfo in parsable form to stdout. */
-static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
+static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
 {
        const struct ipt_udp *udpinfo = (struct ipt_udp *)match->data;
 
index 7b9b3e4269e4b2c44376571fa657d54c077272d3..101744cb651f59366925981f1b922cabfdd6988e 100644 (file)
@@ -23,7 +23,7 @@ static int
 parse(int c, char **argv, int invert, unsigned int *flags,
       const struct ipt_entry *entry,
       unsigned int *nfcache,
-      struct ipt_entry_match **match)
+      struct xt_entry_match **match)
 {
        return 0;
 }