Commit 56b3aefc authored by 's avatar

Fixed napatech driver.


git-svn-id: file:///home/svn/mapi/trunk@1490 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 6975ddd1
......@@ -207,7 +207,7 @@ process_pkts(BufferInformationSectionType1_t* bufferInformation, napatech_instan
PacketExtDescriptorType05_t *pExtDescr = (PacketExtDescriptorType05_t*)(((uint8_t*)descriptor) + sizeof(PacketDescriptorType2_t));
frame = ((uint8_t*)descriptor) + sizeof(PacketDescriptorType2_t) + (descriptor->ExtensionLength << 3);
frame = ((uint8_t*)descriptor);
mhdr.ts = descriptor->Timestamp;
mhdr.ifindex = descriptor->Channel;
......@@ -228,7 +228,7 @@ process_pkts(BufferInformationSectionType1_t* bufferInformation, napatech_instan
}
// ? TODO - modify third argument to pass test_packet_read
mapid_process_pkt(&i->mapidlib, (unsigned char*)frame, frame + (descriptor->StoredLength - descriptor->WireLength), &mhdr);
mapid_process_pkt(&i->mapidlib, (unsigned char*)frame, frame + sizeof(PacketDescriptorType2_t) + (descriptor->ExtensionLength << 3), &mhdr);
/* Avance to the next packet. */
descriptor = (PacketDescriptorType2_t*)((uint8_t*)descriptor + descriptor->StoredLength);
......@@ -237,7 +237,7 @@ process_pkts(BufferInformationSectionType1_t* bufferInformation, napatech_instan
for(packet=0; packet < bufferInformation->numDescriptorsAvailable; packet++) {
i->hwinfo.pkts++;
frame = ((uint8_t*)descriptor) + sizeof(PacketDescriptorType2_t);
frame = ((uint8_t*)descriptor);
mhdr.ts = descriptor->Timestamp;
mhdr.ifindex = descriptor->Channel;
......@@ -245,7 +245,7 @@ process_pkts(BufferInformationSectionType1_t* bufferInformation, napatech_instan
mhdr.wlen = descriptor->WireLength;
// ? TODO - modify third argument to pass test_packet_read
mapid_process_pkt(&i->mapidlib, (unsigned char*)frame, frame + (descriptor->StoredLength - descriptor->WireLength), &mhdr);
mapid_process_pkt(&i->mapidlib, (unsigned char*)frame, frame + sizeof(PacketDescriptorType2_t), &mhdr);
/* Avance to the next packet. */
descriptor = (PacketDescriptorType2_t*)((uint8_t*)descriptor + descriptor->StoredLength);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment