Home
last modified time | relevance | path

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

/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux6.c129 struct cmsghdr *cmsgp; in set_ancillary_data() local
191 cmsgp = CMSG_FIRSTHDR(msgp); in set_ancillary_data()
199 cmsgp->cmsg_level = IPPROTO_IPV6; in set_ancillary_data()
200 cmsgp->cmsg_type = IPV6_HOPLIMIT; in set_ancillary_data()
201 cmsg_datap = CMSG_DATA(cmsgp); in set_ancillary_data()
204 cmsgp->cmsg_len = cmsg_datap + hoplimit_space - (uchar_t *)cmsgp; in set_ancillary_data()
205 cmsgp = CMSG_NXTHDR(msgp, cmsgp); in set_ancillary_data()
211 cmsgp->cmsg_level = IPPROTO_IPV6; in set_ancillary_data()
212 cmsgp->cmsg_type = IPV6_RTHDR; in set_ancillary_data()
213 cmsg_datap = CMSG_DATA(cmsgp); in set_ancillary_data()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux6.c95 struct cmsghdr *cmsgp; in set_ancillary_data() local
171 cmsgp = CMSG_FIRSTHDR(msgp); in set_ancillary_data()
179 cmsgp->cmsg_level = IPPROTO_IPV6; in set_ancillary_data()
180 cmsgp->cmsg_type = IPV6_HOPLIMIT; in set_ancillary_data()
181 cmsg_datap = CMSG_DATA(cmsgp); in set_ancillary_data()
184 cmsgp->cmsg_len = cmsg_datap + hoplimit_space - in set_ancillary_data()
185 (uchar_t *)cmsgp; in set_ancillary_data()
186 cmsgp = CMSG_NXTHDR(msgp, cmsgp); in set_ancillary_data()
193 cmsgp->cmsg_level = IPPROTO_IPV6; in set_ancillary_data()
194 cmsgp->cmsg_type = IPV6_RTHDR; in set_ancillary_data()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Doutput.c202 struct cmsghdr *cmsgp; in sendtoif() local
220 msg.msg_controllen = sizeof (*cmsgp) + _MAX_ALIGNMENT + in sendtoif()
221 sizeof (*ipip) + _MAX_ALIGNMENT + sizeof (*cmsgp); in sendtoif()
224 cmsgp = CMSG_FIRSTHDR(&msg); in sendtoif()
225 ipip = (void *)CMSG_DATA(cmsgp); in sendtoif()
228 cmsgp->cmsg_len = (caddr_t)(ipip + 1) - (caddr_t)cmsgp; in sendtoif()
229 cmsgp->cmsg_type = IP_PKTINFO; in sendtoif()
230 cmsgp->cmsg_level = IPPROTO_IP; in sendtoif()
235 cmsgp = CMSG_NXTHDR(&msg, cmsgp); in sendtoif()
236 msg.msg_controllen = (caddr_t)cmsgp - (caddr_t)msg.msg_control; in sendtoif()
/titanic_41/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()
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 …]