diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2016-04-25 17:56:51 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-04-25 18:06:08 +0200 |
commit | 77d5cae4d45d1def8f41d4e89b705d2953858643 (patch) | |
tree | fb07be4ac5a8459808887b7447c0572cbceb7272 /trafgen.8 | |
parent | c09e06a6efaa94768660636a9c58ce9666e29d05 (diff) |
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 <daniel@iogearbox.net>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen.8')
-rw-r--r-- | trafgen.8 | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -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=<number>, echorequest, echoreply, code=<number>, +.B csum=<number>) +.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=<number>, dp=<number>, len=<number>, csum=<number>) |