OpenDataPlane / odp

The ODP project is an open-source, cross-platform set of application programming interfaces (APIs) for the networking data plane
https://opendataplane.org
Other
176 stars 133 forks source link

[PATCH v5] test: packet_gen: add possibility to define custom L3 headers #2070

Closed TuomasTaipale closed 3 months ago

TuomasTaipale commented 3 months ago

Add new -U option to define custom L3 headers. Option string consists of wanted EtherType followed by a set of field definitions containing the field name, length, value and a diff value that's added (subtracted in case of a negative value) to the value element in successive packets.

If given, the custom L3 header overrides the default IP header and any related options. Additionally, L4 checksums requiring a L3 IP header won't be calculated.

v2:

v3:

v4:

v5: