projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sctp: align MTU to a word
[cascardo/linux.git]
/
include
/
net
/
sctp
/
sctp.h
diff --git
a/include/net/sctp/sctp.h
b/include/net/sctp/sctp.h
index
835aa2e
..
ad2136c
100644
(file)
--- a/
include/net/sctp/sctp.h
+++ b/
include/net/sctp/sctp.h
@@
-82,6
+82,11
@@
#define SCTP_PROTOSW_FLAG INET_PROTOSW_PERMANENT
#endif
#define SCTP_PROTOSW_FLAG INET_PROTOSW_PERMANENT
#endif
+/* Round an int up to the next multiple of 4. */
+#define WORD_ROUND(s) (((s)+3)&~3)
+/* Truncate to the previous multiple of 4. */
+#define WORD_TRUNC(s) ((s)&~3)
+
/*
* Function declarations.
*/
/*
* Function declarations.
*/
@@
-475,9
+480,6
@@
for (pos = chunk->subh.fwdtsn_hdr->skip;\
(void *)pos <= (void *)chunk->subh.fwdtsn_hdr->skip + end - sizeof(struct sctp_fwdtsn_skip);\
pos++)
(void *)pos <= (void *)chunk->subh.fwdtsn_hdr->skip + end - sizeof(struct sctp_fwdtsn_skip);\
pos++)
-/* Round an int up to the next multiple of 4. */
-#define WORD_ROUND(s) (((s)+3)&~3)
-
/* External references. */
extern struct proto sctp_prot;
/* External references. */
extern struct proto sctp_prot;