summaryrefslogtreecommitdiff
path: root/lang/python/python3/files/python3-package-pip.mk
diff options
context:
space:
mode:
authorMarcin Jurkowski <marcin1j@gmail.com>2017-09-03 00:56:09 +0200
committerMarcin Jurkowski <marcin1j@gmail.com>2017-09-12 11:18:52 +0200
commit66406f98db005ab62ad81251893c0550064914d5 (patch)
tree81db5b61ff4a56a2e3853a92a9bbbd1c0f22df54 /lang/python/python3/files/python3-package-pip.mk
parent2b1eb9c9c575c7c84aa3df50d3bf9d9d3cabe5bd (diff)
mwan3: fix interface-bound traffic when interface is offline
This commit fixed what 6d99b602 was supposed to fix without affecting interface-bound traffic. Before 6d99b602 interface-bound traffic was working normally as long as at least one interface was online. However when the last interface went offline, it was impossible to ping and such state was unrecoverable. Commit 6d99b602 fixed unrecoverable offline state problem (it was possible to ping -I iface) but messed inteface-bound traffic. Traffic with interface source address was not working if the interface was in "offline" state, even if another interface was online. The problem was caused by an inconsistent "offline" interface state: iptables-related rules were kept while routing table and policy were deleted. The idea behind this commit is to: 1. Keep all the rules for each interface (iptables, routing table, policy) regardless of its state. This ensures consistency, 2. Make interface state hotplug events affect only iptables' mwan3_policy_* rules. Interface-related iptables, routing table and policy is removed only when mwan3 is manually stopped. To make such changes possible, it's necessary to change the way mwan3_policy_* rule generator keeps track of interface state hotplug events. Until now, it checked for the existence of custom interface-related routing table (table id 1, 2, 3, ...). Clearly we can no longer rely on that so each interface state is stored explicitly in file. Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
Diffstat (limited to 'lang/python/python3/files/python3-package-pip.mk')
0 files changed, 0 insertions, 0 deletions