]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
netfilter: nf_conntrack_proto_tcp: fix typos in comments
authorAvinash Duduskar <avinash.duduskar@gmail.com>
Tue, 12 May 2026 21:55:01 +0000 (03:25 +0530)
committerFlorian Westphal <fw@strlen.de>
Sun, 24 May 2026 20:55:48 +0000 (22:55 +0200)
Fix three typos in comments:

- "migth"/"Migth" -> "might" (two adjacent occurrences in the
  tcp_conntracks[] state-transition table comment block).
- "agaist" -> "against" (tcp_error() header comment).
- "intrepretated" -> "interpreted" (RFC 5961 challenge-ACK
  marker comment in nf_conntrack_tcp_packet()).

Signed-off-by: Avinash Duduskar <avinash.duduskar@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_conntrack_proto_tcp.c

index b67426c2189b2d8a02e7caa26e848b539379a8cd..47dc6edb44319f1220f7fdfeef661643ffa78019 100644 (file)
@@ -169,14 +169,14 @@ static const u8 tcp_conntracks[2][6][TCP_CONNTRACK_MAX] = {
 /*fin*/    { sIV, sIV, sFW, sFW, sLA, sLA, sLA, sTW, sCL, sIV },
 /*
  *     sNO -> sIV      Too late and no reason to do anything...
- *     sSS -> sIV      Client migth not send FIN in this state:
+ *     sSS -> sIV      Client might not send FIN in this state:
  *                     we enforce waiting for a SYN/ACK reply first.
  *     sS2 -> sIV
  *     sSR -> sFW      Close started.
  *     sES -> sFW
  *     sFW -> sLA      FIN seen in both directions, waiting for
  *                     the last ACK.
- *                     Migth be a retransmitted FIN as well...
+ *                     Might be a retransmitted FIN as well...
  *     sCW -> sLA
  *     sLA -> sLA      Retransmitted FIN. Remain in the same state.
  *     sTW -> sTW
@@ -798,7 +798,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,
@@ -1098,7 +1098,7 @@ int nf_conntrack_tcp_packet(struct nf_conn *ct,
                        }
                        /* Mark the potential for RFC5961 challenge ACK,
                         * this pose a special problem for LAST_ACK state
-                        * as ACK is intrepretated as ACKing last FIN.
+                        * as ACK is interpreted as ACKing last FIN.
                         */
                        if (old_state == TCP_CONNTRACK_LAST_ACK)
                                ct->proto.tcp.last_flags |=