usteer: add support for IPv6 remote exchange

This adds optional support for message exchange using IPv6 multicast
messaging. This has the ability for routers and switches between nodes
to route traffic between usteer nodes multicast-aware.

By default, IPv4 is used. IPv6 can be enabled by configuring the ipv6
option to 1.

Signed-off-by: Jan Braun <keksgesicht23@gmail.com>
[squash commits - adapt usock usage]
Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
Jan Braun
2021-09-05 02:43:59 +02:00
committed by David Bauer
parent a52de0ff20
commit e4ea2045eb
6 changed files with 165 additions and 19 deletions

View File

@@ -33,6 +33,9 @@
#define __STR(x) #x
#define _STR(x) __STR(x)
#define APMGR_V6_MCAST_GROUP "ff02::4150"
#define APMGR_PORT 16720 /* AP */
#define APMGR_PORT_STR _STR(APMGR_PORT)
#define APMGR_BUFLEN (64 * 1024)
@@ -122,6 +125,8 @@ struct usteer_config {
bool syslog;
uint32_t debug_level;
bool ipv6;
uint32_t sta_block_timeout;
uint32_t local_sta_timeout;
uint32_t local_sta_update;