From 77d5cae4d45d1def8f41d4e89b705d2953858643 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 25 Apr 2016 17:56:51 +0200 Subject: trafgen: proto: Add ICMPv6 header generation Support for generating simple ICMPv6 headers using the 'icmp6()/icmpv6()' trafgen generation function. Fields supported: mtype Message type (default: 0) Supported keywords: echorequest, echoreply code Code (default: 0) csum Message checksum (calculated by default) Examples: { eth(), ipv6(daddr=::1), icmpv6(echorequest), 42, 42, 0, 0 }' If not explicitely specified, the lower header is initialized as Ethernet. Suggested-by: Daniel Borkmann Signed-off-by: Tobias Klauser --- trafgen.8 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'trafgen.8') diff --git a/trafgen.8 b/trafgen.8 index c81fecb..3075daa 100644 --- a/trafgen.8 +++ b/trafgen.8 @@ -498,6 +498,31 @@ By default, if the lower level header is Ethernet, its EtherType field is set to By default, if the lower level header is Ethernet, its EtherType field is set to 0x86DD (IPv6). +.I ICMPv6 +: +.B icmp6|icmpv6(mtype=, echorequest, echoreply, code=, +.B csum=) +.sp +.in +4 +.B mtype +- Message type (default: 0) +.sp +.B code +- Code (default: 0) +.sp +.B echorequest +- ICMPv6 echo (ping) request +.sp +.B echoreply +- ICMPv6 echo (ping) reply +.sp +.B csum +- Message checksum (calculated by default) +.in -4 +.sp +By default, if the lower level header is IPv6, its Next Header field is set to +58 (ICMPv6). + .I UDP : .B udp(sp=, dp=, len=, csum=) -- cgit v1.2.3-54-g00ecf