Skip to content

Commit ec1fcc1

Browse files
authored
Merge pull request FRRouting#18470 from zmw12306/NH_Init
babeld: Add next hop initialization
2 parents c312917 + a031da5 commit ec1fcc1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

babeld/message.c

+8
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,14 @@ parse_packet(const unsigned char *from, struct interface *ifp,
441441
return;
442442
}
443443

444+
if (v4mapped(from)) {
445+
memcpy(v4_nh, from, 16);
446+
have_v4_nh = 1;
447+
} else {
448+
memcpy(v6_nh, from, 16);
449+
have_v6_nh = 1;
450+
}
451+
444452
i = 0;
445453
while(i < bodylen) {
446454
message = packet + 4 + i;

0 commit comments

Comments
 (0)