dhcpv4: rework assignment lookup
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 12 Sep 2017 09:03:37 +0000 (11:03 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 13 Sep 2017 13:34:22 +0000 (15:34 +0200)
commit0ba3278146ee39a06159a520664e0617da113789
tree80967ab31eb5c02d2782c38275bdc8be21d08641
parente3b49f30d5cd8fa2c6e5b5301d7ffde5fd8b50cc
dhcpv4: rework assignment lookup

When receiving a DHCPv4 message use find_assignment_by_hwaddr to find
an assignment as only one entry can be present in the assignment table
for a given mac address.
While at it pass requested address by the client as an uint32_t type
to clean up the code.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv4.c