diff options
author | Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> | 2016-09-21 08:45:55 -0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-22 03:13:26 -0400 |
commit | e2f036a97271cf5811ee754bf321a29a814577f9 (patch) | |
tree | c8a53f43b53beaa61a994f5b3a8d31645e1bac27 /net/netfilter/xt_sctp.c | |
parent | b80b8d7a974ea4888a0a598cec217a6c500a0cdb (diff) | |
download | linux-e2f036a97271cf5811ee754bf321a29a814577f9.tar.gz linux-e2f036a97271cf5811ee754bf321a29a814577f9.tar.bz2 linux-e2f036a97271cf5811ee754bf321a29a814577f9.zip |
sctp: rename WORD_TRUNC/ROUND macros
To something more meaningful these days, specially because this is
working on packet headers or lengths and which are not tied to any CPU
arch but to the protocol itself.
So, WORD_TRUNC becomes SCTP_TRUNC4 and WORD_ROUND becomes SCTP_PAD4.
Reported-by: David Laight <David.Laight@ACULAB.COM>
Reported-by: David Miller <davem@davemloft.net>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/xt_sctp.c')
-rw-r--r-- | net/netfilter/xt_sctp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_sctp.c b/net/netfilter/xt_sctp.c index ef36a56a02c6..4dedb96d1a06 100644 --- a/net/netfilter/xt_sctp.c +++ b/net/netfilter/xt_sctp.c @@ -68,7 +68,7 @@ match_packet(const struct sk_buff *skb, ++i, offset, sch->type, htons(sch->length), sch->flags); #endif - offset += WORD_ROUND(ntohs(sch->length)); + offset += SCTP_PAD4(ntohs(sch->length)); pr_debug("skb->len: %d\toffset: %d\n", skb->len, offset); |