summaryrefslogtreecommitdiffhomepage
path: root/src/odhcpd.h
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2019-05-17 21:29:25 +0200
committerHans Dedecker <dedeckeh@gmail.com>2019-05-17 21:29:25 +0200
commitd11180932b2fb8784aaad0830c032e42b8bb64ac (patch)
tree0f0cc379a264e7bb2c903067785f0d16069ab19a /src/odhcpd.h
parent41a74cba1bec349d1e1c5be4442e7fddb2d4adf7 (diff)
router: make RA flags configurable (FS#2019)
Replace the config option ra_management by the config options ra_flags and ra_slaac. The latter allows to configure the autonomous-address config flag used for stateless address configuration while the former allows to configure the RA flags in the form of a list. The list can hold the following values : managed-config other-config home-agent none Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/odhcpd.h')
-rw-r--r--src/odhcpd.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/odhcpd.h b/src/odhcpd.h
index 37a5a4a..8715ca7 100644
--- a/src/odhcpd.h
+++ b/src/odhcpd.h
@@ -246,6 +246,13 @@ struct interface {
bool master;
bool ignore;
bool always_rewrite_dns;
+
+ // NDP
+ int learn_routes;
+
+ // RA
+ uint8_t ra_flags;
+ bool ra_slaac;
bool ra_not_onlink;
bool ra_advrouter;
bool ra_useleasetime;
@@ -253,11 +260,7 @@ struct interface {
bool no_dynamic_dhcp;
uint8_t pio_filter_length;
struct in6_addr pio_filter_addr;
-
- // RA
- int learn_routes;
int default_router;
- int ra_managed;
int route_preference;
int ra_maxinterval;
int ra_mininterval;
@@ -303,10 +306,6 @@ struct interface {
extern struct avl_tree interfaces;
-#define RA_MANAGED_NO_MFLAG 0
-#define RA_MANAGED_MFLAG 1
-#define RA_MANAGED_NO_AFLAG 2
-
inline static void free_assignment(struct dhcp_assignment *a)
{
list_del(&a->head);