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
fbea5092
Commit
fbea5092
authored
9 years ago
by
Martine Lenders
Browse files
Options
Downloads
Patches
Plain Diff
ng_ipv6_netif: add functions for routing behavior changes
parent
4e5fa612
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/include/net/ng_ipv6/netif.h
+46
-0
46 additions, 0 deletions
sys/include/net/ng_ipv6/netif.h
with
46 additions
and
0 deletions
sys/include/net/ng_ipv6/netif.h
+
46
−
0
View file @
fbea5092
...
...
@@ -253,6 +253,52 @@ void ng_ipv6_netif_remove(kernel_pid_t pid);
*/
ng_ipv6_netif_t
*
ng_ipv6_netif_get
(
kernel_pid_t
pid
);
/**
* @brief Set interface to router mode.
*
* @details This sets/unsets the NG_IPV6_NETIF_FLAGS_ROUTER and initializes
* or ceases router behavior for neighbor discovery.
*
* @param[in] The interface.
* @param[in] Status for the NG_IPV6_NETIF_FLAGS_ROUTER flag.
*/
static
inline
void
ng_ipv6_netif_set_rtr
(
ng_ipv6_netif_t
*
netif
,
bool
enable
)
{
(
void
)
netif
;
/* Don't do anything for non-routers */
(
void
)
enable
;
}
/**
* @brief Set interface to router advertisement mode.
*
* @details If NG_IPV6_NETIF_FLAGS_ROUTER is set this sets/unsets the
* NG_IPV6_NETIF_FLAGS_RTR_ADV and initializes or ceases router
* advertising behavior for neighbor discovery.
*
* @param[in] The interface.
* @param[in] Status for the NG_IPV6_NETIF_FLAGS_RTR flag.
*/
static
inline
void
ng_ipv6_netif_set_rtr_adv
(
ng_ipv6_netif_t
*
netif
,
bool
enable
)
{
(
void
)
netif
;
/* Don't do anything for non-routers */
(
void
)
enable
;
}
/**
* @brief Solicitates an advertisement of a neighboring router on this
* interface.
*
* @param[in] netif The interface.
* @param[in] dst The address of the neighboring router.
* May be NULL for @ref NG_IPV6_ADDR_ALL_ROUTERS_LINK_LOCAL.
*/
static
inline
void
ng_ipv6_netif_sol_router
(
ng_ipv6_netif_t
*
netif
,
ng_ipv6_addr_t
*
dst
)
{
(
void
)
netif
;
/* TODO */
(
void
)
dst
;
}
/**
* @brief Adds an address to an interface.
*
...
...
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