struct rgt_cap_idx_rec

Overview

Entry in index of capture files heads. More…

#include <rgt_log_bundle_common.h>

struct rgt_cap_idx_rec {
    // fields

    uint64_t pos;
    uint32_t len;
};

Detailed Documentation

Entry in index of capture files heads.

Capture file head is the main PCAP header + PCAP header and data related to the first captured packet. That packet is a fake one containing information about sniffer (TA name, interface name, etc).

All such heads are stored in a single file in RAW log bundle. A separate index file tells at which position a head for a particular capture file is stored and how many bytes it contains.

Fields

uint64_t pos

Position in the file of capture heads

uint32_t len

Length of the capture file head