mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-27 22:39:46 +00:00
Fix NeighborDiscovery code now that ZT_SOCKADDR_NULL doesn’t exist
This commit is contained in:
parent
dab0fb9e05
commit
0a11dd2d24
@ -32,7 +32,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
namespace ZeroTier {
|
namespace ZeroTier {
|
||||||
|
|
||||||
uint16_t calc_checksum (uint16_t *addr, int len)
|
uint16_t calc_checksum (uint16_t *addr, int len)
|
||||||
{
|
{
|
||||||
int count = len;
|
int count = len;
|
||||||
@ -193,7 +193,7 @@ sockaddr_storage NeighborDiscovery::processIncomingND(const uint8_t *nd, unsigne
|
|||||||
assert(sizeof(_neighbor_advertisement) == 32);
|
assert(sizeof(_neighbor_advertisement) == 32);
|
||||||
|
|
||||||
const uint64_t now = OSUtils::now();
|
const uint64_t now = OSUtils::now();
|
||||||
sockaddr_storage ip = ZT_SOCKADDR_NULL;
|
sockaddr_storage ip = {0};
|
||||||
|
|
||||||
if (len >= sizeof(_neighbor_solicitation) && nd[0] == 0x87) {
|
if (len >= sizeof(_neighbor_solicitation) && nd[0] == 0x87) {
|
||||||
// respond to Neighbor Solicitation request for local address
|
// respond to Neighbor Solicitation request for local address
|
||||||
|
Loading…
x
Reference in New Issue
Block a user