summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/exthdr.c4
-rw-r--r--src/netlink_delinearize.c2
-rw-r--r--src/payload.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/exthdr.c b/src/exthdr.c
index ac3e1632..f5c20ac2 100644
--- a/src/exthdr.c
+++ b/src/exthdr.c
@@ -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;
diff --git a/src/netlink_delinearize.c b/src/netlink_delinearize.c
index 82eefa61..622425ee 100644
--- a/src/netlink_delinearize.c
+++ b/src/netlink_delinearize.c
@@ -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
diff --git a/src/payload.c b/src/payload.c
index 15d055b6..6e762ff3 100644
--- a/src/payload.c
+++ b/src/payload.c
@@ -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,