summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_conntrack_proto_sctp.c
diff options
context:
space:
mode:
authorXin Long2017-06-30 05:52:12 +0200
committerDavid S. Miller2017-07-01 18:08:41 +0200
commitae146d9b76589d636d11c5e4382bbba2fe8bdb9b (patch)
tree1c816c31c77c71e85198e7d0cd703fc66bd28b20 /net/netfilter/nf_conntrack_proto_sctp.c
parentMerge branch 'nfp-introduce-flower-offload-capabilities' (diff)
downloadkernel-qcow2-linux-ae146d9b76589d636d11c5e4382bbba2fe8bdb9b.tar.gz
kernel-qcow2-linux-ae146d9b76589d636d11c5e4382bbba2fe8bdb9b.tar.xz
kernel-qcow2-linux-ae146d9b76589d636d11c5e4382bbba2fe8bdb9b.zip
sctp: remove the typedef sctp_sctphdr_t
This patch is to remove the typedef sctp_sctphdr_t, and replace with struct sctphdr in the places where it's using this typedef. It is also to fix some indents and use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/nf_conntrack_proto_sctp.c')
-rw-r--r--net/netfilter/nf_conntrack_proto_sctp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_proto_sctp.c b/net/netfilter/nf_conntrack_proto_sctp.c
index 1c5b14a6cab3..db87af41c342 100644
--- a/net/netfilter/nf_conntrack_proto_sctp.c
+++ b/net/netfilter/nf_conntrack_proto_sctp.c
@@ -190,7 +190,7 @@ static void sctp_print_conntrack(struct seq_file *s, struct nf_conn *ct)
}
#define for_each_sctp_chunk(skb, sch, _sch, offset, dataoff, count) \
-for ((offset) = (dataoff) + sizeof(sctp_sctphdr_t), (count) = 0; \
+for ((offset) = (dataoff) + sizeof(struct sctphdr), (count) = 0; \
(offset) < (skb)->len && \
((sch) = skb_header_pointer((skb), (offset), sizeof(_sch), &(_sch))); \
(offset) += (ntohs((sch)->length) + 3) & ~3, (count)++)