summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorJoan Lledó <jlledom@member.fsf.org>2025-07-29 17:52:44 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-07-29 22:08:54 +0200
commitecbc38df9f62ecffd1349b6f3b4fd234dbc08fe4 (patch)
treeb9b5affa83d4227064586967d668876ac52d3a4b /libtrivfs
parent529b93b8f6cc94830325cfde1b237f0ca04af38e (diff)
lwip: allow setting an zero or broadcast addressHEADmaster
After DHCPRELEASE, DHCP client sends a SIOCSIFADDR to set the interface address to 0.0.0.0. This is not accepted by our IP validator `ipv4config_is_valid()`. I think this use case is legit so this commit makes the translator accept 0.0.0.0 as a valid address. This assumes that a client trying to set IP to 0.0.0.0 is in fact trying to remove the IP from the interface. Then it sets all fields to NONE, in order to pass the validation. * lwip/lwip-util.c: `configure_device`: Add the exception for 0.0.0.0 and 255.255.255.255. Message-ID: <20250729155244.7976-2-jlledom@mailfence.com>
Diffstat (limited to 'libtrivfs')
0 files changed, 0 insertions, 0 deletions