From 5a1eba2843cb66a0cd3b8cccab41d930d7533b62 Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Fri, 23 Sep 2016 09:26:23 +0300 Subject: trafgen: man: Highlight packet functions section Make the each packet functions section name to be bold. Signed-off-by: Vadim Kochan Signed-off-by: Tobias Klauser --- trafgen.8 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/trafgen.8 b/trafgen.8 index a8e1edb..62716bb 100644 --- a/trafgen.8 +++ b/trafgen.8 @@ -243,7 +243,7 @@ this when running this with trafgen in combination with \-V): There are a couple of helper functions in trafgen's language to make life easier to write configurations: .PP -i) Fill with garbage functions: +.B i) Fill with garbage functions: .PP byte fill function: fill(, ): fill(0xca, 128) compile-time random: rnd(): rnd(128), rnd() @@ -253,7 +253,7 @@ i) Fill with garbage functions: runtime counter (1byte): dinc(, , ) ddec(, , ) .PP -ii) Checksum helper functions (packet offsets start with 0): +.B ii) Checksum helper functions (packet offsets start with 0): .PP IP/ICMP checksum: csumip/csumicmp(, ) UDP checksum: csumudp(, ) @@ -261,7 +261,7 @@ ii) Checksum helper functions (packet offsets start with 0): UDP checksum (IPv6): csumudp6(, ) TCP checksum (IPv6): csumtcp6(, ) .PP -iii) Multibyte functions, compile-time expression evaluation: +.B iii) Multibyte functions, compile-time expression evaluation: .PP const8(), c8(), const16(), c16(), const32(), c32(), const64(), c64() @@ -271,14 +271,16 @@ configuration, e.g. const16(0xaa) will result in ''00 aa''. Within c*() functions, it is possible to do some arithmetics: -,+,*,/,%,&,|,<<,>>,^ E.g. const16((((1<<8)+0x32)|0b110)*2) will be evaluated to ''02 6c''. .PP -iv) Protocol header functions: +.B iv) Protocol header functions: +.in +4 The protocol header functions allow to fill protocol header fields by using following generic syntax: -.in +8 .sp +.in +4 (=,=,...,,...) +.in -4 .sp -.in -8 +.in -4 .in +4 If a field is not specified, then a default value will be used (usually 0). Protocol fields might be set in any order. However, the offset of the fields in -- cgit v1.2.3-54-g00ecf