Miniupnpd v. 1.5 (20110618)
[tomato.git] / release / src / router / miniupnpd / netfilter / iptcrdr.h
blob2f35c61704d42a26cc61f0d1606d4742958b33c2
1 /* $Id: iptcrdr.h,v 1.17 2011/06/04 15:44:58 nanard Exp $ */
2 /* MiniUPnP project
3 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
4 * (c) 2006-2011 Thomas Bernard
5 * This software is subject to the conditions detailed
6 * in the LICENCE file provided within the distribution */
8 #ifndef __IPTCRDR_H__
9 #define __IPTCRDR_H__
11 #include "../commonrdr.h"
13 int
14 add_redirect_rule2(const char * ifname,
15 const char * rhost, unsigned short eport,
16 const char * iaddr, unsigned short iport, int proto,
17 const char * desc, unsigned int timestamp);
19 int
20 add_filter_rule2(const char * ifname,
21 const char * rhost, const char * iaddr,
22 unsigned short eport, unsigned short iport,
23 int proto, const char * desc);
25 int
26 delete_redirect_and_filter_rules(unsigned short eport, int proto);
28 /* for debug */
29 int
30 list_redirect_rule(const char * ifname);
32 #endif