| version 1.61, 2001/07/17 11:49:41 |
version 1.61.2.1, 2001/10/01 12:48:14 |
| 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)) |