extended ICMP packet dumping to parts after packet creation
[pingcheck] / src / tools / pcap.cpp
index 1ca7a69..b2d48a6 100644 (file)
@@ -61,15 +61,6 @@ void write_pcap_packet_data(const std::string &data,
 //const uint32_t pcap_magic_number = 0xa1b2c3d4;
 const uint8_t pcap_magic_bytes[] = {0xa1, 0xb2, 0xc3, 0xd4};
 
-// pcap file header is 5 x uint32 + 2 x uint16 --> 24 bytes
-const std::streamsize pcap_file_header_size = sizeof(pcapfile_hdr_t);
-
-// pcap file header is 4 x uint32 --> 16 bytes
-const std::streamsize pcap_packet_header_size = sizeof(pcaprec_hdr_t);
-
-// pcap ethernet header is 2 x 6 byte + 2 byte --> 14 bytes
-const std::streamsize pcap_ethernet_header_size = sizeof(pcapeth_hdr_t);
-
 // determine whether is raw data or pcap by peeking at first 4 bytes
 bool check_for_pcap_header(std::istream &input_stream)
 {