third_party/lwip/repo/lwip/src/core/netif.c
/** This function allows for the easy removal of an IPv6 address from an interface.
 *
 * @param netif netif on which the address is assigned
 * @param ip6addr address to remove
 */
This function allows for the easy removal of an IPv6 address from an interface.
@param netif netif on which the address is assigned
@param ip6addr address to remove
This function allows for the easy removal of an IPv6 address from an interface . @param netif netif on which the address is assigned @param ip6addr address to remove
err_t
netif_remove_ip6_address(struct netif *netif, ip6_addr_t *ip6addr)
{
  s8_t i;
  i = netif_matches_ip6_addr(netif, ip6addr);
  if (i >= 0) {
    ip6_addr_set_zero(netif_ip6_addr(netif, i));
    netif_ip6_addr_set_state(netif, i, IP6_ADDR_INVALID);
    return ERR_OK;
  }
  return ERR_VAL;
}
err_t netif_remove_ip6_address ( struct netif * netif , ip6_addr_t * ip6addr ) { s8_t i ; i = netif_matches_ip6_addr ( netif , ip6addr ) ; if ( i >= 0 ) { ip6_addr_set_zero ( netif_ip6_addr ( netif , i ) ) ; netif_ip6_addr_set_state ( netif , i , IP6_ADDR_INVALID ) ; return ERR_OK ; } return ERR_VAL ; }
This function allows for the easy removal of an IPv6 address from an interface.
This function allows for the easy removal of an IPv6 address from an interface .