wireshark: add radiotap header

This commit is contained in:
Bastian Bloessl
2013-06-16 18:28:54 +02:00
parent b60a133ac8
commit 0bf0803d42
2 changed files with 56 additions and 12 deletions
+14 -2
View File
@@ -39,7 +39,7 @@ namespace foo {
void copy_message(const char *buf, int len);
};
struct pcap_global {
struct pcap_file_hdr {
uint32_t magic_number; /* magic number */
uint16_t version_major; /* major version number */
uint16_t version_minor; /* minor version number */
@@ -49,13 +49,25 @@ namespace foo {
uint32_t network; /* data link type */
}__attribute__((packed));
struct pcap_pkt {
struct pcap_hdr {
uint32_t ts_sec; /* timestamp seconds */
uint32_t ts_usec; /* timestamp microseconds */
uint32_t incl_len; /* number of octets of packet saved in file */
uint32_t orig_len; /* actual length of packet */
}__attribute__((packed));
struct radiotap_hdr {
uint16_t version;
uint16_t hdr_length;
uint32_t bitmap;
uint8_t flags;
uint8_t rate;
uint32_t channel;
uint8_t signal;
uint8_t noise;
uint8_t antenna;
}__attribute__((packed));
} // namespace foo
} // namespace gr