Annotation of embedaddon/miniupnpd/natpmp.h, revision 1.1.1.2
1.1.1.2 ! misho 1: /* $Id: natpmp.h,v 1.8 2011/05/27 21:36:22 nanard Exp $ */
1.1 misho 2: /* MiniUPnP project
3: * author : Thomas Bernard
4: * website : http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
5: */
6: #ifndef __NATPMP_H__
7: #define __NATPMP_H__
8:
1.1.1.2 ! misho 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. */
1.1 misho 17: #define NATPMP_PORT (5351)
1.1.1.2 ! misho 18: #define NATPMP_NOTIF_PORT (5350)
1.1 misho 19: #define NATPMP_NOTIF_ADDR ("224.0.0.1")
20:
21: int OpenAndConfNATPMPSockets(int * sockets);
22:
23: void ProcessIncomingNATPMPPacket(int s);
24:
1.1.1.2 ! misho 25: #if 0
! 26: int ScanNATPMPforExpiration(void);
1.1 misho 27:
1.1.1.2 ! misho 28: int CleanExpiredNATPMP(void);
! 29: #endif
1.1 misho 30:
31: void SendNATPMPPublicAddressChangeNotification(int * sockets, int n_sockets);
32:
33: #endif
34:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>