trafgen: proto: Increment proto field at runtime
commit208db0e4a3ceb21a65527d87198cf6f49c4b06dc
authorVadim Kochan <vadim4j@gmail.com>
Fri, 12 Aug 2016 23:11:11 +0000 (13 02:11 +0300)
committerTobias Klauser <tklauser@distanz.ch>
Wed, 21 Sep 2016 07:53:42 +0000 (21 09:53 +0200)
tree98b5a9105a0ac701ca659af655218303e9e8936e
parente7dd63060e448bf6667c92a3b774cec0feeff452
trafgen: proto: Increment proto field at runtime

Implement incrementing of proto field at runtime with min & max
parameters, by default if the 'min' parameter is not specified then
original value is used. For fields which len is greater than 4 - last 4
bytes are incremented as 4 byte value (this trick is used to increment
MAC/IPv6 addresses).

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
trafgen_proto.c
trafgen_proto.h