Lines Matching refs:CMSG_LEN
28 unsigned char *p = CMSG_DATA (cmsg) + cmsg->cmsg_len - CMSG_LEN (0); in add_pad()
118 newp->cmsg_len = CMSG_LEN (0); in inet6_option_init()
181 int dsize = cmsg->cmsg_len - CMSG_LEN (0); in option_alloc()
194 uint8_t *result = CMSG_DATA (cmsg) + cmsg->cmsg_len - CMSG_LEN (0); in option_alloc()
199 dsize = cmsg->cmsg_len - CMSG_LEN (0); in option_alloc()
203 assert (((cmsg->cmsg_len - CMSG_LEN (0)) % 8) == 0); in option_alloc()
204 int len8b = (cmsg->cmsg_len - CMSG_LEN (0)) / 8 - 1; in option_alloc()
247 if (cmsg->cmsg_len < CMSG_LEN (sizeof (struct ip6_ext)) in inet6_option_next()
249 || cmsg->cmsg_len < CMSG_LEN ((ip6e->ip6e_len + 1) * 8)) in inet6_option_next()
303 if (cmsg->cmsg_len < CMSG_LEN (sizeof (struct ip6_ext)) in inet6_option_find()
305 || cmsg->cmsg_len < CMSG_LEN ((ip6e->ip6e_len + 1) * 8)) in inet6_option_find()