diff options
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r-- | trafgen_parser.y | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y index 49ee577..4725f7c 100644 --- a/trafgen_parser.y +++ b/trafgen_parser.y @@ -137,6 +137,11 @@ static void realloc_packet(void) __init_new_csum_slot(&packet_dyn[packetd_last]); } +struct packet *current_packet(void) +{ + return &packets[packet_last]; +} + static void set_byte(uint8_t val) { struct packet *pkt = &packets[packet_last]; |