summaryrefslogtreecommitdiffstats
path: root/libip6t_NPTV6.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-11-10 09:29:22 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-11-12 09:25:24 +0100
commit86a5d1878d33a974289d61bcab5fc5d8d05c9c42 (patch)
tree09bffa0fa6944682aa4c77b128b19057ce248675 /libip6t_NPTV6.c
parent0344f2ec310d317dc5f31e5c066a7a141d504333 (diff)
downloadNPTv6-86a5d1878d33a974289d61bcab5fc5d8d05c9c42.tar
NPTv6-86a5d1878d33a974289d61bcab5fc5d8d05c9c42.zip
Add support for older kernel and iptables versions
Diffstat (limited to 'libip6t_NPTV6.c')
-rw-r--r--libip6t_NPTV6.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/libip6t_NPTV6.c b/libip6t_NPTV6.c
index 4c7aae7..3b75434 100644
--- a/libip6t_NPTV6.c
+++ b/libip6t_NPTV6.c
@@ -21,7 +21,7 @@ void NPTV6_help_note(void)
"ip6tables -t mangle -I POSTROUTING -o eth0 -s FD01:0203:0405::/48 -j SNPTV6 --to-source 2001:0DB8:0001::/48\n");
}
-static void parse_to(const char *orig_arg, struct ip6t_nptv6_info *info)
+void NPTV6_parse_to(const char *orig_arg, struct ip6t_nptv6_info *info)
{
char *arg, *slash;
@@ -43,18 +43,6 @@ static void parse_to(const char *orig_arg, struct ip6t_nptv6_info *info)
free(arg);
}
-void NPTV6_parse(struct xt_option_call *cb)
-{
- struct ip6t_nptv6_info* info = (struct ip6t_nptv6_info*)cb->data;
-
- xtables_option_parse(cb);
- switch(cb->entry->id) {
- case 0:
- parse_to(cb->arg, info);
- break;
- }
-}
-
void NPTV6_print(const void *ip, const struct xt_entry_target *target, int numeric)
{
const struct ip6t_nptv6_info* info = (struct ip6t_nptv6_info*)target->data;