summaryrefslogtreecommitdiffstats
path: root/iptables
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-04-13 14:53:43 +0200
committerFlorian Westphal <fw@strlen.de>2018-04-13 20:06:47 +0200
commit1650806382a7c45cafd42dccaf2ed8cd64a2bd94 (patch)
tree2b4f79aca8e039da06aacf2a123cbda82686bd3e /iptables
parent6b2041c7774e5a08b41698c0c34daa3f9e95895e (diff)
xtables-eb: export 3 functions
Will be used from eb-translate parser. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables')
-rw-r--r--iptables/nft-bridge.h5
-rw-r--r--iptables/xtables-eb.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/iptables/nft-bridge.h b/iptables/nft-bridge.h
index c5b7d3a6..9217d633 100644
--- a/iptables/nft-bridge.h
+++ b/iptables/nft-bridge.h
@@ -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
diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c
index adeaa129..75ce1090 100644
--- a/iptables/xtables-eb.c
+++ b/iptables/xtables-eb.c
@@ -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;