File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / miniupnpd / commonrdr.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: commonrdr.h,v 1.1 2012/02/21 23:16:02 misho Exp $ */
    2: /* MiniUPnP project
    3:  * (c) 2006-2007 Thomas Bernard
    4:  * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
    5:  * This software is subject to the conditions detailed
    6:  * in the LICENCE file provided within the distribution */
    7: #ifndef __COMMONRDR_H__
    8: #define __COMMONRDR_H__
    9: 
   10: #include "config.h"
   11: 
   12: /* init and shutdown functions */
   13: int
   14: init_redirect(void);
   15: 
   16: void
   17: shutdown_redirect(void);
   18: 
   19: /* get_redirect_rule() gets internal IP and port from
   20:  * interface, external port and protocl
   21:  */
   22: int
   23: get_redirect_rule(const char * ifname, unsigned short eport, int proto,
   24:                   char * iaddr, int iaddrlen, unsigned short * iport,
   25:                   char * desc, int desclen,
   26:                   u_int64_t * packets, u_int64_t * bytes);
   27: 
   28: int
   29: get_redirect_rule_by_index(int index,
   30:                            char * ifname, unsigned short * eport,
   31:                            char * iaddr, int iaddrlen, unsigned short * iport,
   32:                            int * proto, char * desc, int desclen,
   33:                            u_int64_t * packets, u_int64_t * bytes);
   34: 
   35: #endif
   36: 

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