Home
last modified time | relevance | path

Searched refs:cmsgp (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux6.c127 struct cmsghdr *cmsgp; in set_ancillary_data() local
189 cmsgp = CMSG_FIRSTHDR(msgp); 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()
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()
262 cmsgp->cmsg_len = cmsg_datap + pktinfo_space - (uchar_t *)cmsgp; in set_ancillary_data()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux6.c97 struct cmsghdr *cmsgp; in set_ancillary_data() local
173 cmsgp = CMSG_FIRSTHDR(msgp); in set_ancillary_data()
183 cmsg_datap = CMSG_DATA(cmsgp); in set_ancillary_data()
187 (uchar_t *)cmsgp; in set_ancillary_data()
188 cmsgp = CMSG_NXTHDR(msgp, cmsgp); in set_ancillary_data()
196 cmsgp->cmsg_type = IPV6_RTHDR; in set_ancillary_data()
197 cmsg_datap = CMSG_DATA(cmsgp); in set_ancillary_data()
222 cmsgp->cmsg_len = cmsg_datap + rthdr_space - (uchar_t *)cmsgp; in set_ancillary_data()
223 cmsgp = CMSG_NXTHDR(msgp, cmsgp); in set_ancillary_data()
247 cmsgp->cmsg_len = cmsg_datap + pktinfo_space - (uchar_t *)cmsgp; in set_ancillary_data()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Doutput.c200 struct cmsghdr *cmsgp; in sendtoif() local
218 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()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/vrrpd/
H A Dvrrpd.c3123 struct cmsghdr *cmsgp; in vrrpd_send_adv_v6() local
3159 cmsgp = CMSG_FIRSTHDR(&msg6); 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()
3186 cmsgp->cmsg_len = cmsg_datap + pktinfo_space - (uchar_t *)cmsgp; in vrrpd_send_adv_v6()
3187 cmsgp = CMSG_NXTHDR(&msg6, cmsgp); in vrrpd_send_adv_v6()
3477 struct cmsghdr *cmsgp; in vrrpd_process_adv_v6() local
3495 for (cmsgp = CMSG_FIRSTHDR(msgp); cmsgp != NULL; in vrrpd_process_adv_v6()
3496 cmsgp = CMSG_NXTHDR(msgp, cmsgp)) { in vrrpd_process_adv_v6()
[all …]