summaryrefslogtreecommitdiff
path: root/trafgen_proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_proto.h')
-rw-r--r--trafgen_proto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/trafgen_proto.h b/trafgen_proto.h
index a66f8d3..dbba700 100644
--- a/trafgen_proto.h
+++ b/trafgen_proto.h
@@ -77,7 +77,7 @@ extern void proto_header_fields_add(struct proto_hdr *hdr,
extern bool proto_field_is_set(struct proto_hdr *hdr, uint32_t fid);
extern void proto_field_set_bytes(struct proto_hdr *hdr, uint32_t fid,
- uint8_t *bytes);
+ const uint8_t *bytes);
extern void proto_field_set_u8(struct proto_hdr *hdr, uint32_t fid, uint8_t val);
extern uint8_t proto_field_get_u8(struct proto_hdr *hdr, uint32_t fid);
extern void proto_field_set_u16(struct proto_hdr *hdr, uint32_t fid, uint16_t val);
@@ -86,7 +86,7 @@ extern void proto_field_set_u32(struct proto_hdr *hdr, uint32_t fid, uint32_t va
extern uint32_t proto_field_get_u32(struct proto_hdr *hdr, uint32_t fid);
extern void proto_field_set_default_bytes(struct proto_hdr *hdr, uint32_t fid,
- uint8_t *bytes);
+ const uint8_t *bytes);
extern void proto_field_set_default_u8(struct proto_hdr *hdr, uint32_t fid,
uint8_t val);
extern void proto_field_set_default_u16(struct proto_hdr *hdr, uint32_t fid,