Change echorequest to echo-request, and echoreply to echo-reply
which looks more readable.

Signed-off-by: Vadim Kochan <[email protected]>
---
 trafgen.8       | 6 +++---
 trafgen_lexer.l | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/trafgen.8 b/trafgen.8
index b011276..6691e16 100644
--- a/trafgen.8
+++ b/trafgen.8
@@ -500,7 +500,7 @@ By default, if the lower level header is Ethernet, its 
EtherType field is set to
 
 .I ICMPv6
 :
-.B icmp6|icmpv6(type=<number>, echorequest, echoreply, code=<number>,
+.B icmp6|icmpv6(type=<number>, echo-request, echo-reply, code=<number>,
 .B csum=<number>)
 .sp
 .in +4
@@ -510,10 +510,10 @@ By default, if the lower level header is Ethernet, its 
EtherType field is set to
 .B code
 - Code (default: 0)
 .sp
-.B echorequest
+.B echo-request
 - ICMPv6 echo (ping) request
 .sp
-.B echoreply
+.B echo-reply
 - ICMPv6 echo (ping) reply
 .sp
 .B csum
diff --git a/trafgen_lexer.l b/trafgen_lexer.l
index 87db504..4977f87 100644
--- a/trafgen_lexer.l
+++ b/trafgen_lexer.l
@@ -164,8 +164,8 @@ ip6_addr    
(({a_hex}?:)?({a_hex}?:)?({a_hex}?:)?({a_hex}?:)?({a_hex}?:)?({a_hex}?:
 
        /* ICMPv6 */
 "code"         { return K_CODE; }
-"echorequest"  { return K_ECHO_REQUEST; }
-"echoreply"    { return K_ECHO_REPLY; }
+"echo-request" { return K_ECHO_REQUEST; }
+"echo-reply"   { return K_ECHO_REPLY; }
 
        /* UDP */
 "sp"|"sport"   { return K_SPORT; }
-- 
2.6.3

-- 
You received this message because you are subscribed to the Google Groups 
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to