File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / miniupnpd / netfilter / iptpinhole.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 00:32:35 2013 UTC (10 years, 11 months ago) by misho
Branches: elwix, MAIN
CVS tags: v1_8p0, v1_8, HEAD
1.8

    1: /* $Id: iptpinhole.h,v 1.1.1.1 2013/07/22 00:32:35 misho Exp $ */
    2: /* MiniUPnP project
    3:  * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
    4:  * (c) 2012 Thomas Bernard
    5:  * This software is subject to the conditions detailed
    6:  * in the LICENCE file provided within the distribution */
    7: #ifndef IPTPINHOLE_H_INCLUDED
    8: #define IPTPINHOLE_H_INCLUDED
    9: 
   10: #ifdef ENABLE_6FC_SERVICE
   11: int add_pinhole(const char * ifname,
   12:                 const char * rem_host, unsigned short rem_port,
   13:                 const char * int_client, unsigned short int_port,
   14:                 int proto, unsigned int timestamp);
   15: 
   16: int update_pinhole(unsigned short uid, unsigned int timestamp);
   17: 
   18: int delete_pinhole(unsigned short uid);
   19: 
   20: int
   21: get_pinhole_info(unsigned short uid,
   22:                  char * rem_host, int rem_hostlen, unsigned short * rem_port,
   23:                  char * int_client, int int_clientlen, unsigned short * int_port,
   24:                  int * proto, unsigned int * timestamp,
   25:                  u_int64_t * packets, u_int64_t * bytes);
   26: 
   27: int clean_pinhole_list(unsigned int * next_timestamp);
   28: 
   29: #endif
   30: 
   31: #endif

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