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, 10 months ago) by misho
Branches: elwix, MAIN
CVS tags: v1_8p0, v1_8, HEAD
1.8

/* $Id: testiptpinhole.c,v 1.1.1.1 2013/07/22 00:32:35 misho Exp $ */
/* MiniUPnP project
 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
 * (c) 2012 Thomas Bernard
 * This software is subject to the conditions detailed
 * in the LICENCE file provided within the distribution */

#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <syslog.h>

#include "../config.h"
#include "iptpinhole.h"
#include "../commonrdr.h"


int main(int argc, char * * argv)
{
	int uid;

	openlog("testiptpinhole", LOG_PERROR|LOG_CONS, LOG_LOCAL0);

	uid = add_pinhole("eth0", NULL, 0, "ff::123", 54321, IPPROTO_TCP);
	return 0;
}


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