OpenWSN Firmware
Main Page
Modules
Data Structures
Files
File List
Globals
icmpv6.h
Go to the documentation of this file.
1
#ifndef __ICMPv6_H
2
#define __ICMPv6_H
3
11
//=========================== define ==========================================
12
13
//=========================== typedef =========================================
14
15
typedef
struct
{
16
uint8_t
type
;
17
uint8_t
code
;
18
uint16_t
checksum
;
19
// Below Identifier might need to be replaced by the identifier used by icmpv6rpl
20
// uint16_t identifier;
21
// Below sequence_number might need to be removed
22
// uint16_t sequence_number;
23
}
ICMPv6_ht
;
24
25
typedef
struct
{
26
uint8_t
type
;
27
uint8_t
code
;
28
uint16_t
checksum
;
29
uint8_t
hop_limit
;
30
uint8_t
flags
;
31
uint16_t
router_lifetime
;
32
uint32_t
reachable_time
;
33
uint32_t
retransmission_timer
;
34
}
ICMPv6_RA_ht
;
35
36
typedef
struct
{
37
uint8_t
option_type
;
38
uint8_t
option_length
;
39
uint8_t
prefix_length
;
40
uint8_t
flags
;
41
uint32_t
valid_lifetime
;
42
uint32_t
preferred_lifetime
;
43
uint32_t
unused
;
44
uint8_t prefix[16];
// prefix container always 16B
45
}
ICMPv6_64bprefix_option_ht
;
46
47
//=========================== variables =======================================
48
49
//=========================== prototypes ======================================
50
51
void
icmpv6_init
(
void
);
52
owerror_t
icmpv6_send
(
OpenQueueEntry_t
* msg);
53
void
icmpv6_sendDone
(
OpenQueueEntry_t
* msg,
owerror_t
error);
54
void
icmpv6_receive
(
OpenQueueEntry_t
* msg);
55
61
#endif
ICMPv6_RA_ht::checksum
uint16_t checksum
Definition:
icmpv6.h:28
ICMPv6_64bprefix_option_ht::option_type
uint8_t option_type
Definition:
icmpv6.h:37
ICMPv6_ht::code
uint8_t code
Definition:
icmpv6.h:17
ICMPv6_RA_ht::retransmission_timer
uint32_t retransmission_timer
Definition:
icmpv6.h:33
owerror_t
uint8_t owerror_t
Definition:
openwsn.h:265
icmpv6_receive
void icmpv6_receive(OpenQueueEntry_t *msg)
Definition:
icmpv6.c:44
ICMPv6_ht::type
uint8_t type
Definition:
icmpv6.h:16
ICMPv6_64bprefix_option_ht
Definition:
icmpv6.h:36
ICMPv6_RA_ht::hop_limit
uint8_t hop_limit
Definition:
icmpv6.h:29
icmpv6_sendDone
void icmpv6_sendDone(OpenQueueEntry_t *msg, owerror_t error)
Definition:
icmpv6.c:24
ICMPv6_64bprefix_option_ht::unused
uint32_t unused
Definition:
icmpv6.h:43
ICMPv6_ht
Definition:
icmpv6.h:15
icmpv6_send
owerror_t icmpv6_send(OpenQueueEntry_t *msg)
Definition:
icmpv6.c:18
ICMPv6_64bprefix_option_ht::valid_lifetime
uint32_t valid_lifetime
Definition:
icmpv6.h:41
ICMPv6_RA_ht
Definition:
icmpv6.h:25
OpenQueueEntry_t
Definition:
openwsn.h:288
ICMPv6_64bprefix_option_ht::option_length
uint8_t option_length
Definition:
icmpv6.h:38
icmpv6_init
void icmpv6_init()
Definition:
icmpv6.c:15
ICMPv6_RA_ht::reachable_time
uint32_t reachable_time
Definition:
icmpv6.h:32
ICMPv6_64bprefix_option_ht::flags
uint8_t flags
Definition:
icmpv6.h:40
ICMPv6_64bprefix_option_ht::preferred_lifetime
uint32_t preferred_lifetime
Definition:
icmpv6.h:42
ICMPv6_RA_ht::type
uint8_t type
Definition:
icmpv6.h:26
ICMPv6_ht::checksum
uint16_t checksum
Definition:
icmpv6.h:18
ICMPv6_RA_ht::flags
uint8_t flags
Definition:
icmpv6.h:30
ICMPv6_RA_ht::router_lifetime
uint16_t router_lifetime
Definition:
icmpv6.h:31
ICMPv6_RA_ht::code
uint8_t code
Definition:
icmpv6.h:27
ICMPv6_64bprefix_option_ht::prefix_length
uint8_t prefix_length
Definition:
icmpv6.h:39
firmware
openos
openwsn
03b-IPv6
icmpv6.h
Generated on Wed Sep 24 2014 04:39:18 for OpenWSN Firmware by
1.8.5