changes to support Protolib ProtoPkt changes

pull/9/head
bebopagogo 2020-01-20 16:51:06 -05:00
parent 260109ea70
commit ff723c71ed
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ int main(int argc, char* argv[])
else else
{ {
memcpy(ethBuffer, pktData, numBytes); memcpy(ethBuffer, pktData, numBytes);
ProtoPktETH ethPkt((UINT32*)ethBuffer, maxBytes); ProtoPktETH ethPkt(ethBuffer, maxBytes);
if (!ethPkt.InitFromBuffer(hdr.len)) if (!ethPkt.InitFromBuffer(hdr.len))
{ {
fprintf(stderr, "pcap2norm error: invalid Ether frame in pcap file\n"); fprintf(stderr, "pcap2norm error: invalid Ether frame in pcap file\n");