diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-02-07 03:05:49 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-02-07 03:05:49 +0100 |
commit | f6992cbb211a42f776333fe65dfad49f17455a3f (patch) | |
tree | 92f7775b3b8b8d8b7fda61cddb5e4974d4221773 /xshared.h | |
parent | 7a548b32d9ad8d6e4a8398573d4fa8c4e4a1f9e0 (diff) |
src: deduplicate find_proto function
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'xshared.h')
-rw-r--r-- | xshared.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |