summaryrefslogtreecommitdiff
path: root/trafgen_l2.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-08-09 16:39:13 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-08-09 16:39:13 +0200
commit66cf8073cb31cebf4532afec9b18556aff8088fb (patch)
tree9a115e013af449417261c5f12df1bf7cd1944dd7 /trafgen_l2.c
parent4e47fd021a6945aa626eaef4446c5b547d8c2a85 (diff)
trafgen: proto: Make bytes pointer const in proto field set functions
Make the __proto_field_set_bytes() take a const uint8_t *bytes pointer and also changed all callers accordingly. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_l2.c')
-rw-r--r--trafgen_l2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_l2.c b/trafgen_l2.c
index 316d236..2e411e6 100644
--- a/trafgen_l2.c
+++ b/trafgen_l2.c
@@ -115,7 +115,7 @@ static void arp_header_init(struct proto_hdr *hdr)
lower = proto_lower_default_add(hdr, PROTO_ETH);
if (lower->id == PROTO_ETH) {
- uint8_t bcast[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
+ const uint8_t bcast[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
proto_field_set_default_bytes(lower, ETH_DST_ADDR, bcast);
}