2023-11-17 09:25:38

by Yunshui Jiang

[permalink] [raw]
Subject: [PATCH] netfilter: Correct misspelling comment word against

From: yunshui <[email protected]>

The word 'agaist' on comment of struct tcp_error is misspelled.
Correct it to be 'against', avoiding confusing other developers.

Reported-by: k2ci <[email protected]>
Signed-off-by: yunshui <[email protected]>
---
net/netfilter/nf_conntrack_proto_tcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/netfilter/nf_conntrack_proto_tcp.c b/net/netfilter/nf_conntrack_proto_tcp.c
index 4018acb1d674..6c7d1df2a11e 100644
--- a/net/netfilter/nf_conntrack_proto_tcp.c
+++ b/net/netfilter/nf_conntrack_proto_tcp.c
@@ -796,7 +796,7 @@ static void tcp_error_log(const struct sk_buff *skb,
nf_l4proto_log_invalid(skb, state, IPPROTO_TCP, "%s", msg);
}

-/* Protect conntrack agaist broken packets. Code taken from ipt_unclean.c. */
+/* Protect conntrack against broken packets. Code taken from ipt_unclean.c. */
static bool tcp_error(const struct tcphdr *th,
struct sk_buff *skb,
unsigned int dataoff,
--
2.25.1