core/dhcp: Add check to ensure DHCP cannot be used without IP broadcast support
This commit is contained in:
parent
fe7421b55c
commit
14010b3579
|
@ -93,6 +93,8 @@ class LiteEthUDPIPCore(LiteEthIPCore):
|
||||||
):
|
):
|
||||||
# Ensure either IP is external or DHCP is used
|
# Ensure either IP is external or DHCP is used
|
||||||
assert((ip_address is None) == with_dhcp)
|
assert((ip_address is None) == with_dhcp)
|
||||||
|
# DHCP requres IP broadcast
|
||||||
|
assert(not with_dhcp or with_ip_broadcast)
|
||||||
|
|
||||||
# Parameters.
|
# Parameters.
|
||||||
# -----------
|
# -----------
|
||||||
|
|
Loading…
Reference in New Issue