Tomato 1.28
[tomato.git] / release / src / router / miniupnpd / netfilter / iptcrdr.h
blobc8ac1bd745e0be44a98fe2332634b7d32fc58405
1 /* $Id: iptcrdr.h,v 1.14 2007/12/18 10:14:12 nanard Exp $ */
2 /* MiniUPnP project
3 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
4 * (c) 2006 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, unsigned short eport,
15 const char * iaddr, unsigned short iport, int proto,
16 const char * desc);
18 int
19 add_filter_rule2(const char * ifname, const char * iaddr,
20 unsigned short eport, unsigned short iport,
21 int proto, const char * desc);
23 int
24 delete_redirect_and_filter_rules(unsigned short eport, int proto);
26 /* for debug */
27 int
28 list_redirect_rule(const char * ifname);
30 int
31 addnatrule(int proto, unsigned short eport,
32 const char * iaddr, unsigned short iport);
34 int
35 add_filter_rule(int proto, const char * iaddr, unsigned short iport);
37 #endif