Add description icmpv4() function parameters with few examples.
Signed-off-by: Vadim Kochan <[email protected]>
---
trafgen.8 | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/trafgen.8 b/trafgen.8
index b011276..e654770 100644
--- a/trafgen.8
+++ b/trafgen.8
@@ -498,6 +498,50 @@ 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 ICMPv4
+:
+.B icmp4|icmpv4(type=<number>, code=<number>, csum=<number>,
+.B mtu=<number>, seq=<number>, id=<number>, addr=<ip4_addr>)
+.sp
+.in +4
+.B type
+- ICMP message type (default: 0 - Echo reply)
+.sp
+.B code
+- ICMP message code (default: 0)
+.sp
+.B csum
+- Checksum of ICMP header and payload (default: calculated)
+.sp
+.B mtu
+- MTU field used in 'Datagram is too big' message type (default; 0)
+.sp
+.B seq
+- Sequence number - used in Echo/Timestamp/Address mask messages (default: 0)
+.sp
+.B id
+- Identifier - used in Echo/Timestamp/Address mask messages (default: 0)
+.sp
+.B addr
+- IPv4 address - used in Redirect messages (default: 0.0.0.0)
+.sp
+.B echorequest
+- Sets 'Echo request' message type (type: 8, code: 0)
+.sp
+.B echoreply
+- Sets 'Echo reply' message type (type: 0, code: 0)
+.sp
+Example:
+.in +4
+.sp
+1) Send ping request:
+.sp
+{ icmpv4(echorequest, seq=1, id=1326) }
+.sp
+.in -4
+
+.in -4
+
.I ICMPv6
:
.B icmp6|icmpv6(type=<number>, echorequest, echoreply, code=<number>,
--
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.