core/dhcp: Add check to ensure DHCP cannot be used without IP broadcast support

This commit is contained in:
rowanG077 2023-09-15 09:38:55 +02:00 committed by Rowan Goemans
parent fe7421b55c
commit 14010b3579
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ class LiteEthUDPIPCore(LiteEthIPCore):
):
# Ensure either IP is external or DHCP is used
assert((ip_address is None) == with_dhcp)
# DHCP requres IP broadcast
assert(not with_dhcp or with_ip_broadcast)
# Parameters.
# -----------