summaryrefslogtreecommitdiff
path: root/trafgen.8
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-08-13 02:11:24 +0300
committerTobias Klauser <tklauser@distanz.ch>2016-09-21 09:59:55 +0200
commit4c1b43fd6c6ca30344abb3434626fc8811bb7798 (patch)
treed55a8e1098c18826716b70c459fb080934c47eef /trafgen.8
parent77f4dfb3c3b31a66cfa70512a7bd42ce9cf74d19 (diff)
trafgen: man: Simplify example of Jasper's UDP packet by proto functions
Removed unneeded fields which are calcuated by default: <udp.len> <ipv4.len> <ipv4.proto> Fixed <ipv4.id> field by changing drnd(2) -> drnd() as proto field <drnd> function does not support bytes length value but randomizes specified field by its length. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen.8')
-rw-r--r--trafgen.86
1 files changed, 3 insertions, 3 deletions
diff --git a/trafgen.8 b/trafgen.8
index d8ff36f..a4339ca 100644
--- a/trafgen.8
+++ b/trafgen.8
@@ -796,11 +796,11 @@ The above example rewritten using the header generation functions:
.PP
{
# --- ethernet header ---
- eth(da=00:1b:21:3c:9d:f8, da=90:e2:ba:0a:56:b4, proto=0x0800)
+ eth(da=00:1b:21:3c:9d:f8, da=90:e2:ba:0a:56:b4)
# --- ip header ---
- ipv4(len=40, id=drnd(2), mf, ttl=64, proto=17, sa=192.168.51.1, da=192.168.51.2)
+ ipv4(id=drnd(), mf, ttl=64, sa=192.168.51.1, da=192.168.51.2)
# --- udp header ---
- udp(sport=48054, dport=43514, len=20, csum=0)
+ udp(sport=48054, dport=43514, csum=0)
# payload
'A', fill(0x41, 11),
}