]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables-eb: export 3 functions
authorFlorian Westphal <fw@strlen.de>
Fri, 13 Apr 2018 12:53:43 +0000 (14:53 +0200)
committerFlorian Westphal <fw@strlen.de>
Fri, 13 Apr 2018 18:06:47 +0000 (20:06 +0200)
Will be used from eb-translate parser.

Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/nft-bridge.h
iptables/xtables-eb.c

index c5b7d3a6c9cd613b5dd977115faccb809427086a..9217d6330475f0472831cece8104fb5a22647b0d 100644 (file)
@@ -168,5 +168,10 @@ static inline const char *ebt_target_name(unsigned int verdict)
 })                                                             \
 
 void ebt_cs_clean(struct ebtables_command_state *cs);
+void ebt_load_match_extensions(void);
+void ebt_add_match(struct xtables_match *m,
+                         struct ebtables_command_state *cs);
+void ebt_add_watcher(struct xtables_target *watcher,
+                     struct ebtables_command_state *cs);
 
 #endif
index adeaa1294319dce3ca30cd57ab2aa971c4c799c2..75ce109047b342878b12b380b31a1d57288a3ad4 100644 (file)
@@ -661,7 +661,7 @@ static void ebt_load_target(const char *name)
        return __ebt_load_watcher(name, "target");
 }
 
-static void ebt_load_match_extensions(void)
+void ebt_load_match_extensions(void)
 {
        opts = ebt_original_options;
        ebt_load_match("802_3");
@@ -675,8 +675,8 @@ static void ebt_load_match_extensions(void)
        ebt_load_target("mark");
 }
 
-static void ebt_add_match(struct xtables_match *m,
-                         struct ebtables_command_state *cs)
+void ebt_add_match(struct xtables_match *m,
+                  struct ebtables_command_state *cs)
 {
        struct xtables_rule_match *i, **rule_matches = &cs->matches;
        struct xtables_match *newm;
@@ -711,8 +711,8 @@ static void ebt_add_match(struct xtables_match *m,
                cs->match_list->next = newnode;
 }
 
-static void ebt_add_watcher(struct xtables_target *watcher,
-                           struct ebtables_command_state *cs)
+void ebt_add_watcher(struct xtables_target *watcher,
+                    struct ebtables_command_state *cs)
 {
        struct ebt_match *i, *newnode;