Ethernet padding size

10 views
Skip to first unread message

Gal Itach

unread,
Jan 16, 2014, 9:22:27 AM1/16/14
to libcr...@googlegroups.com
Hi,
Is there a way to find how much padding does the Ethernet layer hold?
If so, is there a function to remove it from my Packet*?

I'm simulating a Router that receives packets from computer A and forwards them to computer B
the problem is that once it leaves A it is 54 bytes and reaches my simulation with 60 bytes and then 
leaves to B with 60 bytes.
It's a problem because B thinks the packet is not TCP ack when it is.

Thanks,

Gal
Reply all
Reply to author
Forward
0 new messages