summaryrefslogtreecommitdiffstats
path: root/xshared.h
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-02-07 03:05:49 +0100
committerJan Engelhardt <jengelh@medozas.de>2011-02-07 03:05:49 +0100
commitf6992cbb211a42f776333fe65dfad49f17455a3f (patch)
tree92f7775b3b8b8d8b7fda61cddb5e4974d4221773 /xshared.h
parent7a548b32d9ad8d6e4a8398573d4fa8c4e4a1f9e0 (diff)
src: deduplicate find_proto function
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'xshared.h')
-rw-r--r--xshared.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xshared.h b/xshared.h
index 4a7f96fc..11d95fe5 100644
--- a/xshared.h
+++ b/xshared.h
@@ -1,6 +1,7 @@
#ifndef IPTABLES_XSHARED_H
#define IPTABLES_XSHARED_H 1
+#include <stdint.h>
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/netfilter_ipv6/ip6_tables.h>
@@ -28,5 +29,8 @@ enum {
extern void print_extension_helps(const struct xtables_target *,
const struct xtables_rule_match *);
+extern const char *proto_to_name(uint8_t, int);
+extern struct xtables_match *find_proto(const char *, enum xtables_tryload,
+ int, struct xtables_rule_match **);
#endif /* IPTABLES_XSHARED_H */