mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc_netif: handle NETDEV_EVENT_LINK_UP/DOWN events
This commit is contained in:
parent
7211aa11af
commit
4b0bfae4ca
@ -1974,6 +1974,14 @@ static void _event_cb(netdev_t *dev, netdev_event_t event)
|
|||||||
DEBUG("gnrc_netif: event triggered -> %i\n", event);
|
DEBUG("gnrc_netif: event triggered -> %i\n", event);
|
||||||
gnrc_pktsnip_t *pkt = NULL;
|
gnrc_pktsnip_t *pkt = NULL;
|
||||||
switch (event) {
|
switch (event) {
|
||||||
|
#if IS_USED(MODULE_GNRC_IPV6_NIB)
|
||||||
|
case NETDEV_EVENT_LINK_UP:
|
||||||
|
gnrc_ipv6_nib_iface_up(netif);
|
||||||
|
break;
|
||||||
|
case NETDEV_EVENT_LINK_DOWN:
|
||||||
|
gnrc_ipv6_nib_iface_down(netif, false);
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
case NETDEV_EVENT_RX_COMPLETE:
|
case NETDEV_EVENT_RX_COMPLETE:
|
||||||
pkt = netif->ops->recv(netif);
|
pkt = netif->ops->recv(netif);
|
||||||
/* send packet previously queued within netif due to the lower
|
/* send packet previously queued within netif due to the lower
|
||||||
|
Loading…
Reference in New Issue
Block a user