mwan3: add "use" function to mwan3 utils
authorAaron Goodman <redacted>
Tue, 25 Aug 2020 22:16:07 +0000 (18:16 -0400)
committerAaron Goodman <redacted>
Fri, 16 Oct 2020 13:54:48 +0000 (09:54 -0400)
commitd49ca29eca7c1ccc930ceceda1c8086c3cfaa198
tree3717b8a15b688b014de1d6a357ec32627748d2e1
parentbbbc6127abf132a92cc73dd23fa88409dc2b9abd
mwan3: add "use" function to mwan3 utils

Use "mwan3 use" to wrap a command with interface bindings so that you can
avoid the mwan3 rules and test behavior on a specific interface.

eg "mwan3 use wan ping -c1 1.1.1.1"

Additional binding arguments to the command will have their system
calls intercepted and ignored.

eg "mwan3 use wan ping -c1 -I tun0 1.1.1.1" will use the
device associated with "wan", rather than "tun0".

Signed-off-by: Aaron Goodman <redacted>
net/mwan3/files/lib/mwan3/common.sh
net/mwan3/files/usr/sbin/mwan3
net/mwan3/files/usr/sbin/mwan3track
git clone https://git.99rst.org/PROJECT