Measuring latency with custom headers
I am trying to adapt l2-load-latency.lua to measure latency for packets that have the following structure:
Eth / Custom Header 1 (2 bytes) / Custom Header 2 (10 bytes) / Custom Header 3 (10 bytes) / Custom Header 4 (4 bytes) / Custom Header 5 (4 bytes)
I have followed the directions given in newProtocolTemplate.lua.
I have modified getEthernetPacket() and getPtpPacket() function in packet.lua so that the createStack() has the appropriate parameters.
After making all these changes I get nan ns readings on running l2-load-latency.lua.
Also when I see packets at the receiving end, they do not have the custom headers that I have created.
Are there any more code changes that I need to make? Also, does MoonGen support this? Measuring latency for packets with custom headers?