New upstream version 3.1.1
This commit is contained in:
parent
4e9934e5ec
commit
e7b41df57b
229 changed files with 57000 additions and 12055 deletions
51
include/n2n_port_mapping.h
Normal file
51
include/n2n_port_mapping.h
Normal file
|
@ -0,0 +1,51 @@
|
|||
/**
|
||||
* (C) 2007-22 - ntop.org and contributors
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not see see <http://www.gnu.org/licenses/>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _N2N_PORT_MAPPING_H_
|
||||
#define _N2N_PORT_MAPPING_H_
|
||||
|
||||
#ifdef HAVE_PORT_FORWARDING
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef HAVE_MINIUPNP
|
||||
#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
|
||||
#include <miniupnpc/miniupnpc.h>
|
||||
#include <miniupnpc/upnpcommands.h>
|
||||
#include <miniupnpc/upnperrors.h>
|
||||
#endif // CMAKE_BUILD
|
||||
#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 // HAVE_PORT_FORWARDING
|
||||
#endif // _N2N_PORT_MAPPING_H_
|
Loading…
Add table
Add a link
Reference in a new issue