trafgen: proto: Add ICMPv6 header generation
commit77d5cae4d45d1def8f41d4e89b705d2953858643
authorTobias Klauser <tklauser@distanz.ch>
Mon, 25 Apr 2016 15:56:51 +0000 (25 17:56 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 25 Apr 2016 16:06:08 +0000 (25 18:06 +0200)
treefb07be4ac5a8459808887b7447c0572cbceb7272
parentc09e06a6efaa94768660636a9c58ce9666e29d05
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>
trafgen.8
trafgen_l3.c
trafgen_l4.c
trafgen_l4.h
trafgen_lexer.l
trafgen_parser.y
trafgen_proto.h