summaryrefslogtreecommitdiff
path: root/trafgen_proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_proto.c')
-rw-r--r--trafgen_proto.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/trafgen_proto.c b/trafgen_proto.c
index 5fd9e1c..b802a3a 100644
--- a/trafgen_proto.c
+++ b/trafgen_proto.c
@@ -477,6 +477,11 @@ void proto_field_set_be32(struct proto_field *field, uint32_t val)
__proto_field_set_bytes(field, (uint8_t *)&val, false, true);
}
+void proto_field_set_bytes(struct proto_field *field, const uint8_t *bytes)
+{
+ __proto_field_set_bytes(field, bytes, false, false);
+}
+
void protos_init(const char *dev)
{
ctx.dev = dev;