git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sctp: move SCTP_PAD4 and SCTP_TRUNC4 to linux/sctp.h
[sfrench/cifs-2.6.git]
/
include
/
linux
/
sctp.h
diff --git
a/include/linux/sctp.h
b/include/linux/sctp.h
index a86e852507b32a02e5fff5e189f95950f693e159..358dc08e08311fc36a301e4f350c3278f490f49b 100644
(file)
--- a/
include/linux/sctp.h
+++ b/
include/linux/sctp.h
@@
-820,4
+820,9
@@
struct sctp_new_encap_port_hdr {
__be16 new_port;
};
+/* Round an int up to the next multiple of 4. */
+#define SCTP_PAD4(s) (((s)+3)&~3)
+/* Truncate to the previous multiple of 4. */
+#define SCTP_TRUNC4(s) ((s)&~3)
+
#endif /* __LINUX_SCTP_H__ */