apinger: improve uci and procd support
authorJaymin Patel <jem.patel@gmail.com>
Mon, 10 Apr 2023 18:23:25 +0000 (21:23 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Mon, 10 Apr 2023 18:23:25 +0000 (21:23 +0300)
commite5c7e5021794dcb79b5cfa3a4c08c8324f9dce0c
tree532e3b491cb7a0f2046f5a9b96e38834252d0ee9
parent87c46fde91e743aea1704853a801e59a73ef47a2
apinger: improve uci and procd support

- convert apinger into procd instances
- generate instance specific apinger.conf from uci
- hotplug handling for apinger alarms
- restart apinger interface instance on ifup action of interface
- don't exit on packet count mismatch, allows to use apinger as monitor
  for multiple targets handling
- add srcip option to target configuration, allows specifying source ip
  used to monitor target
- allow creating status file in script parseable format

Patches are ported against latest version of apinger and referenced from
https://git.pld-linux.org/?p=packages/apinger.git;a=summary

Signed-off-by: Jaymin Patel <jem.patel@gmail.com>
(cherry picked from commit e4e3206f3283e673bfac717e00332deb8dd2c079)
net/apinger/Makefile
net/apinger/files/apinger-hotplug [new file with mode: 0644]
net/apinger/files/apinger.config [new file with mode: 0644]
net/apinger/files/apinger.init
net/apinger/files/iface.hotplug [new file with mode: 0644]
net/apinger/files/user.hotplug [new file with mode: 0644]
net/apinger/patches/030-apinger-no_exit.patch [new file with mode: 0644]
net/apinger/patches/040-srcip.patch [new file with mode: 0644]
net/apinger/patches/050-statusformat.patch [new file with mode: 0644]