Ipv6 address status change indication?


is it possible to get an indication or callback when a network interface changes state? More specifically, I’m looking to know when an ipv6 global address gets assigned by SLAAC or when it changes.

I didn’t see anything in the API, but as I’m new to RIOT I could have missed it.


1 Like

If you enable the gnrc_netif_bus module you can use gnrc_netif_ipv6_wait_for_global_address() which I think does what you want.

You can also manually attach to the netifs GNRC_NETIF_BUS_IPV6 bus and subscribe to the GNRC_IPV6_EVENT_ADDR_VALID message type - then you receive a message each time an address becomes valid.

1 Like