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
c3141c46
Unverified
Commit
c3141c46
authored
7 years ago
by
Martine Lenders
Browse files
Options
Downloads
Patches
Plain Diff
gnrc_ndp2: port to gnrc_netif2
parent
fb7fcfdd
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile.dep
+1
-0
1 addition, 0 deletions
Makefile.dep
sys/include/net/gnrc/ndp2.h
+6
-5
6 additions, 5 deletions
sys/include/net/gnrc/ndp2.h
sys/net/gnrc/network_layer/ndp2/gnrc_ndp2.c
+249
-225
249 additions, 225 deletions
sys/net/gnrc/network_layer/ndp2/gnrc_ndp2.c
with
256 additions
and
230 deletions
Makefile.dep
+
1
−
0
View file @
c3141c46
...
...
@@ -256,6 +256,7 @@ endif
ifneq
(,$(filter gnrc_ndp2,$(USEMODULE)))
USEMODULE
+=
gnrc_icmpv6
USEMODULE
+=
gnrc_netif2
endif
ifneq
(,$(filter gnrc_icmpv6_echo,$(USEMODULE)))
...
...
This diff is collapsed.
Click to expand it.
sys/include/net/gnrc/ndp2.h
+
6
−
5
View file @
c3141c46
...
...
@@ -24,8 +24,9 @@
#include
"kernel_types.h"
#include
"net/gnrc/pkt.h"
#include
"net/gnrc/
ipv6/
netif.h"
#include
"net/gnrc/netif
2
.h"
#include
"net/ipv6/addr.h"
#include
"net/ipv6/hdr.h"
#ifdef __cplusplus
extern
"C"
{
...
...
@@ -269,7 +270,7 @@ gnrc_pktsnip_t *gnrc_ndp2_opt_mtu_build(uint32_t mtu, gnrc_pktsnip_t *next);
* for a neighbor solicitation so be sure to check that.
* **Will be released** in an error case.
*/
void
gnrc_ndp2_nbr_sol_send
(
const
ipv6_addr_t
*
tgt
,
gnrc_
ipv6_
netif_t
*
netif
,
void
gnrc_ndp2_nbr_sol_send
(
const
ipv6_addr_t
*
tgt
,
gnrc_netif
2
_t
*
netif
,
const
ipv6_addr_t
*
src
,
const
ipv6_addr_t
*
dst
,
gnrc_pktsnip_t
*
ext_opts
);
...
...
@@ -315,7 +316,7 @@ void gnrc_ndp2_nbr_sol_send(const ipv6_addr_t *tgt, gnrc_ipv6_netif_t *netif,
* check that.
* **Will be released** in an error case.
*/
void
gnrc_ndp2_nbr_adv_send
(
const
ipv6_addr_t
*
tgt
,
gnrc_
ipv6_
netif_t
*
netif
,
void
gnrc_ndp2_nbr_adv_send
(
const
ipv6_addr_t
*
tgt
,
gnrc_netif
2
_t
*
netif
,
const
ipv6_addr_t
*
dst
,
bool
supply_tl2a
,
gnrc_pktsnip_t
*
ext_opts
);
...
...
@@ -328,7 +329,7 @@ void gnrc_ndp2_nbr_adv_send(const ipv6_addr_t *tgt, gnrc_ipv6_netif_t *netif,
* @param[in] netif Interface to send over. May not be NULL.
* @param[in] dst Destination for the router solicitation. ff02::2 if NULL.
*/
void
gnrc_ndp2_rtr_sol_send
(
gnrc_
ipv6_
netif_t
*
netif
,
const
ipv6_addr_t
*
dst
);
void
gnrc_ndp2_rtr_sol_send
(
gnrc_netif
2
_t
*
netif
,
const
ipv6_addr_t
*
dst
);
/**
* @brief Send pre-compiled router advertisement depending on a given network
...
...
@@ -355,7 +356,7 @@ void gnrc_ndp2_rtr_sol_send(gnrc_ipv6_netif_t *netif, const ipv6_addr_t *dst);
* for a neighbor advertisement so be sure to check that.
* **Will be released** in an error case.
*/
void
gnrc_ndp2_rtr_adv_send
(
gnrc_
ipv6_
netif_t
*
netif
,
const
ipv6_addr_t
*
src
,
void
gnrc_ndp2_rtr_adv_send
(
gnrc_netif
2
_t
*
netif
,
const
ipv6_addr_t
*
src
,
const
ipv6_addr_t
*
dst
,
bool
fin
,
gnrc_pktsnip_t
*
ext_opts
);
...
...
This diff is collapsed.
Click to expand it.
sys/net/gnrc/network_layer/ndp2/gnrc_ndp2.c
+
249
−
225
View file @
c3141c46
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