1 /* $Id: testiptpinhole.c,v 1.1 2012/04/26 13:50:48 nanard Exp $ */
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 */
10 #include <netinet/in.h>
13 #include "../config.h"
14 #include "iptpinhole.h"
15 #include "../commonrdr.h"
18 int main(int argc
, char * * argv
)
22 openlog("testiptpinhole", LOG_PERROR
|LOG_CONS
, LOG_LOCAL0
);
24 uid
= add_pinhole("eth0", NULL
, 0, "ff::123", 54321, IPPROTO_TCP
);