Skip to content
Commit 045d317b authored by Marcus Shawcroft's avatar Marcus Shawcroft Committed by Jukka Rissanen
Browse files

net/dhcpv4: Use BROADCAST and UNICAST appropriately.



RFC2131 places explict requirements on a client w.r.t which messages
are broadcast and which are unicast directly to a server.  Notable
rules as they apply to the current dhcpv4 implementation are that
DISCOVER and a REQUEST in response to an OFFER are broadcast.  A
REQUEST in state RENEWAL is unicast.  There are further rules relevant
to the REBINDING state which is not yet implementated.

Adjust the current implementation that always uses broadcast to use
unicast as required by RFC2131

Change-Id: I6edef4241bcd74623a804a73415888cd679888d0
Signed-off-by: default avatarMarcus Shawcroft <marcus.shawcroft@arm.com>
parent 4b24c18f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment