I have application that play Pcap
files and i try to add function that wrap my packet with PPPOE
layer.
so almost all done except large packets that i didn't understand yet how to set the new langth after add PPPOE
layer.
For example this packet:
As you can see this packet length is 972 bytes (03 cc)
, and all i want is to convert it to decimal, after see this packet byte[]
in my code i can see that this value converted into 3 and 204
in my packet byte[]
, so my question is how this calculation works ?