summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2000-09-22 14:43:08 +0000
committerasmodai <asmodai@FreeBSD.org>2000-09-22 14:43:08 +0000
commitbf5d99e0d9410f4f325c87984be29cae61527433 (patch)
tree2de2045e802dd904f4c3b71acbaae55999c81660
parent4b6d1d09be96d4e6eef3d7135b6ca141384fb71b (diff)
downloadFreeBSD-src-bf5d99e0d9410f4f325c87984be29cae61527433.zip
FreeBSD-src-bf5d99e0d9410f4f325c87984be29cae61527433.tar.gz
Document which RFC introduced CMSG_SPACE() and CMSG_LEN().
-rw-r--r--sys/sys/socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h
index cfa6adc..548f4f0 100644
--- a/sys/sys/socket.h
+++ b/sys/sys/socket.h
@@ -370,6 +370,8 @@ struct cmsgcred {
#define CMSG_FIRSTHDR(mhdr) ((struct cmsghdr *)(mhdr)->msg_control)
+/* RFC 2292 additions */
+
#define CMSG_SPACE(l) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l))
#define CMSG_LEN(l) (ALIGN(sizeof(struct cmsghdr)) + (l))
OpenPOWER on IntegriCloud