Skip to content

Commit 80f1d3b

Browse files
committed
Dont forward messages to isolated interfaces
1 parent e48ea71 commit 80f1d3b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/olsr.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void olsr_do_startup_sleep(void)
106106
sum_startup_sleep,max_startup_sleep);
107107
sleep(max_startup_sleep);
108108
#else /* OLSR_COLLECT_STARTUP_SLEEP */
109-
if (sum_startup_sleep > 0)
109+
if (sum_startup_sleep > 0)
110110
printf("olsrd startup was delayed %i seconds due to various nasty error messages.\nYOU SHOULD REALLY FIX ABOVE PROBLEMS!\n",
111111
sum_startup_sleep);
112112
#endif /* OLSR_COLLECT_STARTUP_SLEEP */
@@ -389,6 +389,9 @@ olsr_forward_message(union olsr_message *m, struct interface_olsr *in_if, union
389389
/* do not forward TTL 1 messages to non-ether interfaces */
390390
if (is_ttl_1 && ifn->mode != IF_MODE_ETHER) continue;
391391

392+
/* do not forward messages to isolated interfaces */
393+
if (ifn->olsr_if->cnf->is_isolated) continue;
394+
392395
if (net_output_pending(ifn)) {
393396
/*
394397
* Check if message is to big to be piggybacked

0 commit comments

Comments
 (0)