summaryrefslogtreecommitdiff
path: root/trafgen_lexer.l
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2017-01-30 10:33:24 +0200
committerTobias Klauser <tklauser@distanz.ch>2017-02-09 12:03:15 +0100
commit4156f1451ac83e0ba1cfa856c86c44af7d30e6f0 (patch)
tree6b120abfc6c8f86dd6324f0c055db41ffa6052f5 /trafgen_lexer.l
parentb78eb052d569dd25d4963124bf800429b695616c (diff)
trafgen: parser: Rename bytes -> mac
Rename <bytes> token member to <mac> as it is used only for MAC address parsing, for dynamic sized bytes array we have <str>. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_lexer.l')
-rw-r--r--trafgen_lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_lexer.l b/trafgen_lexer.l
index 65ec245..cf67c74 100644
--- a/trafgen_lexer.l
+++ b/trafgen_lexer.l
@@ -300,7 +300,7 @@ ip6_addr ({v680}|{v67}|{v66}|{v65}|{v64}|{v63}|{v62}|{v61}|{v60})
{number_ascii} { yylval.number = (uint8_t) (*yytext);
return number; }
-{mac} { if (str2mac(yytext, yylval.bytes, 256))
+{mac} { if (str2mac(yytext, yylval.mac, 6))
panic("Failed to parse MAC address %s\n", yytext);
return mac; }