We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b6e0ba + 6af2af8 commit f3d9bd9Copy full SHA for f3d9bd9
babeld/babel_interface.c
@@ -310,7 +310,8 @@ DEFPY (babel_set_wired,
310
babel_ifp = babel_get_if_nfo(ifp);
311
312
assert (babel_ifp != NULL);
313
- babel_set_wired_internal(babel_ifp, no ? 0 : 1);
+ if ((CHECK_FLAG(babel_ifp->flags, BABEL_IF_WIRED) ? 1 : 0) != (no ? 0 : 1))
314
+ babel_set_wired_internal(babel_ifp, no ? 0 : 1);
315
return CMD_SUCCESS;
316
}
317
@@ -328,7 +329,8 @@ DEFPY (babel_set_wireless,
328
329
330
331
- babel_set_wired_internal(babel_ifp, no ? 1 : 0);
332
+ if ((CHECK_FLAG(babel_ifp->flags, BABEL_IF_WIRED) ? 1 : 0) != (no ? 1 : 0))
333
+ babel_set_wired_internal(babel_ifp, no ? 1 : 0);
334
335
336
0 commit comments