Implement new --net-mark option net-mark-support
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 23 Dec 2021 23:11:55 +0000 (00:11 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 16 May 2024 13:19:10 +0000 (15:19 +0200)
commit7942e7d6740383def5d3c2a9a48cb8a80fc0ba23
tree81815d7467bba8026fa006a1e515ff31208c0962
parent60dcabebd386238202192e37a901b3abed647a41
Implement new --net-mark option

This sets SO_MARK on the socket.

New option could be used for routing multiple pingcheck instances
to different gateways running over the same network interface.
21 files changed:
src/CMakeLists.txt
src/config/configuration.cpp
src/config/configuration.h
src/config/configurationoptions.cpp
src/config/option/netmarkoption.cpp [new file with mode: 0644]
src/config/option/netmarkoption.h [new file with mode: 0644]
src/host/networkinterface.hpp
src/host/pingerfactory.cpp
src/host/pingerfactory.h
src/host/pingscheduler.cpp
src/host/pingscheduler.h
src/icmp/icmppinger.cpp
src/icmp/icmppinger.h
src/main.cpp
src/tcp/tcppinger.cpp
src/tcp/tcppinger.h
test/CMakeLists.test_configurationcommandline.txt
test/CMakeLists.test_configurationfile.txt
test/CMakeLists.test_configurationoptions.txt
test/test_configurationcommandline.cpp
test/test_configurationoptions.cpp