Skip to content

Commit 1049ab5

Browse files
committed
Generate cfg
1 parent 6898018 commit 1049ab5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cfgparser/cfgfile_gen.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ static void olsrd_write_if_autobuf(struct autobuf *out, struct olsrd_config *cnf
158158
if_appendf(out, comments, " %sMode \"%s\"\n",
159159
cnfi->mode == DEF_IF_MODE ? "# " : "",
160160
OLSR_IF_MODE[cnfi->mode]);
161+
if (comments) abuf_puts(out,
162+
" # Isolate this interface to prevent neighbor nodes attached here from\n"
163+
" # seeing neighbors attached to other interfaces\n"
164+
"\n");
165+
if_appendf(out, comments, " %sIsolated \"%s\"\n",
166+
cnfi->is_isolated ? "" : "# ",
167+
cnfi->is_isolated ? "yes" : "no");
161168
if (comments) abuf_puts(out,
162169
"\n"
163170
" # IPv4 broadcast address for outgoing OLSR packets.\n"

0 commit comments

Comments
 (0)