|
version 1.1, 2012/02/21 23:16:02
|
version 1.1.1.2, 2012/05/29 12:55:57
|
|
Line 6
|
Line 6
|
| #ifndef __NATPMP_H__ |
#ifndef __NATPMP_H__ |
| #define __NATPMP_H__ |
#define __NATPMP_H__ |
| |
|
| |
/* The NAT-PMP specification which can be found at the url : |
| |
* http://files.dns-sd.org/draft-cheshire-nat-pmp.txt |
| |
* draft version 3 of April 2008 |
| |
* define 5351 as listening port for the gateway, |
| |
* and the 224.0.0.1 port 5350 as the local link |
| |
* multicast address for address change announces. |
| |
* Previous versions of the specification defined 5351 |
| |
* as the port for address change announces. */ |
| #define NATPMP_PORT (5351) |
#define NATPMP_PORT (5351) |
| |
#define NATPMP_NOTIF_PORT (5350) |
| #define NATPMP_NOTIF_ADDR ("224.0.0.1") |
#define NATPMP_NOTIF_ADDR ("224.0.0.1") |
| |
|
| int OpenAndConfNATPMPSockets(int * sockets); |
int OpenAndConfNATPMPSockets(int * sockets); |
| |
|
| void ProcessIncomingNATPMPPacket(int s); |
void ProcessIncomingNATPMPPacket(int s); |
| |
|
| int ScanNATPMPforExpiration(); | #if 0 |
| | int ScanNATPMPforExpiration(void); |
| |
|
| int CleanExpiredNATPMP(); | int CleanExpiredNATPMP(void); |
| | #endif |
| |
|
| void SendNATPMPPublicAddressChangeNotification(int * sockets, int n_sockets); |
void SendNATPMPPublicAddressChangeNotification(int * sockets, int n_sockets); |
| |
|