Annotation of embedaddon/miniupnpd/netfilter/testiptpinhole.c, revision 1.1.1.1

1.1       misho       1: /* $Id: testiptpinhole.c,v 1.1 2012/04/26 13:50:48 nanard 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>