dhcpv6-ia: make assignment lookup more strict
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 23 Apr 2018 09:56:27 +0000 (11:56 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 23 Apr 2018 10:14:31 +0000 (12:14 +0200)
commit200cc8f556c1cdb8daa3b591116755e4a80ac655
tree47536edd61a61929397396f4b8ce2b288b485c60
parentdcfc06a7cf32e21ae575ea491ba0206844596516
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>
src/dhcpv6-ia.c
src/odhcpd.h