diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2018-04-23 11:56:27 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-04-23 12:14:31 +0200 |
commit | 200cc8f556c1cdb8daa3b591116755e4a80ac655 (patch) | |
tree | 47536edd61a61929397396f4b8ce2b288b485c60 /src/odhcpd.h | |
parent | dcfc06a7cf32e21ae575ea491ba0206844596516 (diff) |
dhcpv6-ia: make assignment lookup more strict
Whe doing an assignment lookup do a strict match between the assignment
IAID and the IAID received form the client in case the BOUND or TENTATIVE
assignment flags are set.
This fixes a wrong assignment being returned for a client which uses a
different IAID than the IAID used in a previous DHCPv6 exchange.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/odhcpd.h')
-rw-r--r-- | src/odhcpd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/odhcpd.h b/src/odhcpd.h index 48ee51e..9a27708 100644 --- a/src/odhcpd.h +++ b/src/odhcpd.h @@ -133,8 +133,9 @@ enum odhcpd_mode { enum odhcpd_assignment_flags { - OAF_BOUND = (1 << 0), - OAF_STATIC = (1 << 1), + OAF_TENTATIVE = (1 << 0), + OAF_BOUND = (1 << 1), + OAF_STATIC = (1 << 2), }; struct config { |