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
8eab80c3
Commit
8eab80c3
authored
7 years ago
by
Martine Lenders
Committed by
Martine Lenders
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ndp: define RDNSS option
parent
5d4ba9f5
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/include/net/ndp.h
+20
-0
20 additions, 0 deletions
sys/include/net/ndp.h
with
20 additions
and
0 deletions
sys/include/net/ndp.h
+
20
−
0
View file @
8eab80c3
...
@@ -88,6 +88,7 @@ extern "C" {
...
@@ -88,6 +88,7 @@ extern "C" {
#define NDP_OPT_PI (3)
/**< prefix information option */
#define NDP_OPT_PI (3)
/**< prefix information option */
#define NDP_OPT_RH (4)
/**< redirected option */
#define NDP_OPT_RH (4)
/**< redirected option */
#define NDP_OPT_MTU (5)
/**< MTU option */
#define NDP_OPT_MTU (5)
/**< MTU option */
#define NDP_OPT_RDNSS (25)
/**< recursive DNS server option */
#define NDP_OPT_AR (33)
/**< address registration option */
#define NDP_OPT_AR (33)
/**< address registration option */
#define NDP_OPT_6CTX (34)
/**< 6LoWPAN context option */
#define NDP_OPT_6CTX (34)
/**< 6LoWPAN context option */
#define NDP_OPT_ABR (35)
/**< authoritative border router option */
#define NDP_OPT_ABR (35)
/**< authoritative border router option */
...
@@ -120,6 +121,12 @@ extern "C" {
...
@@ -120,6 +121,12 @@ extern "C" {
#define NDP_OPT_MTU_LEN (1U)
#define NDP_OPT_MTU_LEN (1U)
/** @} */
/** @} */
/**
* @brief Minimum length of a recursive DNS server option (in units of 8 bytes)
* @see [RFC 8106, section 5.1](https://tools.ietf.org/html/rfc8106#section-5.1)
*/
#define NDP_OPT_RDNSS_MIN_LEN (3U)
/**
/**
* @{
* @{
* @name Router constants
* @name Router constants
...
@@ -314,6 +321,19 @@ typedef struct __attribute__((packed)) {
...
@@ -314,6 +321,19 @@ typedef struct __attribute__((packed)) {
network_uint32_t
mtu
;
/**< MTU */
network_uint32_t
mtu
;
/**< MTU */
}
ndp_opt_mtu_t
;
}
ndp_opt_mtu_t
;
/**
* @brief Recursive DNS server option format
* @extends ndp_opt_t
*
* @see [RFC 8106, section 5.1](https://tools.ietf.org/html/rfc8106#section-5.1)
*/
typedef
struct
__attribute__
((
packed
))
{
uint8_t
type
;
/**< option type */
uint8_t
len
;
/**< length in units of 8 octets */
network_uint16_t
resv
;
/**< reserved field */
network_uint32_t
ltime
;
/**< lifetime in seconds */
ipv6_addr_t
addrs
[];
/**< addresses of IPv6 recursive DNS servers */
}
ndp_opt_rdnss_t
;
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
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