Skip to content
Commit e8803dda authored by Robert Lubos's avatar Robert Lubos Committed by Carles Cufí
Browse files

net: dhcpv4: Do not proceed with DHCPv4 when interface is down



It should be possible to configure/initialize the DHCPv4 for an
interface when the interface is down, the DHCPv4 however should not
proceed with the procedure in such case.

Add a simple check to prevent DHCPv4 from sending packets when interface
is down. As the module registers to the NET_IF_UP event, the procedure
will be restarted when the interface goes up.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 004955f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment