]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tcpopt: rename noop to nop
authorFlorian Westphal <fw@strlen.de>
Mon, 2 Nov 2020 13:58:41 +0000 (14:58 +0100)
committerFlorian Westphal <fw@strlen.de>
Mon, 9 Nov 2020 11:19:31 +0000 (12:19 +0100)
'nop' is the tcp padding "option". "noop" is retained for compatibility
on parser side.

Signed-off-by: Florian Westphal <fw@strlen.de>
doc/payload-expression.txt
src/tcpopt.c
tests/py/any/tcpopt.t
tests/py/any/tcpopt.t.json
tests/py/any/tcpopt.t.payload

index 2fa394ea966f31bdb92a04db1764a7abc5574f16..3cfa7791edac4003f7f1613b404541e5eed46abc 100644 (file)
@@ -559,8 +559,8 @@ Segment Routing Header
 |eol|
 End if option list|
 kind
-|noop|
-1 Byte TCP No-op options |
+|nop|
+1 Byte TCP Nop padding option |
 kind
 |maxseg|
 TCP Maximum Segment Size|
index 8d5bdec5399e2a2900a9d0f8470f29736604e091..17cb580d0ead29a2a3eef197a0c264d32047cddf 100644 (file)
@@ -27,7 +27,7 @@ static const struct exthdr_desc tcpopt_eol = {
 };
 
 static const struct exthdr_desc tcpopt_nop = {
-       .name           = "noop",
+       .name           = "nop",
        .type           = TCPOPT_KIND_NOP,
        .templates      = {
                [TCPOPTHDR_FIELD_KIND]          = PHT("kind",   0,   8),
index 5f21d4989fea580e3a3f686b7a85abd3aee407b1..1d42de8746cd984e951c8c3fdea6291166dabb66 100644 (file)
@@ -5,7 +5,7 @@
 *inet;test-inet;input
 
 tcp option eol kind 1;ok
-tcp option noop kind 1;ok
+tcp option nop kind 1;ok
 tcp option maxseg kind 1;ok
 tcp option maxseg length 1;ok
 tcp option maxseg size 1;ok
index 2c6236a1a15210d1b01c4c75fdae3b0e1c49e6ec..b15e36ee7f4ca7631a6be4cf7c2f0b868e801220 100644 (file)
     }
 ]
 
-# tcp option noop kind 1
+# tcp option nop kind 1
 [
     {
         "match": {
             "left": {
                 "tcp option": {
                     "field": "kind",
-                    "name": "noop"
+                    "name": "nop"
                 }
             },
             "op": "==",
index f63076ae497ec064951997b7df2aacc4906b32f9..9c480c8bd06b105dd762dafdbd665a312c31ed03 100644 (file)
@@ -19,21 +19,7 @@ inet
   [ exthdr load tcpopt 1b @ 0 + 0 => reg 1 ]
   [ cmp eq reg 1 0x00000001 ]
 
-# tcp option noop kind 1
-ip 
-  [ meta load l4proto => reg 1 ]
-  [ cmp eq reg 1 0x00000006 ]
-  [ exthdr load tcpopt 1b @ 1 + 0 => reg 1 ]
-  [ cmp eq reg 1 0x00000001 ]
-
-# tcp option noop kind 1
-ip6 
-  [ meta load l4proto => reg 1 ]
-  [ cmp eq reg 1 0x00000006 ]
-  [ exthdr load tcpopt 1b @ 1 + 0 => reg 1 ]
-  [ cmp eq reg 1 0x00000001 ]
-
-# tcp option noop kind 1
+# tcp option nop kind 1
 inet 
   [ meta load l4proto => reg 1 ]
   [ cmp eq reg 1 0x00000006 ]