File: bpnm.h

package info (click to toggle)
ion 3.2.1%2Bdfsg-1.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,768 kB
  • ctags: 11,049
  • 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 (95 lines) | stat: -rw-r--r-- 2,261 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
 	bpnm.h:	definitions supporting the BP instrumentation API.

	Copyright (c) 2011, California Institute of Technology.
	ALL RIGHTS RESERVED.  U.S. Government Sponsorship
	acknowledged.

	Author: Larry Shackleford, GSFC
	Modified by Scott Burleigh per changes in MIB definition
 									*/
#ifndef _BPNM_H_
#define _BPNM_H_

#ifdef __cplusplus
extern "C" {
#endif

#define BPNM_ENDPOINT_NAME_FMT_STRING           ("%s:%s")
#define BPNM_ENDPOINT_FILLPATT                  (0xE1)
#define BPNM_ENDPOINT_EIDSTRING_LEN             (32)


/*****************************************/

typedef struct
{
	char		nodeID[256];
	char		bpVersionNbr[16];
	uvast		avblStorage;
	time_t		lastRestartTime;
	unsigned int	nbrOfRegistrations;
} NmbpNode;

typedef struct
{
	uvast		currentForwardPending;
	uvast		currentDispatchPending;
	uvast		currentInCustody;
	uvast		currentReassemblyPending;

	uvast		bundleSourceCount[3];
	uvast		bundleSourceBytes[3];
	uvast		currentResidentCount[3];
	uvast		currentResidentBytes[3];

	uvast		bundlesFragmented;
	uvast		fragmentsProduced;

	uvast		delNoneCount;
	uvast		delExpiredCount;
	uvast		delFwdUnidirCount;
	uvast		delCanceledCount;
	uvast		delDepletionCount;
	uvast		delEidMalformedCount;
	uvast		delNoRouteCount;
	uvast		delNoContactCount;
	uvast		delBlkMalformedCount;

	uvast		bytesDeletedToDate;

	uvast		custodyRefusedCount;
	uvast		custodyRefusedBytes;
	uvast		bundleFwdFailedCount;
	uvast		bundleFwdFailedBytes;
	uvast		bundleAbandonCount;
	uvast		bundleAbandonBytes;
	uvast		bundleDiscardCount;
	uvast		bundleDiscardBytes;
} NmbpDisposition;

typedef struct
{
	char		eid[BPNM_ENDPOINT_EIDSTRING_LEN];
	int		active;			/*	Boolean		*/
	int		singleton;		/*	Boolean		*/
	int		abandonOnDelivFailure;	/*	Boolean		*/
} NmbpEndpoint;

extern void	bpnm_node_get(NmbpNode * buffer);

extern void	bpnm_extensions_get(char * nameBuffer, int bufLen,
			char * nameArray [], int * numStrings);

extern void	bpnm_disposition_get(NmbpDisposition * buffer);
extern void	bpnm_disposition_reset();

extern void	bpnm_endpointNames_get(char * nameBuffer, int bufLen,
			char * nameArray [], int * numStrings);
extern void	bpnm_endpoint_get(char * name, NmbpEndpoint * buffer,
			int * success);
#ifdef __cplusplus
}
#endif

#endif  /* _BPNM_H_ */