source: lib/daglegacy.h @ e1fdc05

Last change on this file since e1fdc05 was e1fdc05, checked in by Shane Alcock <salcock@…>, 14 years ago
  • Added format for Auckland VII-style ATM header captures
  • Fixed bug in format_legacy where a non-64 byte record would cause an assert fail - it will now keep trying to read until it gets a 64 byte record or reaches EOF.
  • trace_copy_packet was not initializing the cached values sensibly which was wreaking havoc - this is now fixed.
  • Property mode set to 100644
File size: 457 bytes
1#ifndef DAG_LEGACY_H
2#define DAG_LEGACY_H
4typedef struct legacy_cell {
5        uint64_t  ts;
6        uint32_t  crc;
7} PACKED legacy_cell_t;
9typedef struct legacy_ether {
10        uint64_t  ts;
11        uint16_t  wlen;
12} PACKED legacy_ether_t;
14typedef struct legacy_pos {
15        uint64_t  ts;
16        uint32_t  slen;
17        uint32_t  wlen;
18} PACKED legacy_pos_t;
20typedef struct atmhdr {
21        uint32_t ts_fraction;
22        uint32_t ts_sec;
23} PACKED atmhdr_t;
Note: See TracBrowser for help on using the repository browser.