Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
481f742c
Commit
481f742c
authored
6 years ago
by
Martine Lenders
Browse files
Options
Downloads
Patches
Plain Diff
gnrc_netif: interface configuration for 6LoENC
parent
45b95e86
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/net/gnrc/netif/gnrc_netif.c
+9
-1
9 additions, 1 deletion
sys/net/gnrc/netif/gnrc_netif.c
with
9 additions
and
1 deletion
sys/net/gnrc/netif/gnrc_netif.c
+
9
−
1
View file @
481f742c
...
@@ -1114,6 +1114,9 @@ static ipv6_addr_t *_src_addr_selection(gnrc_netif_t *netif,
...
@@ -1114,6 +1114,9 @@ static ipv6_addr_t *_src_addr_selection(gnrc_netif_t *netif,
bool
gnrc_netif_is_6ln
(
const
gnrc_netif_t
*
netif
)
bool
gnrc_netif_is_6ln
(
const
gnrc_netif_t
*
netif
)
{
{
switch
(
netif
->
device_type
)
{
switch
(
netif
->
device_type
)
{
#ifdef MODULE_GNRC_SIXLOENC
case
NETDEV_TYPE_ETHERNET
:
#endif
case
NETDEV_TYPE_IEEE802154
:
case
NETDEV_TYPE_IEEE802154
:
case
NETDEV_TYPE_CC110X
:
case
NETDEV_TYPE_CC110X
:
case
NETDEV_TYPE_BLE
:
case
NETDEV_TYPE_BLE
:
...
@@ -1177,7 +1180,9 @@ static void _init_from_device(gnrc_netif_t *netif)
...
@@ -1177,7 +1180,9 @@ static void _init_from_device(gnrc_netif_t *netif)
assert
(
res
==
sizeof
(
tmp
));
assert
(
res
==
sizeof
(
tmp
));
netif
->
device_type
=
(
uint8_t
)
tmp
;
netif
->
device_type
=
(
uint8_t
)
tmp
;
switch
(
netif
->
device_type
)
{
switch
(
netif
->
device_type
)
{
#if defined(MODULE_NETDEV_IEEE802154) || defined(MODULE_NRFMIN) || defined(MODULE_XBEE) || defined(MODULE_ESP_NOW)
#if defined(MODULE_NETDEV_IEEE802154) || defined(MODULE_NRFMIN) || \
defined(MODULE_XBEE) || defined(MODULE_ESP_NOW) || \
defined(MODULE_GNRC_SIXLOENC)
case
NETDEV_TYPE_IEEE802154
:
case
NETDEV_TYPE_IEEE802154
:
case
NETDEV_TYPE_NRFMIN
:
case
NETDEV_TYPE_NRFMIN
:
#ifdef MODULE_GNRC_SIXLOWPAN_IPHC
#ifdef MODULE_GNRC_SIXLOWPAN_IPHC
...
@@ -1201,6 +1206,9 @@ static void _init_from_device(gnrc_netif_t *netif)
...
@@ -1201,6 +1206,9 @@ static void _init_from_device(gnrc_netif_t *netif)
case
NETDEV_TYPE_ETHERNET
:
case
NETDEV_TYPE_ETHERNET
:
#ifdef MODULE_GNRC_IPV6
#ifdef MODULE_GNRC_IPV6
netif
->
ipv6
.
mtu
=
ETHERNET_DATA_LEN
;
netif
->
ipv6
.
mtu
=
ETHERNET_DATA_LEN
;
#endif
#if defined(MODULE_GNRC_SIXLOWPAN_IPHC) && defined(MODULE_GNRC_SIXLOENC)
netif
->
flags
|=
GNRC_NETIF_FLAGS_6LO_HC
;
#endif
#endif
break
;
break
;
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment