Update libnatpmp to 4536032ae32268a45c073a4d5e91bbab4534773a

Rebuild as a DLL to prevent MSVC version compatibility issues
This commit is contained in:
Cameron Gutman 2020-11-29 14:27:53 -06:00
parent 38514d08c1
commit 88fb77083f
7 changed files with 7 additions and 0 deletions

View File

@ -51,6 +51,13 @@ typedef unsigned short uint16_t;
#endif /* _WIN32 */
#include "natpmp_declspec.h"
/* Set to 9 by https://tools.ietf.org/html/rfc6886#section-3.1 which leads to a
* maximum timeout of 127.75 seconds, due to the initial 250 ms timeout doubling
* each time, so we allow a compile-time modification here.*/
#ifndef NATPMP_MAX_RETRIES
#define NATPMP_MAX_RETRIES (9)
#endif
typedef struct {
int s; /* socket */
in_addr_t gateway; /* default gateway (IPv4) */

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.