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>