The expected output is: Total packets: 1
The actual output is : Total packets: 0
I have dug a little into the library's code, and I think the problem originates from this line:
data->pdu = safe_alloc<EthernetII( (const uint8_t*)bytes, h->caplen); ( sniff_loop_eth_handler function, in sniffer.cpp file)
this line of code sets the data->pdu to NULL, instead of setting non-NULL value
Let me know if there is additional information needed,
Hi,
I try to parse multicast(fieldbus) packets( see attached zipped pcap file, containing single packet).
Environment: Ubuntu 18.04.6
Below is the code I wrote to reproduce the issue:
The expected output is:
Total packets: 1
The actual output is :Total packets: 0
I have dug a little into the library's code, and I think the problem originates from this line:
data->pdu = safe_alloc<EthernetII( (const uint8_t*)bytes, h->caplen);
(sniff_loop_eth_handler
function, insniffer.cpp
file) this line of code sets thedata->pdu
toNULL
, instead of settingnon-NULL
valueLet me know if there is additional information needed,
Tnx.
mcast_fieldbus_packet.zip