From e59ed3e68f6091a4bc5bb8b58cb080755feced3c Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 7 Oct 2016 10:03:07 -0700 Subject: [PATCH] Fix size of neighbor solicitation struct --- osdep/NeighborDiscovery.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osdep/NeighborDiscovery.cpp b/osdep/NeighborDiscovery.cpp index ee4cb5b1..68b67794 100644 --- a/osdep/NeighborDiscovery.cpp +++ b/osdep/NeighborDiscovery.cpp @@ -83,6 +83,7 @@ struct _neighbor_solicitation { , checksum(0) , option(1) { + memset(&reserved, 0, sizeof(reserved)); memset(target, 0, sizeof(target)); } @@ -111,6 +112,7 @@ struct _neighbor_solicitation { uint8_t type; // 135 uint8_t code; // 0 uint16_t checksum; + uint32_t reserved; uint8_t target[16]; _option option; };