mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
Merge pull request #18470 from zmw12306/NH_Init
babeld: Add next hop initialization
This commit is contained in:
commit
ec1fcc1799
|
@ -441,6 +441,14 @@ parse_packet(const unsigned char *from, struct interface *ifp,
|
||||||
return;
|
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;
|
i = 0;
|
||||||
while(i < bodylen) {
|
while(i < bodylen) {
|
||||||
message = packet + 4 + i;
|
message = packet + 4 + i;
|
||||||
|
|
Loading…
Reference in a new issue