mwan3: use helper library for mwan3track
authorAaron Goodman <redacted>
Sun, 11 Oct 2020 22:37:25 +0000 (18:37 -0400)
committerAaron Goodman <redacted>
Fri, 16 Oct 2020 13:54:48 +0000 (09:54 -0400)
commitbbbc6127abf132a92cc73dd23fa88409dc2b9abd
treeb0e0de516771222523a601f4cd6c1063e30bacb7
parentfb4a2d99eff3af53d4eea2db36d270a140bde6bf
mwan3: use helper library for mwan3track

Rather than using a special mwan3 user to manage mwan3track's tracking
packets, this commit implements a small helper library to bind to
device and to set a fwmark so that the tracking packets can be routed
out of the correct interface.

This provides a consistent method for binding to a device rather than
relying on various packages potentially buggy implementations. For
example: #8139 and #12836

This helper issue also allows for more tracking methods to be added
even if they do not have a command line option to bind to device,
such as iperf3 (eg  #13050).

Signed-off-by: Aaron Goodman <redacted>
net/mwan3/Makefile
net/mwan3/files/lib/mwan3/common.sh
net/mwan3/files/lib/mwan3/mwan3.sh
net/mwan3/files/usr/sbin/mwan3track
net/mwan3/src/sockopt_wrap.c [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT