rh.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2015 Cenk Gündoğan <cnkgndgn@gmail.com>
3  * SPDX-FileCopyrightText: 2018 Freie Universität Berlin
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
22 #include <stdint.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
36 #define IPV6_EXT_RH_TYPE_0 (0U)
37 
41 #define IPV6_EXT_RH_TYPE_NIMROD (1U)
42 
47 #define IPV6_EXT_RH_TYPE_2 (2U)
48 
53 #define IPV6_EXT_RH_TYPE_RPL_SRH (3U)
63 typedef struct __attribute__((packed)) {
64  uint8_t nh;
65  uint8_t len;
66  uint8_t type;
67  uint8_t seg_left;
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
IPv6 routing extension header.
Definition: rh.h:63
uint8_t len
length in 8 octets without first octet
Definition: rh.h:65
uint8_t seg_left
number of route segments remaining
Definition: rh.h:67
uint8_t nh
next header
Definition: rh.h:64
uint8_t type
identifier of a particular routing header type
Definition: rh.h:66