Contiki 2.5
custody_signal.h
Go to the documentation of this file.
1 /**
2  * \addtogroup admininistrative_records
3  * @{
4  */
5 
6 /**
7  * \file
8  * \brief Definition of Custody Signals
9  * \author Georg von Zengen <vonzeng@ibr.cs.tu-bs.de>
10  */
11 
12 #ifndef CUSTODY_SIGNAL_H
13 #define CUSTODY_SIGNAL_H
14 
15 #include <stdint.h>
16 
17 #include "contiki.h"
18 
19 #include "bundle.h"
20 
21 #define CUSTODY_TRANSFER_SUCCEEDED (0x80)
22 #define CUSTODY_TRANSFER_FAILED (0x00)
23 #define NO_ADDITIONAL_INFORMATION (0x00)
24 #define REDUNDANT_RECEPTION (0x03)
25 #define DEPLETED_STORAGE (0x04)
26 #define DEST_EID_UNINTELLIGIBLE (0x05)
27 #define NO_KNOWN_ROUTE_TO_DEST (0x06)
28 #define NO_TIMELY_CONTACT_WITH_NEXT_NODE (0x07)
29 #define BLOCK_UNINTELLIGIBLE (0x08)
30 typedef struct {
31 
32  uint8_t status;
33  uint32_t fragement_offset;
34  uint32_t fragment_length;
35  uint32_t custody_signal_time;
36  uint32_t bundle_creation_timestamp;
37  uint32_t bundle_creation_timestamp_seq;
38  uint32_t src_node;
39  uint32_t src_app;
40 } custody_signal_t;
41 
42 #endif