Merge pull request #18470 from zmw12306/NH_Init

babeld: Add next hop initialization
This commit is contained in:
Russ White 2025-04-01 10:13:11 -04:00 committed by GitHub
commit ec1fcc1799
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -441,6 +441,14 @@ parse_packet(const unsigned char *from, struct interface *ifp,
return;
}
if (v4mapped(from)) {
memcpy(v4_nh, from, 16);
have_v4_nh = 1;
} else {
memcpy(v6_nh, from, 16);
have_v6_nh = 1;
}
i = 0;
while(i < bodylen) {
message = packet + 4 + i;