Searched refs:cmsgp (Results 1 – 4 of 4) sorted by relevance
127 struct cmsghdr *cmsgp; in set_ancillary_data() local189 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()[all …]
86 struct cmsghdr *cmsgp; in set_ancillary_data() local162 cmsgp = CMSG_FIRSTHDR(msgp); in set_ancillary_data()170 cmsgp->cmsg_level = IPPROTO_IPV6; in set_ancillary_data()171 cmsgp->cmsg_type = IPV6_HOPLIMIT; in set_ancillary_data()172 cmsg_datap = CMSG_DATA(cmsgp); in set_ancillary_data()175 cmsgp->cmsg_len = cmsg_datap + hoplimit_space - in set_ancillary_data()176 (uchar_t *)cmsgp; in set_ancillary_data()177 cmsgp = CMSG_NXTHDR(msgp, cmsgp); in set_ancillary_data()184 cmsgp->cmsg_level = IPPROTO_IPV6; in set_ancillary_data()185 cmsgp->cmsg_type = IPV6_RTHDR; in set_ancillary_data()[all …]
200 struct cmsghdr *cmsgp; in sendtoif() local218 msg.msg_controllen = sizeof (*cmsgp) + _MAX_ALIGNMENT + in sendtoif()219 sizeof (*ipip) + _MAX_ALIGNMENT + sizeof (*cmsgp); in sendtoif()222 cmsgp = CMSG_FIRSTHDR(&msg); in sendtoif()223 ipip = (void *)CMSG_DATA(cmsgp); in sendtoif()226 cmsgp->cmsg_len = (caddr_t)(ipip + 1) - (caddr_t)cmsgp; in sendtoif()227 cmsgp->cmsg_type = IP_PKTINFO; in sendtoif()228 cmsgp->cmsg_level = IPPROTO_IP; in sendtoif()233 cmsgp = CMSG_NXTHDR(&msg, cmsgp); in sendtoif()234 msg.msg_controllen = (caddr_t)cmsgp - (caddr_t)msg.msg_control; in sendtoif()
3123 struct cmsghdr *cmsgp; in vrrpd_send_adv_v6() local3159 cmsgp = CMSG_FIRSTHDR(&msg6); in vrrpd_send_adv_v6()3161 cmsgp->cmsg_level = IPPROTO_IPV6; in vrrpd_send_adv_v6()3162 cmsgp->cmsg_type = IPV6_HOPLIMIT; in vrrpd_send_adv_v6()3163 cmsg_datap = CMSG_DATA(cmsgp); in vrrpd_send_adv_v6()3166 cmsgp->cmsg_len = cmsg_datap + hoplimit_space - (uchar_t *)cmsgp; in vrrpd_send_adv_v6()3167 cmsgp = CMSG_NXTHDR(&msg6, cmsgp); in vrrpd_send_adv_v6()3169 cmsgp->cmsg_level = IPPROTO_IPV6; in vrrpd_send_adv_v6()3170 cmsgp->cmsg_type = IPV6_PKTINFO; in vrrpd_send_adv_v6()3171 cmsg_datap = CMSG_DATA(cmsgp); in vrrpd_send_adv_v6()[all …]