]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
src: Spelling fixes
authorVille Skyttä <ville.skytta@iki.fi>
Wed, 7 Feb 2018 09:34:31 +0000 (11:34 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 15 Feb 2018 15:51:52 +0000 (16:51 +0100)
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
INSTALL
doc/nft.xml
include/datatype.h
src/exthdr.c
src/netlink_delinearize.c
src/payload.c
tests/py/nft-test.py
tests/shell/README
tests/shell/testcases/include/0012glob_dependency_1
tests/shell/testcases/listing/0002ruleset_0

diff --git a/INSTALL b/INSTALL
index e212bacbc341c46bcc81f9349081ce114d7dadba..5e398857e52182e0fdc947f082367d3a7eccb913 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -43,7 +43,7 @@ Installation instructions for nftables
 
  --datarootdir=
 
-       The base directory for arch-independant files. Defaults to
+       The base directory for arch-independent files. Defaults to
        $prefix/share.
 
  --disable-debug
index d5b9c27c5c31a560e33c93d16b6b9d017b6cf90b..807c8363f2eac63b1aa6e5b3c33d85f3ad1be3a9 100644 (file)
@@ -3568,7 +3568,7 @@ inet filter output rt ip6 nexthop fd00::1
                                                        </row>
                                                        <row>
                                                                <entry>vtag</entry>
-                                                               <entry>Verfication Tag</entry>
+                                                               <entry>Verification Tag</entry>
                                                                <entry>integer (32 bit)</entry>
                                                        </row>
                                                        <row>
index e9f60798d1a0c26d373c8d58523537d8430e232f..cc4cb07807d433211d60bbb000776d1b057acf5e 100644 (file)
@@ -129,7 +129,7 @@ enum datatype_flags {
  * @subtypes:  number of subtypes (concat type)
  * @name:      type name
  * @desc:      type description
- * @basetype:  basetype for subtypes, determines type compatibilty
+ * @basetype:  basetype for subtypes, determines type compatibility
  * @basefmt:   format string for basetype
  * @print:     function to print a constant of this type
  * @parse:     function to parse a symbol and return an expression
index ac3e16320d38807614495b5b0e4192547958721b..f5c20ac2677522f597cbd0e51ca97febd783396a 100644 (file)
@@ -26,8 +26,8 @@
 static void exthdr_expr_print(const struct expr *expr, struct output_ctx *octx)
 {
        if (expr->exthdr.op == NFT_EXTHDR_OP_TCPOPT) {
-               /* Offset calcualtion is a bit hacky at this point.
-                * There might be an tcp option one day with another
+               /* Offset calculation is a bit hacky at this point.
+                * There might be a tcp option one day with another
                 * multiplicator
                 */
                unsigned int offset = expr->exthdr.offset / 64;
index 82eefa61d4a45ee9610b02d08072b65a28addfa4..622425ee10290c03ab1f931d801b70930043c773 100644 (file)
@@ -2247,7 +2247,7 @@ static void stmt_payload_postprocess(struct rule_pp_ctx *ctx)
 
 /*
  * We can only remove payload dependencies if they occur without
- * a statment with side effects in between.
+ * a statement with side effects in between.
  *
  * For instance:
  * 'ip protocol tcp tcp dport 22 counter' is same as
index 15d055b6be7e42241adf9e368662090a9e8162a0..6e762ff3dcdb24d58d94fa46421f8a00a06be06a 100644 (file)
@@ -482,13 +482,13 @@ static bool payload_may_dependency_kill(struct payload_dep_ctx *ctx,
 }
 
 /**
- * payload_dependency_kill - kill a redundant payload depedency
+ * payload_dependency_kill - kill a redundant payload dependency
  *
  * @ctx: payload dependency context
  * @expr: higher layer payload expression
  *
  * Kill a redundant payload expression if a higher layer payload expression
- * implies its existance. Skip this if the dependency is a network payload and
+ * implies its existence. Skip this if the dependency is a network payload and
  * we are in bridge, netdev and inet families.
  */
 void payload_dependency_kill(struct payload_dep_ctx *ctx, struct expr *expr,
index 6aedfb09e972906673809a6b426297c291448003..87e3d51ec2ddb53be1f718e57fb04a12d35ae80c 100755 (executable)
@@ -384,7 +384,7 @@ def set_add_elements(set_element, set_name, state, filename, lineno):
             print_error(reason, filename, lineno)
             return -1
 
-        # Add element into a all_set.
+        # Add element into all_set.
         if ret == 0 and state == "ok":
             for e in set_element:
                 all_set[set_name].add(e)
index 2d8681fdc7e60aae6126b41c75a739e97bf5c745..3ffe642cecc522ebc720f5ef16ebc304dc7b3710 100644 (file)
@@ -10,7 +10,7 @@ To run the test suite (as root):
 
 Test files are executables files with the pattern <<name_N>>, where N is the
 expected return code of the executable. Since they are located with `find',
-test-files can be spreaded in any sub-directories.
+test-files can be spread in any sub-directories.
 
 You can turn on a verbose execution by calling:
  % ./run-tests.sh -v
index 740f5ea110c9e41762af99e13597367c3e22f5f1..6cf4ba177877d8574c686eff40a8743aec8bf8f0 100755 (executable)
@@ -38,7 +38,7 @@ RULESET1="add table x"
 RULESET2="add chain x y"
 RULESET3="include \"$tmpdir/*\""
 
-# Note different order when compared with 0011dir_depencency_0. The idea
+# Note different order when compared with 0011dir_dependency_0. The idea
 # here is to introduce wrong order to get the loading fail.
 echo "$RULESET1" > $tmpfile2
 echo "$RULESET2" > $tmpfile1
index 916034ffeb73d8102f36b61d50b11c209f1a6f8c..45121fb7abdda0f5189b429a8743527883cffc80 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-# list ruleset show nothing if emtpy ruleset
+# list ruleset show nothing if empty ruleset
 
 EXPECTED=""