summaryrefslogtreecommitdiff
path: root/trafgen_proto.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-08-13 02:11:12 +0300
committerTobias Klauser <tklauser@distanz.ch>2016-09-21 09:54:11 +0200
commitd5bcf8d0f5a2a549c3cbe71e7704bb557c7eb6a3 (patch)
tree24391949bd00fc3b7bb285db28c5249a8cef6e37 /trafgen_proto.h
parent208db0e4a3ceb21a65527d87198cf6f49c4b06dc (diff)
trafgen: proto: Randomize proto field at runtime
Add dynamic proto field function which can generate random value in specified range (default 0 - MAX_UINT32). Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_proto.h')
-rw-r--r--trafgen_proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/trafgen_proto.h b/trafgen_proto.h
index 0a1c3de..41e9383 100644
--- a/trafgen_proto.h
+++ b/trafgen_proto.h
@@ -54,6 +54,7 @@ struct proto_hdr {
enum proto_field_func_t {
PROTO_FIELD_FUNC_INC = 1 << 0,
PROTO_FIELD_FUNC_MIN = 1 << 1,
+ PROTO_FIELD_FUNC_RND = 1 << 2,
};
struct proto_field_func {