Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions 3rdParty/LightPcapNg/LightPcapNg/src/light_pcapng_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@ int light_get_next_packet(light_pcapng_t *pcapng, light_packet_header *packet_he
packet_header->timestamp.tv_nsec = 0;
if (pcapng->file_info->interface_block_count > 0)
packet_header->data_link = pcapng->file_info->link_types[0];
else
packet_header->data_link = 0xFFFF; /* unknown/invalid link type sentinel (no interface block present) */

*packet_data = (uint8_t*)spb->packet_data;
}
Expand Down
2 changes: 1 addition & 1 deletion Pcap++/src/PcapFileDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ namespace pcpp
return false;
}

light_packet_header pktHeader;
light_packet_header pktHeader{};
const uint8_t* pktData = nullptr;

if (!light_get_next_packet(toLightPcapNgT(m_LightPcapNg), &pktHeader, &pktData))
Expand Down