mwan3: Allow user to specify rules based on source interface
authorAaron Goodman <aaronjg@stanford.edu>
Thu, 28 May 2020 22:29:56 +0000 (18:29 -0400)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 6 Jul 2020 06:58:45 +0000 (08:58 +0200)
commit74b6f10845c5d83dd362155bc262953caf962ea1
tree302b9cd31a920ff8235de8e736dda90ce70f4311
parentc14e74a5a8601e37f1fe28da7d5c164d059f2029
mwan3: Allow user to specify rules based on source interface

Add an option for adding rules based on source interface.
The default 0.0.0.0/0 src and destination ip addresses has been removed. It is unclear
how the 'any' family of rules would have worked, as it appears each rule always required an
ipv4 or ipv6 address src and destination address.  With this change, the any family will work
again.

I also cleaned up a bunch of repeated code around adding the iptables rules for
ipv4/ipv6/any in making the change.

Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
(cherry picked from commit 5147dfc73aafd5b5accc6e480d51a639b000eac5)
net/mwan3/files/lib/mwan3/mwan3.sh