Fix size of neighbor solicitation struct

This commit is contained in:
Grant Limberg 2016-10-07 10:03:07 -07:00
parent 45c4ccb153
commit e59ed3e68f

View File

@ -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;
};