Home | History | Annotate | Download | only in util

Lines Matching defs:CMSG_LEN

98 /** if CMSG_LEN is not defined on this platform, a workaround */
99 #ifndef CMSG_LEN
100 # define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr))+(len))
673 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo));
674 /* zero the padding bytes inserted by the CMSG_LEN */
675 if(sizeof(struct in_pktinfo) < cmsg->cmsg_len)
677 sizeof(struct in_pktinfo), 0, cmsg->cmsg_len
686 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_addr));
687 /* zero the padding bytes inserted by the CMSG_LEN */
688 if(sizeof(struct in_addr) < cmsg->cmsg_len)
690 sizeof(struct in_addr), 0, cmsg->cmsg_len
707 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo));
708 /* zero the padding bytes inserted by the CMSG_LEN */
709 if(sizeof(struct in6_pktinfo) < cmsg->cmsg_len)
711 sizeof(struct in6_pktinfo), 0, cmsg->cmsg_len
720 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo));
721 /* zero the padding bytes inserted by the CMSG_LEN */
722 if(sizeof(struct in6_pktinfo) < cmsg->cmsg_len)
724 sizeof(struct in6_pktinfo), 0, cmsg->cmsg_len
1262 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo));
1273 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_addr));
1289 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo));
1541 cmsg->cmsg_len != 0) {
1552 cmsg->cmsg_len != 0) {