Applied, thanks!

Joan Lledó, le sam. 11 oct. 2025 12:51:01 +0200, a ecrit:
> From: Joan Lledó <[email protected]>
> 
> ---
>  lwip/iioctl-ops.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/lwip/iioctl-ops.c b/lwip/iioctl-ops.c
> index a9e382ee..fcdca865 100644
> --- a/lwip/iioctl-ops.c
> +++ b/lwip/iioctl-ops.c
> @@ -456,7 +456,14 @@ lwip_S_iioctl_siocdifaddr (struct sock_user * user,
>                          const ifname_t ifnam,
>                          sockaddr_t addr)
>  {
> -  return EOPNOTSUPP;
> +  /* To delete an address, we set it to ADDR_NONE.
> +   * That will remove the netmask and the gateway as well.
> +   */
> +  struct sockaddr_in sin;
> +  sin.sin_family = AF_INET;
> +  sin.sin_addr.s_addr = INADDR_NONE;
> +
> +  return siocsifXaddr (user, ifnam, (struct sockaddr *) &sin, ADDR);
>  }
>  
>  /* 33 SIOCGIFADDR -- Get address of a network interface.  */
> -- 
> 2.50.1
> 
> 

-- 
Samuel
The nice thing about Windows is - It does not just crash, it displays a
dialog box and lets you press 'OK' first.
(Arno Schaefer's .sig)

Reply via email to