Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

66AK2L06: Need to read packet size in my code from the cppi driver and match it to the tcpdump or Wireshark capture

$
0
0

Part Number:66AK2L06

Need to read packet size in my code from the cppi driver and match it to the tcpdump or Wireshark capture

Description
---------------
I am using the cppi driver in the Multicore Navigator to capture ethernet packets and I want to verify the size of each captured packets. In my code, I used p_hostDesc->buffLen where p_hostDesc = (Cppi_HostDesc *)p_cppiDesc. In one of the packets (see below), p_hostDesc->buffLen reported 60 bytes but the whole capture was only 56 bytes? Does the bufLen corresponds to the captured packet size? If so, how does it come up the 60 bytes as the captured length? Or is there a different way to get the packet size?

(Example packet mentioned above)

Here is the packet:
------------------
Frame 2222: 56 bytes on wire (448 bits), 56 bytes captured (448 bits)
Linux cooked capture
Packet type: Sent by us (4)
Link-layer address type: 1
Link-layer address length: 6
Source: 02:42:0a:65:01:25 (02:42:0a:65:01:25)
Protocol: IPv4 (0x0800)
Internet Protocol Version 4, Src: 10.101.1.37, Dst: 10.101.1.73
0100 .... = Version: 4
.... 0101 = Header Length: 20 bytes (5)
Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT)
Total Length: 40
Identification: 0xebec (60396)
Flags: 0x02 (Don't Fragment)
Fragment offset: 0
Time to live: 1
Protocol: UDP (17)
Header checksum: 0x76a1 [validation disabled]
[Header checksum status: Unverified]
Source: 10.101.1.37
Destination: 10.101.1.73
[Source GeoIP: Unknown]
[Destination GeoIP: Unknown]
User Datagram Protocol, Src Port: 48139, Dst Port: 2625
Source Port: 48139
Destination Port: 2625
Length: 20
Checksum: 0x175d [unverified]
[Checksum Status: Unverified]
[Stream index: 26]
Data (12 bytes)
Data: 060900040001000000020000
[Length: 12]


Viewing all articles
Browse latest Browse all 262198

Trending Articles