File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / miniupnpd / netfilter / testiptpinhole.c
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: testiptpinhole.c,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: 
    8: #include <stdio.h>
    9: #include <stdlib.h>
   10: #include <netinet/in.h>
   11: #include <syslog.h>
   12: 
   13: #include "../config.h"
   14: #include "iptpinhole.h"
   15: #include "../commonrdr.h"
   16: 
   17: 
   18: int main(int argc, char * * argv)
   19: {
   20: 	int uid;
   21: 
   22: 	openlog("testiptpinhole", LOG_PERROR|LOG_CONS, LOG_LOCAL0);
   23: 
   24: 	uid = add_pinhole("eth0", NULL, 0, "ff::123", 54321, IPPROTO_TCP);
   25: 	return 0;
   26: }
   27: 

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