2021-12-23 12:27:55 +01:00
|
|
|
#ifndef _N2N_PORT_MAPPING_H_
|
|
|
|
#define _N2N_PORT_MAPPING_H_
|
|
|
|
|
2022-01-10 20:58:15 +01:00
|
|
|
#ifdef HAVE_PORT_FORWARDING
|
|
|
|
|
2021-12-23 12:27:55 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#ifdef HAVE_MINIUPNP
|
2021-12-24 10:32:22 +01:00
|
|
|
#ifdef CMAKE_BUILD
|
|
|
|
// CMAKE uses static linked lib as submodule which requires different includes than
|
|
|
|
// the dynamically linked, intalled library in case of plain make
|
|
|
|
#include <miniupnpc.h>
|
|
|
|
#include <upnpcommands.h>
|
|
|
|
#include <upnperrors.h>
|
|
|
|
#else
|
2021-12-23 12:27:55 +01:00
|
|
|
#include <miniupnpc/miniupnpc.h>
|
|
|
|
#include <miniupnpc/upnpcommands.h>
|
|
|
|
#include <miniupnpc/upnperrors.h>
|
2021-12-24 10:32:22 +01:00
|
|
|
#endif // CMAKE_BUILD
|
2021-12-23 12:27:55 +01:00
|
|
|
#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);
|
|
|
|
|
|
|
|
|
2022-01-10 20:58:15 +01:00
|
|
|
#endif // HAVE_PORT_FORWARDING
|
2021-12-23 12:27:55 +01:00
|
|
|
#endif // _N2N_PORT_MAPPING_H_
|