So in C, while reading from a Pcap file, you can use the C libpcap library to get all this information related to the global headers:
typedef struct pcap_hdr_s {
guint32 magic_number; /* magic number */
guint16 version_major; /* major version number */
guint16 version_minor; /* minor version number */
gint32 thiszone; /* GMT to local correction */
guint32 sigfigs; /* accuracy of timestamps */
guint32 snaplen; /* max length of captured packets, in octets */
guint32 network; /* data link type */
} pcap_hdr_t;
So I've searched for a long time to no avail in how to find these variables in python libraries Scapy/Kamene.
Can somebody please show me sample code from the Scapy/Kamene that'll help me find all these variables or at least a way to find all these variables??