version 1.59.2.2, 2001/08/24 00:13:09 |
version 1.59.2.3, 2001/09/21 22:37:01 |
Line 431 struct cmsghdr { |
|
Line 431 struct cmsghdr { |
|
(struct cmsghdr *)NULL : \ |
(struct cmsghdr *)NULL : \ |
(struct cmsghdr *)((caddr_t)(cmsg) + __CMSG_ALIGN((cmsg)->cmsg_len))) |
(struct cmsghdr *)((caddr_t)(cmsg) + __CMSG_ALIGN((cmsg)->cmsg_len))) |
|
|
#define CMSG_FIRSTHDR(mhdr) ((struct cmsghdr *)(mhdr)->msg_control) |
/* |
|
* RFC 2292 requires to check msg_controllen, in case that the kernel returns |
|
* an empty list for some reasons. |
|
*/ |
|
#define CMSG_FIRSTHDR(mhdr) \ |
|
((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \ |
|
(struct cmsghdr *)(mhdr)->msg_control : \ |
|
(struct cmsghdr *)NULL) |
|
|
#define CMSG_SPACE(l) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(l)) |
#define CMSG_SPACE(l) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(l)) |
#define CMSG_LEN(l) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + (l)) |
#define CMSG_LEN(l) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + (l)) |