Gitweb:
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=112f35c9c164e06e038d506dd3eb15e76829ef8a
Commit: 112f35c9c164e06e038d506dd3eb15e76829ef8a
Parent: 35c6d3cbe1b97b860087f6082e764ac8da2a12b2
Author: Patrick McHardy [EMAIL PROTECTED]
AuthorDate: Mon Jan 14 23:46:20 2008 -0800
Committer: David S. Miller [EMAIL PROTECTED]
CommitDate: Mon Jan 28 15:02:34 2008 -0800
[NETFILTER]: nf_conntrack_sctp: reduce line length
Reduce the length of some overly long lines by renaming all
conntrack variables to ct.
Signed-off-by: Patrick McHardy [EMAIL PROTECTED]
Signed-off-by: David S. Miller [EMAIL PROTECTED]
---
net/netfilter/nf_conntrack_proto_sctp.c | 43 +++
1 files changed, 21 insertions(+), 22 deletions(-)
diff --git a/net/netfilter/nf_conntrack_proto_sctp.c
b/net/netfilter/nf_conntrack_proto_sctp.c
index 5166bb3..84e37e9 100644
--- a/net/netfilter/nf_conntrack_proto_sctp.c
+++ b/net/netfilter/nf_conntrack_proto_sctp.c
@@ -173,13 +173,12 @@ static int sctp_print_tuple(struct seq_file *s,
}
/* Print out the private part of the conntrack. */
-static int sctp_print_conntrack(struct seq_file *s,
- const struct nf_conn *conntrack)
+static int sctp_print_conntrack(struct seq_file *s, const struct nf_conn *ct)
{
enum sctp_conntrack state;
read_lock_bh(sctp_lock);
- state = conntrack-proto.sctp.state;
+ state = ct-proto.sctp.state;
read_unlock_bh(sctp_lock);
return seq_printf(s, %s , sctp_conntrack_names[state]);
@@ -192,7 +191,7 @@ for ((offset) = (dataoff) + sizeof(sctp_sctphdr_t), (count)
= 0;\
(offset) += (ntohs((sch)-length) + 3) ~3, (count)++)
/* Some validity checks to make sure the chunks are fine */
-static int do_basic_checks(struct nf_conn *conntrack,
+static int do_basic_checks(struct nf_conn *ct,
const struct sk_buff *skb,
unsigned int dataoff,
unsigned long *map)
@@ -293,7 +292,7 @@ static int new_state(enum ip_conntrack_dir dir,
}
/* Returns verdict for packet, or -1 for invalid. */
-static int sctp_packet(struct nf_conn *conntrack,
+static int sctp_packet(struct nf_conn *ct,
const struct sk_buff *skb,
unsigned int dataoff,
enum ip_conntrack_info ctinfo,
@@ -310,7 +309,7 @@ static int sctp_packet(struct nf_conn *conntrack,
if (sh == NULL)
return -1;
- if (do_basic_checks(conntrack, skb, dataoff, map) != 0)
+ if (do_basic_checks(ct, skb, dataoff, map) != 0)
return -1;
/* Check the verification tag (Sec 8.5) */
@@ -319,7 +318,7 @@ static int sctp_packet(struct nf_conn *conntrack,
!test_bit(SCTP_CID_COOKIE_ECHO, map)
!test_bit(SCTP_CID_ABORT, map)
!test_bit(SCTP_CID_SHUTDOWN_ACK, map)
- sh-vtag != conntrack-proto.sctp.vtag[CTINFO2DIR(ctinfo)]) {
+ sh-vtag != ct-proto.sctp.vtag[CTINFO2DIR(ctinfo)]) {
pr_debug(Verification tag check failed\n);
return -1;
}
@@ -337,28 +336,28 @@ static int sctp_packet(struct nf_conn *conntrack,
}
} else if (sch-type == SCTP_CID_ABORT) {
/* Sec 8.5.1 (B) */
- if (sh-vtag !=
conntrack-proto.sctp.vtag[CTINFO2DIR(ctinfo)]
- sh-vtag != conntrack-proto.sctp.vtag[1 -
CTINFO2DIR(ctinfo)]) {
+ if (sh-vtag != ct-proto.sctp.vtag[CTINFO2DIR(ctinfo)]
+ sh-vtag != ct-proto.sctp.vtag[1 -
CTINFO2DIR(ctinfo)]) {
write_unlock_bh(sctp_lock);
return -1;
}
} else if (sch-type == SCTP_CID_SHUTDOWN_COMPLETE) {
/* Sec 8.5.1 (C) */
- if (sh-vtag !=
conntrack-proto.sctp.vtag[CTINFO2DIR(ctinfo)]
- sh-vtag != conntrack-proto.sctp.vtag[1 -
CTINFO2DIR(ctinfo)]
+ if (sh-vtag != ct-proto.sctp.vtag[CTINFO2DIR(ctinfo)]
+ sh-vtag != ct-proto.sctp.vtag[1 -
CTINFO2DIR(ctinfo)]
(sch-flags 1)) {
write_unlock_bh(sctp_lock);
return -1;
}
} else if (sch-type == SCTP_CID_COOKIE_ECHO) {
/* Sec 8.5.1 (D) */
- if (sh-vtag !=
conntrack-proto.sctp.vtag[CTINFO2DIR(ctinfo)]) {
+ if (sh-vtag !=
ct-proto.sctp.vtag[CTINFO2DIR(ctinfo)]) {
write_unlock_bh(sctp_lock);
return -1;
}
}
- oldsctpstate