1: /* $Id: natpmp.h,v 1.1.1.3 2013/07/22 00:32:35 misho 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
8:
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")
20:
21: int OpenAndConfNATPMPSockets(int * sockets);
22:
23: void ProcessIncomingNATPMPPacket(int s);
24:
25: #if 0
26: int ScanNATPMPforExpiration(void);
27:
28: int CleanExpiredNATPMP(void);
29: #endif
30:
31: void SendNATPMPPublicAddressChangeNotification(int * sockets, int n_sockets);
32:
33: #endif
34:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>