Hi Tommaso, I all,
I implemented the necessary methods to receive a packet with the callback mechanism, so that the packet can be received at layer 3. I managed to send a packet down the line through the csma net device, but the strange thing is that the packet is not always received. When I try different layer 3 packet length I have different results, like the packet has to be around 100 bytes, otherwise I receive errors from the net device comparing headers to payloads (errors from lines 758 and 760 depending on the packet length, in file csma-net-device.cc). When the packet length is ok, I can't receive a packet sent in Dix encapsulation mode, but I can receive a packet encapsulated in Llc mode, and this happens whether I interpose the traffic control layer between layer 2 and 3 or not. Is this normal or I'm missing something? I thought the minimum packet length for layer 3 could be the minimum packet length for Dix spec or Llc spec, 46 byte and 38 byte respectively, if I'm not mistaken. I can't figure it out.
Thanks
Fabrizio