[dpdk-users] PktGen Ethertype
jwbensley at gmail.com
Wed May 10 11:12:48 CEST 2017
On 9 May 2017 at 15:13, Paul Emmerich <emmericp at net.in.tum.de> wrote:
> You can have a look at one of the example scripts to see packet modifications in action:
> Basically, you can add
> pkt.eth.type = <ethertype> (network byte order)
> pkt.eth:setType(<ethertype>) (automatic byte order swap)
> In the main loop at line 92 where it currently modifies the IP addresses.
> This is still fast because we dynamically build and compile the necessary structs for the protocol stack.
> You can also receive packets to find out which ethertypes are dropped (if any), an example of packet reception can be found in this example:
I've had my eye on MoonGen already and I was reading the doc's trying
to work out how to do the same with MoonGen and PtkGen. I was still
reading the MoonGen docs though so you've saved me some time!.
That last point about checking which packets were received is critical.
Thanks, I'll give this a go!
More information about the users