Searched refs:toh (Results 1 – 7 of 7) sorted by relevance
277 struct T_opthdr *toh; in conn_recvancillary_add() local280 toh = (struct T_opthdr *)ancil_buf; in conn_recvancillary_add()281 toh->level = IPPROTO_IP; in conn_recvancillary_add()282 toh->name = IP_RECVDSTADDR; in conn_recvancillary_add()283 toh->len = sizeof (struct T_opthdr) + sizeof (ipaddr_t); in conn_recvancillary_add()284 toh->status = 0; in conn_recvancillary_add()289 ancil_size -= toh->len; in conn_recvancillary_add()299 struct T_opthdr *toh; in conn_recvancillary_add() local304 toh = (struct T_opthdr *)ancil_buf; in conn_recvancillary_add()305 toh->level = IPPROTO_IP; in conn_recvancillary_add()[all …]
1326 struct T_opthdr *toh; in icmp_icmp_error_ipv6() local1367 toh = (struct T_opthdr *)&sin6[1]; in icmp_icmp_error_ipv6()1368 toh->level = IPPROTO_IPV6; in icmp_icmp_error_ipv6()1369 toh->name = IPV6_PATHMTU; in icmp_icmp_error_ipv6()1370 toh->len = opt_length; in icmp_icmp_error_ipv6()1371 toh->status = 0; in icmp_icmp_error_ipv6()1373 mtuinfo = (struct ip6_mtuinfo *)&toh[1]; in icmp_icmp_error_ipv6()
5177 struct T_opthdr *toh; in tcp_input_add_ancillary() local5295 toh = (struct T_opthdr *)optptr; in tcp_input_add_ancillary()5296 toh->level = IPPROTO_IP; in tcp_input_add_ancillary()5297 toh->name = IP_RECVTOS; in tcp_input_add_ancillary()5298 toh->len = sizeof (*toh) + in tcp_input_add_ancillary()5300 toh->status = 0; in tcp_input_add_ancillary()5301 optptr += sizeof (*toh); in tcp_input_add_ancillary()5303 optptr = (uchar_t *)toh + toh->len; in tcp_input_add_ancillary()5318 toh = (struct T_opthdr *)optptr; in tcp_input_add_ancillary()5319 toh->level = IPPROTO_IPV6; in tcp_input_add_ancillary()[all …]
2449 struct T_opthdr toh; in sotpi_connect() local2451 toh.level = SOL_SOCKET; in sotpi_connect()2452 toh.name = SO_SRCADDR; in sotpi_connect()2453 toh.len = (t_uscalar_t)(srclen + sizeof (struct T_opthdr)); in sotpi_connect()2454 toh.status = 0; in sotpi_connect()2456 (t_scalar_t)(sizeof (toh) + _TPI_ALIGN_TOPT(srclen)); in sotpi_connect()2463 soappendmsg(mp, &toh, sizeof (toh)); in sotpi_connect()2740 struct T_opthdr toh; in so_unix_close() local2755 toh.level = SOL_SOCKET; in so_unix_close()2756 toh.name = SO_UNIX_CLOSE; in so_unix_close()[all …]
1115 struct T_opthdr toh; in so_cmsg2opt() local1139 toh.level = cmsg->cmsg_level; in so_cmsg2opt()1140 toh.name = cmsg->cmsg_type; in so_cmsg2opt()1141 toh.len = len + (t_uscalar_t)sizeof (struct T_opthdr); in so_cmsg2opt()1142 toh.status = 0; in so_cmsg2opt()1144 soappendmsg(mp, &toh, sizeof (toh)); in so_cmsg2opt()
340 struct T_opthdr *toh = (struct T_opthdr *)dstopt; in svc_clts_krecv() local342 if (toh->level == IPPROTO_IPV6 && toh->status == 0 && in svc_clts_krecv()343 toh->name == IPV6_PKTINFO) { in svc_clts_krecv()352 } else if (toh->level == IPPROTO_IP && toh->status == 0 && in svc_clts_krecv()353 toh->name == IP_RECVDSTADDR) { in svc_clts_krecv()
1192 struct T_opthdr *toh; in udp_icmp_error_ipv6() local1233 toh = (struct T_opthdr *)&sin6[1]; in udp_icmp_error_ipv6()1234 toh->level = IPPROTO_IPV6; in udp_icmp_error_ipv6()1235 toh->name = IPV6_PATHMTU; in udp_icmp_error_ipv6()1236 toh->len = opt_length; in udp_icmp_error_ipv6()1237 toh->status = 0; in udp_icmp_error_ipv6()1239 mtuinfo = (struct ip6_mtuinfo *)&toh[1]; in udp_icmp_error_ipv6()