mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
e6e8cb038a
* UPnP port redirection is supported. * compile fixes * compile fix * optimize reconnection code * prepared upnp threadification to counter main loop stall at supernode change * NAT-PMP port forwarding support, temporarily merge codes to resolve conflicts. * make compile fix * prepared threadification in more detail * adopted threadification to new file setup * cleaned up * renamed functions and data structures * fixes * differentiated between miniupnp and natpmp and added corresponding lib support to makefile * name * commented unused header includes * comments * license * fixes * fixes * fixes * NAT-PMP is already available. * added CLI parameter to disable port forwarding if required * preliminary made use of multithreading * adjusted log level * added man page documentation * def'ed conf * made pmpnat adjustments Co-authored-by: fengdaolong <fengdaolong@gmail.com>
22 lines
397 B
C
22 lines
397 B
C
#ifndef _N2N_PORT_MAPPING_H_
|
|
#define _N2N_PORT_MAPPING_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef HAVE_MINIUPNP
|
|
#include <miniupnpc/miniupnpc.h>
|
|
#include <miniupnpc/upnpcommands.h>
|
|
#include <miniupnpc/upnperrors.h>
|
|
#endif // HAVE_MINIUPNP
|
|
|
|
|
|
#ifdef HAVE_NATPMP
|
|
#include "natpmp.h"
|
|
#endif // HAVE_NATPMP
|
|
|
|
|
|
void n2n_chg_port_mapping (struct n2n_edge *eee, const uint16_t port);
|
|
|
|
|
|
#endif // _N2N_PORT_MAPPING_H_
|