diff options
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r-- | trafgen_parser.y | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y index 0fe8674..a286e6b 100644 --- a/trafgen_parser.y +++ b/trafgen_parser.y @@ -153,6 +153,16 @@ struct packet *current_packet(void) return &packets[packet_last]; } +uint32_t current_packet_id(void) +{ + return packet_last; +} + +struct packet *packet_get(uint32_t id) +{ + return &packets[id]; +} + static void set_byte(uint8_t val) { struct packet *pkt = &packets[packet_last]; |