Global IPV6

Hi,

How can I be informed that my node has got a new global IPV6? I would like to call a function every time the node get a new global IPV6 address. How can I do that?

Cheers,

Hi Baptiste, as of now no such event handler exist, but I note such feature it down for the network layer overhaul (previously known as neighbor discovery overhaul). Expect some early API proposals the week after IETF.

Cheers, Martine

Ok, it's what I thought. How can I temporary hack the source code to get this event handler? Where should I add my function. I need it for some tests

Hi, the the end of the add handler [1] for the IPv6 interfaces should be the best place for that.

Cheers, Martine

[1] https://github.com/RIOT-OS/RIOT/blob/master/sys/net/gnrc/network_layer/ipv6/netif/gnrc_ipv6_netif.c#L160

Thanks Martine!