Skip to content

Commit 05ba4c8

Browse files
Jongyummakynes
authored andcommitted
netfilter: Update obsolete comments referring to ip_conntrack
In 9fb9cbb ("[NETFILTER]: Add nf_conntrack subsystem.") the new generic nf_conntrack was introduced, and it came to supersede the old ip_conntrack. This change updates (some) of the obsolete comments referring to old file/function names of the ip_conntrack mechanism, as well as removes a few self-referencing comments that we shouldn't maintain anymore. I did not update any comments referring to historical actions (e.g, comments like "this file was derived from ..." were left untouched, even if the referenced file is no longer here). Signed-off-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent 3c00fb0 commit 05ba4c8

8 files changed

Lines changed: 10 additions & 18 deletions

File tree

‎include/linux/netfilter/nf_conntrack_h323_asn1.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* SPDX-License-Identifier: GPL-2.0-only */
22
/****************************************************************************
3-
* ip_conntrack_h323_asn1.h - BER and PER decoding library for H.323
4-
* conntrack/NAT module.
3+
* BER and PER decoding library for H.323 conntrack/NAT module.
54
*
65
* Copyright (c) 2006 by Jing Min Zhao <zhaojingmin@users.sourceforge.net>
76
*

‎net/ipv4/netfilter/ipt_CLUSTERIP.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,8 @@ clusterip_tg(struct sk_buff *skb, const struct xt_action_param *par)
416416
ctinfo == IP_CT_RELATED_REPLY))
417417
return XT_CONTINUE;
418418

419-
/* ip_conntrack_icmp guarantees us that we only have ICMP_ECHO,
420-
* TIMESTAMP, INFO_REQUEST or ADDRESS type icmp packets from here
419+
/* nf_conntrack_proto_icmp guarantees us that we only have ICMP_ECHO,
420+
* TIMESTAMP, INFO_REQUEST or ICMP_ADDRESS type icmp packets from here
421421
* on, which all have an ID field [relevant for hashing]. */
422422

423423
hash = clusterip_hashfn(skb, cipinfo->config);

‎net/netfilter/Kconfig‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ config NF_CONNTRACK_FTP
223223
of Network Address Translation on them.
224224

225225
This is FTP support on Layer 3 independent connection tracking.
226-
Layer 3 independent connection tracking is experimental scheme
227-
which generalize ip_conntrack to support other layer 3 protocols.
228226

229227
To compile it as a module, choose M here. If unsure, say N.
230228

@@ -338,7 +336,7 @@ config NF_CONNTRACK_SIP
338336
help
339337
SIP is an application-layer control protocol that can establish,
340338
modify, and terminate multimedia sessions (conferences) such as
341-
Internet telephony calls. With the ip_conntrack_sip and
339+
Internet telephony calls. With the nf_conntrack_sip and
342340
the nf_nat_sip modules you can support the protocol on a connection
343341
tracking/NATing firewall.
344342

@@ -1313,7 +1311,7 @@ config NETFILTER_XT_MATCH_HELPER
13131311
depends on NETFILTER_ADVANCED
13141312
help
13151313
Helper matching allows you to match packets in dynamic connections
1316-
tracked by a conntrack-helper, ie. ip_conntrack_ftp
1314+
tracked by a conntrack-helper, ie. nf_conntrack_ftp
13171315

13181316
To compile it as a module, choose M here. If unsure, say Y.
13191317

‎net/netfilter/nf_conntrack_core.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,9 +1817,7 @@ EXPORT_SYMBOL_GPL(nf_ct_kill_acct);
18171817
#include <linux/netfilter/nfnetlink_conntrack.h>
18181818
#include <linux/mutex.h>
18191819

1820-
/* Generic function for tcp/udp/sctp/dccp and alike. This needs to be
1821-
* in ip_conntrack_core, since we don't want the protocols to autoload
1822-
* or depend on ctnetlink */
1820+
/* Generic function for tcp/udp/sctp/dccp and alike. */
18231821
int nf_ct_port_tuple_to_nlattr(struct sk_buff *skb,
18241822
const struct nf_conntrack_tuple *tuple)
18251823
{

‎net/netfilter/nf_conntrack_h323_asn1.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
3-
* ip_conntrack_helper_h323_asn1.c - BER and PER decoding library for H.323
4-
* conntrack/NAT module.
3+
* BER and PER decoding library for H.323 conntrack/NAT module.
54
*
65
* Copyright (c) 2006 by Jing Min Zhao <zhaojingmin@users.sourceforge.net>
76
*
8-
* See ip_conntrack_helper_h323_asn1.h for details.
7+
* See nf_conntrack_helper_h323_asn1.h for details.
98
*/
109

1110
#ifdef __KERNEL__

‎net/netfilter/nf_conntrack_proto_gre.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
3-
* ip_conntrack_proto_gre.c - Version 3.0
4-
*
53
* Connection tracking protocol helper module for GRE.
64
*
75
* GRE is a generic encapsulation protocol, which is generally not very

‎net/netfilter/nf_conntrack_proto_icmp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ int nf_conntrack_icmpv4_error(struct nf_conn *tmpl,
215215
return -NF_ACCEPT;
216216
}
217217

218-
/* See ip_conntrack_proto_tcp.c */
218+
/* See nf_conntrack_proto_tcp.c */
219219
if (state->net->ct.sysctl_checksum &&
220220
state->hook == NF_INET_PRE_ROUTING &&
221221
nf_ip_checksum(skb, state->hook, dataoff, IPPROTO_ICMP)) {

‎net/netfilter/nf_nat_core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static void nf_nat_l4proto_unique_tuple(struct nf_conntrack_tuple *tuple,
519519
* and NF_INET_LOCAL_OUT, we change the destination to map into the
520520
* range. It might not be possible to get a unique tuple, but we try.
521521
* At worst (or if we race), we will end up with a final duplicate in
522-
* __ip_conntrack_confirm and drop the packet. */
522+
* __nf_conntrack_confirm and drop the packet. */
523523
static void
524524
get_unique_tuple(struct nf_conntrack_tuple *tuple,
525525
const struct nf_conntrack_tuple *orig_tuple,

0 commit comments

Comments
 (0)