Skip to content

Commit

Permalink
fixup! fixup! gnrc_netif: introduce 6LN flag
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jan 7, 2019
1 parent 2bfdb47 commit 2d1edfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/net/gnrc/network_layer/ipv6/nib/nib.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void gnrc_ipv6_nib_init_iface(gnrc_netif_t *netif)
netif->ipv6.rs_sent = 0;
#endif /* GNRC_IPV6_NIB_CONF_6LN */
switch (netif->device_type) {
case NETDEV_TYPE_IEEE802154:
case NETDEV_TYPE_IEEE802154: {
/* see https://tools.ietf.org/html/rfc6775#section-5.2 */
uint16_t src_len = IEEE802154_LONG_ADDRESS_LEN;
gnrc_netapi_opt_t opt = { .opt = NETOPT_SRC_LEN,
Expand All @@ -126,6 +126,7 @@ void gnrc_ipv6_nib_init_iface(gnrc_netif_t *netif)
* directly everything else would deadlock anyway */
netif->ops->set(netif, &opt);
/* intentionally falls through */
}
case NETDEV_TYPE_BLE:
case NETDEV_TYPE_NRFMIN:
#if GNRC_IPV6_NIB_CONF_6LN
Expand Down

0 comments on commit 2d1edfc

Please sign in to comment.