38#define ICMPV6_DST_UNR (1)
39#define ICMPV6_PKT_TOO_BIG (2)
40#define ICMPV6_TIME_EXC (3)
41#define ICMPV6_PARAM_PROB (4)
42#define ICMPV6_ERR_EXP1 (100)
43#define ICMPV6_ERR_EXP2 (101)
55#define ICMPV6_ECHO_REQ (128)
56#define ICMPV6_ECHO_REP (129)
57#define ICMPV6_RTR_SOL (133)
58#define ICMPV6_RTR_ADV (134)
59#define ICMPV6_NBR_SOL (135)
60#define ICMPV6_NBR_ADV (136)
61#define ICMPV6_REDIRECT (137)
62#define ICMPV6_RPL_CTRL (155)
63#define ICMPV6_DAR (157)
64#define ICMPV6_DAC (158)
65#define ICMPV6_INF_EXP1 (200)
66#define ICMPV6_INF_EXP2 (201)
80#define ICMPV6_ERROR_DST_UNR_NO_ROUTE (0)
81#define ICMPV6_ERROR_DST_UNR_PROHIB (1)
84#define ICMPV6_ERROR_DST_UNR_SCOPE (2)
85#define ICMPV6_ERROR_DST_UNR_ADDR (3)
86#define ICMPV6_ERROR_DST_UNR_PORT (4)
87#define ICMPV6_ERROR_DST_UNR_POLICY (5)
89#define ICMPV6_ERROR_DST_UNR_REJECT (6)
103#define ICMPV6_ERROR_TIME_EXC_HL (0)
104#define ICMPV6_ERROR_TIME_EXC_FRAG (1)
118#define ICMPV6_ERROR_PARAM_PROB_HDR_FIELD (0)
120#define ICMPV6_ERROR_PARAM_PROB_NH (1)
122#define ICMPV6_ERROR_PARAM_PROB_OPT (2)
135typedef struct __attribute__((packed)) {
149typedef struct __attribute__((packed)) {
164typedef struct __attribute__((packed)) {
179typedef struct __attribute__((packed)) {
194typedef struct __attribute__((packed)) {
212typedef struct __attribute__((packed)) {
Functions to work with different byte orders.
be_uint32_t network_uint32_t
A 32 bit integer in network byte order.
be_uint16_t network_uint16_t
A 16 bit integer in network byte order.
void icmpv6_hdr_print(icmpv6_hdr_t *hdr)
Print the given ICMPv6 header to STDOUT.
Echo request and response message format.
network_uint16_t id
identifier
network_uint16_t csum
checksum
network_uint16_t seq
Sequence number.
Destination unreachable message format.
network_uint16_t csum
checksum
network_uint32_t unused
unused field
Parameter problem message format.
network_uint32_t ptr
pointer
network_uint16_t csum
checksum
Packet too big message format.
network_uint16_t csum
checksum
Time exceeded message format.
network_uint32_t unused
unused field
network_uint16_t csum
checksum
General ICMPv6 message format.
network_uint16_t csum
checksum