Skip to content

Commit 613faff

Browse files
committed
Prevent isolated names flowing into the unisolated network
1 parent 97114c4 commit 613faff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/nameservice/src/nameservice.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,11 @@ olsr_parser(union olsr_message *m, struct interface_olsr *in_if __attribute__ ((
715715

716716
update_name_entry(&originator, namemessage, size, vtime);
717717

718+
/* Never forward these messages from an isolated interface */
719+
if (in_if->mode == IF_MODE_ISOLATED) {
720+
return false;
721+
}
722+
718723
/* Forward the message */
719724
return true;
720725
}

0 commit comments

Comments
 (0)