]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
doc: Improve layout of u32 instructions
authorJoseph C. Sible <josephcsible@gmail.com>
Sun, 2 Sep 2018 18:09:15 +0000 (14:09 -0400)
committerFlorian Westphal <fw@strlen.de>
Mon, 10 Sep 2018 13:25:16 +0000 (15:25 +0200)
Make it more clear where the instruction ends, and where
what it does begins.

Signed-off-by: Joseph C. Sible <josephcsible@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
extensions/libxt_u32.man

index 7c8615d31cd473b3c3cd4ab6cd9e906ad1d71e05..40a69f8e3fd0a249fb2be438d3966eafd2ddc4e8 100644 (file)
@@ -40,18 +40,23 @@ A is of type \fBchar *\fP, initially the address of the IP header
 B and C are unsigned 32 bit integers, initially zero
 .PP
 The instructions are:
-.IP
-number B = number;
+.TP
+.B number
+B = number;
 .IP
 C = (*(A+B)<<24) + (*(A+B+1)<<16) + (*(A+B+2)<<8) + *(A+B+3)
-.IP
-&number C = C & number
-.IP
-<< number C = C << number
-.IP
->> number C = C >> number
-.IP
-@number A = A + C; then do the instruction number
+.TP
+.B &number
+C = C & number
+.TP
+.B << number
+C = C << number
+.TP
+.B >> number
+C = C >> number
+.TP
+.B @number
+A = A + C; then do the instruction number
 .PP
 Any access of memory outside [skb\->data,skb\->end] causes the match to fail.
 Otherwise the result of the computation is the final value of C.