From 423bb070d372341aa178849a9479099b95c7d352 Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Wed, 13 Jul 2016 01:01:53 +0300 Subject: trafgen: proto: Add ICMPv4 header generation Support for generating ICMPv4 headers using the 'icmp4()/icmpv4()' trafgen generation functions. Fields supported: type Set type field (default 0: Echo reply) Supported keywords: echorequest, echoreply code Set code field (default 0) csum Set checksum field (calculated by default) mtu Set mtu field for destination unreachable (default 0) seq Set sequence field (default 0) id Set identifier field (default 0) addr Set redirect address (default 0.0.0.0) Example (send ping request): { icmpv4(echorequest, seq=1, id=1326) } Signed-off-by: Vadim Kochan [tk: squash commits, consistency between functionality and docu] Signed-off-by: Tobias Klauser --- trafgen_proto.h | 1 + 1 file changed, 1 insertion(+) (limited to 'trafgen_proto.h') diff --git a/trafgen_proto.h b/trafgen_proto.h index 5528704..822d841 100644 --- a/trafgen_proto.h +++ b/trafgen_proto.h @@ -16,6 +16,7 @@ enum proto_id { PROTO_ARP, PROTO_MPLS, PROTO_IP4, + PROTO_ICMP4, PROTO_IP6, PROTO_ICMP6, PROTO_UDP, -- cgit v1.2.3-54-g00ecf