Lines Matching refs:cmsgp
127 struct cmsghdr *cmsgp; in set_ancillary_data() local
189 cmsgp = CMSG_FIRSTHDR(msgp); in set_ancillary_data()
197 cmsgp->cmsg_level = IPPROTO_IPV6; in set_ancillary_data()
198 cmsgp->cmsg_type = IPV6_HOPLIMIT; in set_ancillary_data()
199 cmsg_datap = CMSG_DATA(cmsgp); in set_ancillary_data()
202 cmsgp->cmsg_len = cmsg_datap + hoplimit_space - (uchar_t *)cmsgp; in set_ancillary_data()
203 cmsgp = CMSG_NXTHDR(msgp, cmsgp); in set_ancillary_data()
209 cmsgp->cmsg_level = IPPROTO_IPV6; in set_ancillary_data()
210 cmsgp->cmsg_type = IPV6_RTHDR; in set_ancillary_data()
211 cmsg_datap = CMSG_DATA(cmsgp); in set_ancillary_data()
237 cmsgp->cmsg_len = cmsg_datap + rthdr_space - (uchar_t *)cmsgp; in set_ancillary_data()
238 cmsgp = CMSG_NXTHDR(msgp, cmsgp); in set_ancillary_data()
245 cmsgp->cmsg_level = IPPROTO_IPV6; in set_ancillary_data()
246 cmsgp->cmsg_type = IPV6_PKTINFO; in set_ancillary_data()
247 cmsg_datap = CMSG_DATA(cmsgp); in set_ancillary_data()
262 cmsgp->cmsg_len = cmsg_datap + pktinfo_space - (uchar_t *)cmsgp; in set_ancillary_data()
263 cmsgp = CMSG_NXTHDR(msgp, cmsgp); in set_ancillary_data()
266 msgp->msg_controllen = (char *)cmsgp - (char *)msgp->msg_control; in set_ancillary_data()