diff options
-rw-r--r-- | trafgen.c | 2 | ||||
-rw-r--r-- | trafgen_lexer.l | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -180,7 +180,7 @@ static void help(void) "Arbitrary packet config examples (e.g. trafgen -e > trafgen.cfg):\n" " Run packet on all CPUs: { fill(0xff, 64) csum16(0, 64) }\n" " Run packet only on CPU1: cpu(1): { rnd(64), 0b11001100, 0xaa }\n" - " Run packet only on CPU1-2: cpu(1:2): { drnd(64),'a',csum16(1, 8),'b',42 }\n\n" + " Run packet only on CPU1-2: cpu(1-2): { drnd(64),'a',csum16(1, 8),'b',42 }\n\n" "Note:\n" " Smoke/fuzz test example: machine A, 10.0.0.2 (trafgen) is directly\n" " connected to machine B (test kernel), 10.0.0.1. If ICMP reply fails\n" diff --git a/trafgen_lexer.l b/trafgen_lexer.l index be6917f..2df1881 100644 --- a/trafgen_lexer.l +++ b/trafgen_lexer.l @@ -80,6 +80,7 @@ number_ascii ([a-zA-Z]) "cpu" { return K_CPU; } "fill" { return K_FILL; } "rnd" { return K_RND; } +"csum16" { return K_CSUMIP; } "csumip" { return K_CSUMIP; } "csumip4" { return K_CSUMIP; } "csumicmp" { return K_CSUMIP; } |