Commit 92bf9d8
committed
prevent routes/rules from leaking on various config changes
Runtime changes to `metric`, `no_defaultroute`, `disable_addr_rules`, and
the `ip{4,6}table{,_local}` options can lead to various routes and rules
being leaked.
Instead of updating to the new value right away, mark `reload_ip` first,
then do the teardown, change the value, and finally set everything up
again.
For the broader `reload` case, it works the same. Explicit teardown was
added in order to avoid having to 'inject' the changing values into
farther-away code (the async case with `mark_interface_down` is
particularly gnarly).
Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>1 parent fd7b03e commit 92bf9d8
1 file changed
Lines changed: 39 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1339 | 1339 | | |
1340 | 1340 | | |
1341 | 1341 | | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
1342 | 1350 | | |
1343 | 1351 | | |
1344 | 1352 | | |
| |||
1383 | 1391 | | |
1384 | 1392 | | |
1385 | 1393 | | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
1389 | | - | |
1390 | | - | |
1391 | | - | |
1392 | | - | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
1393 | 1401 | | |
1394 | 1402 | | |
1395 | 1403 | | |
| 1404 | + | |
1396 | 1405 | | |
1397 | 1406 | | |
1398 | 1407 | | |
| |||
1405 | 1414 | | |
1406 | 1415 | | |
1407 | 1416 | | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
1408 | 1429 | | |
1409 | 1430 | | |
1410 | 1431 | | |
| |||
1415 | 1436 | | |
1416 | 1437 | | |
1417 | 1438 | | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
1418 | 1448 | | |
1419 | 1449 | | |
1420 | 1450 | | |
1421 | 1451 | | |
| 1452 | + | |
| 1453 | + | |
1422 | 1454 | | |
1423 | 1455 | | |
1424 | 1456 | | |
| |||
0 commit comments