File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / miniupnpd / ipf / ipfrdr.h
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:16:02 2012 UTC (12 years, 4 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

    1: /* $Id: ipfrdr.h,v 1.1 2012/02/21 23:16:02 misho Exp $ */
    2: /* MiniUPnP project
    3:  * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
    4:  * (c) 2006-2007 Thomas Bernard 
    5:  * This software is subject to the conditions detailed
    6:  * in the LICENCE file provided within the distribution */
    7: #ifndef __IPFRDR_H__
    8: #define __IPFRDR_H__
    9: 
   10: #include "../commonrdr.h"
   11: 
   12: int
   13: add_redirect_rule2(const char * ifname, unsigned short eport,
   14:                    const char * iaddr, unsigned short iport, int proto,
   15: 				   const char * desc);
   16: 
   17: int
   18: add_filter_rule2(const char * ifname, const char * iaddr,
   19:                  unsigned short eport, unsigned short iport,
   20: 				 int proto, const char * desc);
   21:  
   22: 
   23: /* get_redirect_rule() gets internal IP and port from
   24:  * interface, external port and protocl
   25:  */
   26: #if 0
   27: int
   28: get_redirect_rule(const char * ifname, unsigned short eport, int proto,
   29:                   char * iaddr, int iaddrlen, unsigned short * iport,
   30:                   char * desc, int desclen,
   31:                   u_int64_t * packets, u_int64_t * bytes);
   32: 
   33: int
   34: get_redirect_rule_by_index(int index,
   35:                            char * ifname, unsigned short * eport,
   36:                            char * iaddr, int iaddrlen, unsigned short * iport,
   37:                            int * proto, char * desc, int desclen,
   38:                            u_int64_t * packets, u_int64_t * bytes);
   39: #endif
   40: 
   41: /* delete_redirect_rule()
   42:  */
   43: int
   44: delete_redirect_rule(const char * ifname, unsigned short eport, int proto);
   45: 
   46: /* delete_filter_rule()
   47:  */
   48: int
   49: delete_filter_rule(const char * ifname, unsigned short eport, int proto);
   50: 
   51: int
   52: clear_redirect_rules(void);
   53: 
   54: #endif
   55: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>