summaryrefslogtreecommitdiffhomepage
path: root/src/config.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2020-01-02 18:26:51 +0100
committerHans Dedecker <dedeckeh@gmail.com>2020-01-02 20:51:56 +0100
commit2520c483781339f6c7feae617b7e5c0137e3534d (patch)
tree805f52277c9a8b46feceb179dcd2ddd8634f6a1a /src/config.c
parentb413d8a13ad8d8bdc2e5bc700e9bae9b31232779 (diff)
dhcpv6-ia: introduce DHCPv6 pd and ia assignments flags
Simplify the code by using specific flags which identify the assignment either as a DHCPv6 PD or NA assignment. This allows to remove implicit checks for PD and NA assignments based on the value of the assignment length parameter. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index a8458a5..f3ba3e8 100644
--- a/src/config.c
+++ b/src/config.c
@@ -35,6 +35,8 @@ struct config config = {.legacy = false, .main_dhcpv4 = false,
#define START_DEFAULT 100
#define LIMIT_DEFAULT 150
+#define OAF_DHCPV6 (OAF_DHCPV6_NA | OAF_DHCPV6_PD)
+
enum {
IFACE_ATTR_INTERFACE,
IFACE_ATTR_IFNAME,