|
@@ -82,6 +82,11 @@
|
|
#define SCTP_PROTOSW_FLAG INET_PROTOSW_PERMANENT
|
|
#define SCTP_PROTOSW_FLAG INET_PROTOSW_PERMANENT
|
|
#endif
|
|
#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);\
|
|
(void *)pos <= (void *)chunk->subh.fwdtsn_hdr->skip + end - sizeof(struct sctp_fwdtsn_skip);\
|
|
pos++)
|
|
pos++)
|
|
|
|
|
|
-/* Round an int up to the next multiple of 4. */
|
|
|
|
-#define WORD_ROUND(s) (((s)+3)&~3)
|
|
|
|
-
|
|
|
|
/* External references. */
|
|
/* External references. */
|
|
|
|
|
|
extern struct proto sctp_prot;
|
|
extern struct proto sctp_prot;
|