diff options
author | Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> | 2013-06-26 13:37:12 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-06-27 19:38:17 +0200 |
commit | 1f0aa8e3fe218276c64d7412b6053069bf789155 (patch) | |
tree | fd5e96d352b14fb81393044a515a34bd72c95a76 /test | |
parent | 901fb07e6281be04521440f4581a90c54caf849a (diff) |
data_reg: xml: fix len node, it should show byte length
Previous to this patch, the <len> node was 'how many <dataN> nodes we have'.
However, the <len> node means 'how many bytes are in <dataN> nodes'.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'test')
-rwxr-xr-x | test/nft-rule-xml-add.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/nft-rule-xml-add.sh b/test/nft-rule-xml-add.sh index 961b597..0bd08ff 100755 --- a/test/nft-rule-xml-add.sh +++ b/test/nft-rule-xml-add.sh @@ -46,7 +46,7 @@ XML="<rule family=\"ip\" table=\"filter\" chain=\"INPUT\" handle=\"100\" version <op>eq</op> <cmpdata> <data_reg type=\"value\"> - <len>1</len> + <len>4</len> <data0>0x04000000</data0> </data_reg> </cmpdata> @@ -62,7 +62,7 @@ XML="<rule family=\"ip\" table=\"filter\" chain=\"INPUT\" handle=\"100\" version <op>eq</op> <cmpdata> <data_reg type=\"value\"> - <len>1</len> + <len>4</len> <data0>0x96d60496</data0> </data_reg> </cmpdata> @@ -78,7 +78,7 @@ XML="<rule family=\"ip\" table=\"filter\" chain=\"INPUT\" handle=\"100\" version <op>eq</op> <cmpdata> <data_reg type=\"value\"> - <len>1</len> + <len>4</len> <data0>0x96d60329</data0> </data_reg> </cmpdata> @@ -94,7 +94,7 @@ XML="<rule family=\"ip\" table=\"filter\" chain=\"INPUT\" handle=\"100\" version <op>eq</op> <cmpdata> <data_reg type=\"value\"> - <len>1</len> + <len>4</len> <data0>0x06000000</data0> </data_reg> </cmpdata> |