/* Write the global header to wireshark. This is only done once at the beginning of the capture.  */
static void write_global_hdr()
/* Write the global header to wireshark. This is only done once at the beginning of the capture.  */
static void write_global_hdr()
{
    uint32_t magic_number = 0xa1b2c3d4;
    uint16_t version_major = 2;
    uint16_t version_minor = 4;
    int32_t thiszone = 0;
    uint32_t sigfigs = 0;
    uint32_t snaplen = 65535;
    uint32_t network = 195;
    data_write(&magic_number, sizeof(magic_number));
    data_write(&version_major, sizeof(version_major));
    data_write(&version_minor, sizeof(version_minor));
    data_write(&thiszone, sizeof(thiszone));
    data_write(&sigfigs, sizeof(sigfigs));
    data_write(&snaplen, sizeof(snaplen));
    data_write(&network, sizeof(network));
}