File: nm_types.h

package info (click to toggle)
ion 3.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 23,700 kB
  • ctags: 10,983
  • sloc: ansic: 141,798; sh: 22,848; makefile: 7,818; python: 1,638; sql: 311; perl: 197; awk: 178; xml: 50; java: 19
file content (35 lines) | stat: -rw-r--r-- 735 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
//  nm_types.h
//  DTN Network Management Agent Structures and Data Types
//
//  Author: V. Ramachandran, 8/31/2011
//  Copyright 2011 Johns Hopkins University APL. All rights reserved.
//
#ifndef NM_TYPES_H
#define NM_TYPES_H

#include <stdint.h>
#include <string.h>
#include "platform.h"

#include "debug.h"

#define MAX_EID_LEN (256)

// The beginning of the J2000 epoch (01 Jan 2000, 11:58:55.816 UTC) in
// seconds of the Posix (1970) epoch.
#define BEGIN_J2000 (946727936)

/* The DTNMP relative time cut-off, set as the first second of
 * September 9th, 2012.
 */
#define DTNMP_RELATIVE_TIME_EPOCH (1348025776)

typedef struct
{
    char name[MAX_EID_LEN];
} eid_t;

typedef unsigned char* buffer_t;

#endif /* NM_TYPES_H */