Contiki 2.5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
core
net
uDTN
administrative_record.h
Go to the documentation of this file.
1
/**
2
* \addtogroup agent
3
*
4
* @{
5
*/
6
7
/**
8
* \defgroup admininistrative_records Administrative Records
9
*
10
* @{
11
*/
12
13
/**
14
* \file
15
* \brief Defines admin records
16
* \author Georg von Zengen <vonzeng@ibr.cs.tu-bs.de>
17
*/
18
19
#ifndef ADMINISTRATIVE_RECORD_H
20
#define ADMINISTRATIVE_RECORD_H
21
22
#include "
custody_signal.h
"
23
#include "
statusreport.h
"
24
25
/**
26
* Administrative Record Type Codes
27
*/
28
#define TYPE_CODE_BUNDLE_STATUS_REPORT (0x01 << 4)
29
#define TYPE_CODE_CUSTODY_SIGNAL (0x02 << 4)
30
31
/**
32
* Administrative Record Flags
33
*/
34
#define ADMIN_FLAGS_IS_FOR_FRAGMENT (0x01)
35
36
#define ADMIN_RECORD_PRIMARY_PCF (0x12)
37
38
typedef
struct
{
39
uint8_t record_status;
/** 8 bit, 4 bit Record Type Code, 4 bit Record Flags */
40
union
{
41
custody_signal_t custody_signal;
/** Custody Signal Struct */
42
status_report_t
status_report
;
43
};
44
} administrative_record_block_t;
45
46
#endif
Generated on Fri Aug 30 2013 12:34:06 for Contiki 2.5 by
1.8.3.1