miniupnpd 1.9 (20160113)
[tomato.git] / release / src / router / miniupnpd / netfilter / testiptpinhole.c
blobcaa383205c5017170b393645b716db3c57e14e96
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 */
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <netinet/in.h>
11 #include <syslog.h>
13 #include "../config.h"
14 #include "iptpinhole.h"
15 #include "../commonrdr.h"
18 int main(int argc, char * * argv)
20 int uid;
22 openlog("testiptpinhole", LOG_PERROR|LOG_CONS, LOG_LOCAL0);
24 uid = add_pinhole("eth0", NULL, 0, "ff::123", 54321, IPPROTO_TCP);
25 return 0;