netfilter: fix typos in comments
Subsystems (4)
v2 cover netfilter: fix typos in comments
Three comment typos under netfilter, split one per component. Found with scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Comments only, no code
changes.
v1 went out with a bare [PATCH] and a "net:" subject prefix. As maintainer-netdev.rst asks, v2 designates the patches to a tree, and each subject now names the component it touches instead of "net:". The series is rebased onto that tree; the diff is unchanged.
v1: https://lore.kernel.org/all/[email protected]/
Hemanth Selam (3):
netfilter: arp_tables: fix typo "alignement" in comment
netfilter: ipset: fix typo "artifical" in comment
selftests: netfilter: fix typo "adress" in comment
net/ipv4/netfilter/arp_tables.c | 2 +- net/netfilter/ipset/ip_set_core.c | 2 +- tools/testing/selftests/net/netfilter/conntrack_icmp_related.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
PATCH v2 1/3 netfilter: arp_tables: fix typo "alignement" in comment
Fix a typo in comments, found with scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
---
Notes:
v2: designate the patch to nf-next and use a subject prefix naming the component, as maintainer-netdev.rst asks; v1 went out with a bare [PATCH] and a "net:" prefix. Rebased onto nf-next, diff unchanged.
v1: https://lore.kernel.org/all/[email protected]/
net/ipv4/netfilter/arp_tables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/netfilter/arp_tables.c +1 -1
@@ -59,7 +59,7 @@ static inline int arp_devaddr_compare(const struct arpt_devaddr_info *ap,/* * Unfortunately, _b and _mask are not aligned to an int (or long int) * Some arches dont care, unrolling the loop is a win on them. -* For other arches, we only have a 16bit alignement. +* For other arches, we only have a 16bit alignment. */ static unsigned long ifname_compare (const char *_a,const char *_b,const char *_mask) {
PATCH v2 2/3 netfilter: ipset: fix typo "artifical" in comment
In reply to Hemanth SelamFix a typo in comments, found with scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
---
Notes:
v2: designate the patch to nf-next and use a subject prefix naming the component, as maintainer-netdev.rst asks; v1 went out with a bare [PATCH] and a "net:" prefix. Rebased onto nf-next, diff unchanged.
v1: https://lore.kernel.org/all/[email protected]/
net/netfilter/ipset/ip_set_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/ipset/ip_set_core.c +1 -1
@@ -1426,7 +1426,7 @@ static int ip_set_swap(struct sk_buff *skb, const struct nfnl_info *info,return -IPSET_ERR_EXIST_SETNAME2 ;/* Features must not change. -* Not an artifical restriction anymore, as we must prevent +* Not an artificial restriction anymore, as we must prevent * possible loops created by swapping in setlist type of sets. */ if (!(from->type->features == to->type->features &&
PATCH v2 3/3 selftests: netfilter: fix typo "adress" in comment
In reply to Hemanth SelamFix a typo in comments, found with scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
---
Notes:
v2: designate the patch to nf-next and use a subject prefix naming the component, as maintainer-netdev.rst asks; v1 went out with a bare [PATCH] and a "net:" prefix. Rebased onto nf-next, diff unchanged.
v1: https://lore.kernel.org/all/[email protected]/
tools/testing/selftests/net/netfilter/conntrack_icmp_related.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/netfilter/conntrack_icmp_related.sh +1 -1
@@ -171,7 +171,7 @@ table inet filter { } EOF -# make sure NAT core rewrites adress of icmp error if nat is used according to +# make sure NAT core rewrites address of icmp error if nat is used according to # conntrack nat information (icmp error will be directed at nsrouter1 address, # but it needs to be routed to nsclient1 address). ip netns exec "$nsrouter1" nft -f - <<EOF