aboutsummaryrefslogtreecommitdiff
path: root/net/mwan3/files/lib
Commit message (Collapse)AuthorAge
...
* net/mwan3: remove pid file use pgrep to get pidFlorian Eckert2017-05-12
| | | | | | | | | | | | | | | If mwan3track will not stop immediately after sending the kill signal, the clean_up handler will delete the pid file later while the new mwan3track is already running. This could result in a situation that mwan3track is running more then once because the old mwan3track service could not be killed, because the pid file is missing. Using pgrep to kill all mwan3track for the tracked interface and not using pid file should fix this issue. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: registrate SIGUSR1 trap on interface down eventFlorian Eckert2017-04-11
| | | | | | | | | | | | If interface is getting down by netifd (unplug ethernet cable) mwan3track will not recognize this change. It will also generate an additional down event when he notice does his tracking interface is offline. Mwan3track will now be informed by a signal (trap) USR1 during down event that the interface is already down. An additional down event will not be generated. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: decrease parameter invocation of mwan3trackFlorian Eckert2017-04-05
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add clean_up trap function for SIGINT SIGTERMFlorian Eckert2017-04-04
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add failure and recovery intervalFlorian Eckert2017-03-27
| | | | | | | | | | | | | If mwan3track detects a failure the interval check will change to "failure_interval" value until this interface is declared "offline". After interface gets "offline" normal "interval" value is used again. If interface ping is successful again "recovery_interval" value is used until interface is declared "online" again. Using the different intervals will accelerate the wan line detections on failure and recovery. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add ubus interface checkFlorian Eckert2017-03-21
| | | | | | | | | On interfaces with interface proto "qmi|ncm" and option dhcp enabled the interface will be changed to $iface_4 | $iface_6. The interface mapping in mwan3 will not recognize this interface. To fix this issue an ubus call will check if an upper interface exists. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add ping size option to mwan3trackFlorian Eckert2017-03-16
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: reset conntrack table on iface up/down eventFlorian Eckert2017-03-16
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: remove bad local shell variable declarationsJo-Philipp Wich2016-09-24
| | | | | | | Local variable declarations outside of functions are illegal since the Busybox update to v1.25.0, therfore remove them from the appropriate places. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* mwan3: update to version 2.0-2Jeroen Louwes2015-12-21
| | | | | | Fix iptables issue where a needed ipset was not created if first wan that came online was not a member of policy. Signed-off-by: Jeroen Louwes <jeroen.louwes@gmail.com>
* mwan3: update to version 2.0-1Jeroen Louwes2015-12-17
| | | | | | | Fix issue with sticky sessions not working correctly Fix issue where user created ipsets were not applied Signed-off-by: Jeroen Louwes <jeroen.louwes@gmail.com>
* mwan3: update to version 2.0-0Jeroen Louwes2015-11-19
IPv6 support! :D Big code overhaul; expect bugs.. Signed-off-by: Jeroen Louwes <jeroen.louwes@gmail.com>