vlmcsd-1107-2016-12-12-Hotbird64

This commit is contained in:
Wind4
2016-12-18 13:14:31 +08:00
parent af593fc11b
commit c5e1a0a591
21 changed files with 216 additions and 232 deletions
+5 -1
View File
@@ -17,6 +17,10 @@
#include "tap-windows.h"
#include <iphlpapi.h>
#if !_WIN32
#include <arpa/inet.h>
#endif // !_WIN32
static char* szIpAddress = "10.10.10.9";
static char* szMask = "30";
static char* szTapName;
@@ -117,7 +121,7 @@ static void parseTapArgument(char* argument)
exit(VLMCSD_EINVAL);
}
Mask = (uint32_t)~(UINT_MAX >> Cidr);
Mask = (uint32_t)~(0xffffffff >> Cidr);
Network = IpAddress & Mask;
Broadcast = IpAddress | ~Mask;
DhcpServer = IpAddress + 1;