4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change
on this file since f1a1f5e was
8f4152b,
checked in by Shane Alcock <salcock@…>, 17 years ago
|
Moved legacy headers into daglegacy.h
Fixed some prototypes that were missing const's
Added a erf_get_erf_headersize that accoutns for the random +2 for erf
ethernet padding.
Removed a lot of hard coded constants for padding.
|
-
Property mode set to
100644
|
File size:
1.8 KB
|
Line | |
---|
1 | #ifndef _DAGFORMAT_H_ |
---|
2 | #define _DAGFORMAT_H_ |
---|
3 | |
---|
4 | /* GPP record type defines */ |
---|
5 | #define TYPE_LEGACY 0 |
---|
6 | #define TYPE_HDLC_POS 1 |
---|
7 | #define TYPE_ETH 2 |
---|
8 | #define TYPE_ATM 3 |
---|
9 | #define TYPE_AAL5 4 |
---|
10 | |
---|
11 | /* GPP Type 1 */ |
---|
12 | typedef struct pos_rec { |
---|
13 | uint32_t hdlc; |
---|
14 | uint8_t pload[1]; |
---|
15 | } pos_rec_t; |
---|
16 | |
---|
17 | /* GPP Type 2 */ |
---|
18 | typedef struct eth_rec { |
---|
19 | uint8_t offset; |
---|
20 | uint8_t pad; |
---|
21 | uint8_t dst[6]; |
---|
22 | uint8_t src[6]; |
---|
23 | uint16_t etype; |
---|
24 | uint8_t pload[1]; |
---|
25 | } eth_rec_t; |
---|
26 | |
---|
27 | /* GPP Type 3 */ |
---|
28 | typedef struct atm_rec { |
---|
29 | uint32_t header; |
---|
30 | uint8_t pload[1]; |
---|
31 | } atm_rec_t; |
---|
32 | |
---|
33 | /* GPP Type 4 */ |
---|
34 | typedef struct aal5_rec { |
---|
35 | uint32_t header; |
---|
36 | uint8_t pload[1]; |
---|
37 | } aal5_rec_t; |
---|
38 | |
---|
39 | typedef struct flags { |
---|
40 | uint8_t iface:2; |
---|
41 | uint8_t vlen:1; |
---|
42 | uint8_t trunc:1; |
---|
43 | uint8_t rxerror:1; |
---|
44 | uint8_t dserror:1; |
---|
45 | uint8_t pad:2; |
---|
46 | } __attribute__((packed)) flags_t; |
---|
47 | |
---|
48 | /* GPP Global type */ |
---|
49 | typedef struct dag_record { |
---|
50 | uint64_t ts; |
---|
51 | uint8_t type; |
---|
52 | flags_t flags; |
---|
53 | uint16_t rlen; |
---|
54 | uint16_t lctr; |
---|
55 | uint16_t wlen; |
---|
56 | union { |
---|
57 | pos_rec_t pos; |
---|
58 | eth_rec_t eth; |
---|
59 | atm_rec_t atm; |
---|
60 | aal5_rec_t aal5; |
---|
61 | } rec; |
---|
62 | } __attribute__((packed)) dag_record_t; |
---|
63 | |
---|
64 | |
---|
65 | typedef struct duck_inf |
---|
66 | { |
---|
67 | uint32_t Command, Config, Clock_Inc, Clock_Wrap, DDS_Rate; |
---|
68 | uint32_t Crystal_Freq; |
---|
69 | uint32_t Synth_Freq, Sync_Rate; |
---|
70 | uint64_t Last_Ticks; |
---|
71 | uint32_t Resyncs; |
---|
72 | uint32_t Bad_Diffs, Bad_Offs, Bad_Pulses; |
---|
73 | uint32_t Worst_Error, Worst_Off; |
---|
74 | uint32_t Off_Limit, Off_Damp; |
---|
75 | uint32_t Pulses, Single_Pulses_Missing, Longest_Pulse_Missing; |
---|
76 | uint32_t Health, Sickness; |
---|
77 | int32_t Error, Offset; |
---|
78 | int32_t Stat_Start, Stat_End; /* these are really time_t's */ |
---|
79 | uint32_t Set_Duck_Field; |
---|
80 | } duck_inf; |
---|
81 | |
---|
82 | #define dag_record_size 16 |
---|
83 | |
---|
84 | #endif // _DAGFORMAT_H_ |
---|
Note: See
TracBrowser
for help on using the repository browser.