Stealth Mode script
[tomato.git] / release / src / router / miniupnpd / natpmp.h
blob58c416f1e84539bb0151bcabbc9b6a438444e1f9
1 /* $Id: natpmp.h,v 1.9 2012/09/27 15:47:15 nanard Exp $ */
2 /* MiniUPnP project
3 * author : Thomas Bernard
4 * website : http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
5 */
6 #ifndef NATPMP_H_INCLUDED
7 #define NATPMP_H_INCLUDED
9 /* The NAT-PMP specification which can be found at the url :
10 * http://files.dns-sd.org/draft-cheshire-nat-pmp.txt
11 * draft version 3 of April 2008
12 * define 5351 as listening port for the gateway,
13 * and the 224.0.0.1 port 5350 as the local link
14 * multicast address for address change announces.
15 * Previous versions of the specification defined 5351
16 * as the port for address change announces. */
17 #define NATPMP_PORT (5351)
18 #define NATPMP_NOTIF_PORT (5350)
19 #define NATPMP_NOTIF_ADDR ("224.0.0.1")
21 int OpenAndConfNATPMPSockets(int * sockets);
23 void ProcessIncomingNATPMPPacket(int s);
25 #if 0
26 int ScanNATPMPforExpiration(void);
28 int CleanExpiredNATPMP(void);
29 #endif
31 void SendNATPMPPublicAddressChangeNotification(int * sockets, int n_sockets);
33 #endif