/titanic_41/usr/src/uts/common/inet/sctp/ |
H A D | sctp_init.c | 60 sph->sph_type = htons(PARM_SUPP_ADDRS); in sctp_supaddr_param() 64 *addrtype++ = htons(PARM_ADDR4); in sctp_supaddr_param() 66 sph->sph_len = htons(sizeof (*sph) + sizeof (*addrtype)); in sctp_supaddr_param() 69 *addrtype++ = htons(PARM_ADDR6); in sctp_supaddr_param() 71 *addrtype = htons(PARM_ADDR4); in sctp_supaddr_param() 72 sph->sph_len = htons(sizeof (*sph) + in sctp_supaddr_param() 76 sph->sph_len = htons(sizeof (*sph) + in sctp_supaddr_param() 114 sph->sph_type = htons(PARM_FORWARD_TSN); in sctp_options_param() 115 sph->sph_len = htons(sizeof (*sph)); in sctp_options_param() 134 sph->sph_type = htons(PARM_ADAPT_LAYER_IND); in sctp_adaptation_code_param() [all …]
|
H A D | sctp_asconf.c | 161 wph->sph_type = htons(PARM_ERROR_IND); in sctp_asconf_prepend_errwrap() 162 wph->sph_len = htons(msgdsize(mp) + sizeof (*wph) + sizeof (cid)); in sctp_asconf_prepend_errwrap() 296 ch->sch_len = htons(msgdsize(mp)); in sctp_asconf_send() 469 if (oph->sph_type == htons(PARM_ADD_IP)) in sctp_input_asconf() 471 if (oph->sph_type == htons(PARM_DEL_IP)) in sctp_input_asconf() 544 htons(PARM_ADD_IP)) { in sctp_input_asconf() 551 htons(PARM_DEL_IP)) { in sctp_input_asconf() 586 ach->sch_len = htons(msgdsize(hmp) - sctp->sctp_hdr_len); in sctp_input_asconf() 588 ach->sch_len = htons(msgdsize(hmp) - sctp->sctp_hdr6_len); in sctp_input_asconf() 702 if (oph->sph_type == htons(PARM_ADD_IP) || in sctp_input_asconf_ack() [all …]
|
H A D | sctp_error.c | 73 acp->sch_len = htons(alen); in sctp_link_abort() 84 eph->sph_type = htons(serror); in sctp_link_abort() 85 eph->sph_len = htons(len + sizeof (*eph)); in sctp_link_abort() 276 ahiph->ipha_length = htons(ixa->ixa_pktlen); in sctp_send_abort() 280 ahip6h->ip6_plen = htons(ixa->ixa_pktlen - IPV6_HDR_LEN); in sctp_send_abort() 372 ipha->ipha_length = htons(ahlen); in sctp_ootb_send_abort() 396 ip6h->ip6_plen = htons(ahlen - IPV6_HDR_LEN); in sctp_ootb_send_abort() 427 ipha->ipha_length = htons(ixas.ixa_pktlen); in sctp_ootb_send_abort() 429 ip6h->ip6_plen = htons(ixas.ixa_pktlen - IPV6_HDR_LEN); in sctp_ootb_send_abort() 494 ecp->sch_len = htons(elen); in sctp_make_err() [all …]
|
H A D | sctp_shutdown.c | 125 sch->sch_len = htons(sizeof (*sch) + sizeof (*ctsn)); in sctp_send_shutdown() 208 scch->sch_len = htons(sizeof (*scch)); in sctp_shutdown_complete() 282 ipha->ipha_length = htons(ixas.ixa_pktlen); in sctp_ootb_shutdown_ack() 305 ip6h->ip6_plen = htons(ixas.ixa_pktlen - IPV6_HDR_LEN); in sctp_ootb_shutdown_ack() 328 scch->sch_len = htons(sizeof (*scch)); in sctp_ootb_shutdown_ack() 389 sach->sch_len = htons(sizeof (*sach)); in sctp_send_shutdown_ack()
|
/titanic_41/usr/src/lib/print/libipp-core/common/ |
H A D | write.c | 143 length = (uint16_t)htons(strlen(name)); in ipp_write_attribute() 151 length = (uint16_t)htons(0); in ipp_write_attribute() 168 length = (uint16_t)htons(strlen(name)); in ipp_write_attribute() 176 length = (uint16_t)htons(0); in ipp_write_attribute() 198 length = (uint16_t)htons(str_length); in ipp_write_attribute() 211 length = (uint16_t)htons(1); in ipp_write_attribute() 221 length = (uint16_t)htons(4); in ipp_write_attribute() 233 length = (uint16_t)htons(8); in ipp_write_attribute() 247 length = (uint16_t)htons(9); in ipp_write_attribute() 266 length = (uint16_t)htons(11); in ipp_write_attribute() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute_aux.c | 118 outip->ip_len = htons(plen - optlen); in set_buffers() 119 outip->ip_off = htons(off); in set_buffers() 129 outicmp->icmp_id = htons(ident); in set_buffers() 135 outudp->uh_sport = htons(ident); in set_buffers() 137 htons((ushort_t)(plen - (sizeof (struct ip) + optlen))); in set_buffers() 231 outip->ip_id = htons(ident + seq); in send_probe() 265 outicmp->icmp_seq = htons(seq); in send_probe() 267 outudp->uh_dport = htons((port + seq) % (MAX_PORT + 1)); in send_probe() 372 icp->icmp_id == htons(ident) && in check_reply() 373 icp->icmp_seq == htons(seq)) in check_reply() [all …]
|
H A D | traceroute_aux6.c | 102 outicmp->icmp_id = htons(ident); in set_buffers6() 110 outudp->uh_ulen = htons((ushort_t)(plen - in set_buffers6() 344 outicmp->icmp_seq = htons(seq); in send_probe6() 347 to6->sin6_port = htons((port + seq) % (MAX_PORT + 1)); in send_probe6() 458 icp6->icmp6_id == htons(ident) && in check_reply6() 459 icp6->icmp6_seq == htons(seq)) { in check_reply6() 468 hicmp6->icmp6_id == htons(ident) && in check_reply6() 469 hicmp6->icmp6_seq == htons(seq)) { in check_reply6() 485 up->uh_sport == htons(ident) && in check_reply6() 486 up->uh_dport == htons((port + seq) % in check_reply6()
|
/titanic_41/usr/src/lib/libresolv/ |
H A D | res_mkquery.c | 97 ns_sin.sin_port = htons(NAMESERVER_PORT); in _confcheck() 167 hp->id = htons(++_res.id); 193 hp->qdcount = htons(1); 212 hp->arcount = htons(1); 238 hp->ancount = htons(1); 277 hp->ancount = htons(0); 303 hp->ancount = htons(0);
|
/titanic_41/usr/src/cmd/ipf/lib/common/ |
H A D | portname.c | 20 if ((sv = getservbyport(htons(port), "tcp"))) { 23 sv1 = getservbyport(htons(port), "udp"); 30 if ((sv = getservbyport(htons(port), p->p_name))) {
|
/titanic_41/usr/src/head/protocols/ |
H A D | routed.h | 77 #define RIP_AF_INET htons(AF_INET) 94 #define RIP_AUTH_TRAILER htons(1) /* authentication data */ 95 #define RIP_AUTH_PW htons(2) /* password type */ 96 #define RIP_AUTH_MD5 htons(3) /* Keyed MD5 */
|
/titanic_41/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_mkquery.c | 158 hp->id = htons(statp->id); in res_nmkquery() 184 hp->qdcount = htons(1); in res_nmkquery() 205 hp->arcount = htons(1); in res_nmkquery() 227 hp->ancount = htons(1); in res_nmkquery() 283 hp->arcount = htons(ntohs(hp->arcount) + 1); in res_nopt() 366 ns_sin.sin_port = htons(NAMESERVER_PORT); in _confcheck()
|
/titanic_41/usr/src/stand/lib/xdr/ |
H A D | byteorder.c | 76 htons(uint16_t in) in htons() function 89 return (htons(in)); in ntohs() 120 htons(uint16_t in) in htons() function
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | tftp.c | 155 dp->th_opcode = htons((ushort_t)DATA); in tftp_sendfile() 156 dp->th_block = htons((ushort_t)block); in tftp_sendfile() 277 ap->th_opcode = htons((ushort_t)ACK); in tftp_recvfile() 278 ap->th_block = htons((ushort_t)(block)); in tftp_recvfile() 338 ap->th_opcode = htons((ushort_t)ACK); in tftp_recvfile() 339 ap->th_block = htons(0); in tftp_recvfile() 390 ap->th_opcode = htons((ushort_t)ACK); in tftp_recvfile() 391 ap->th_block = htons((ushort_t)block); in tftp_recvfile() 413 tp->th_opcode = htons((ushort_t)request); in makerequest() 627 tp->th_opcode = htons((ushort_t)ERROR); in nak() [all …]
|
/titanic_41/usr/src/lib/libc/i386/gen/ |
H A D | byteorder.s | 55 / unsigned short htons( hs ) 60 ENTRY(htons) 65 SET_SIZE(htons)
|
/titanic_41/usr/src/cmd/ipf/tools/ |
H A D | ipnat_y.y | 284 nat->in_dport = htons($3); 409 dport: | IPNY_PORT portspec { nat->in_pmin = htons($2); 410 nat->in_pmax = htons($2); } 411 | IPNY_PORT portspec '-' portspec { nat->in_pmin = htons($2); 412 nat->in_pmax = htons($4); } 413 | IPNY_PORT portspec ':' portspec { nat->in_pmin = htons($2); 414 nat->in_pmax = htons($4); } 417 nport: IPNY_PORT portspec { nat->in_pnext = htons($2); } 418 | IPNY_PORT '=' portspec { nat->in_pnext = htons($3); 494 { nat->in_pmin = htons($3); [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | packet.c | 255 v4->flags = htons(BCAST_MASK); in init_pkt() 303 opt_type = htons(opt_type); in remove_pkt_opt() 395 optval.d6o_len = htons(adjust); in update_v6opt_len() 433 d6o.d6o_code = htons(opt_type); in add_pkt_opt() 434 d6o.d6o_len = htons(opt_len); in add_pkt_opt() 525 d6o.d6o_len = htons(olen); in add_pkt_subopt() 542 d6o.d6o_code = htons(opt_type); in add_pkt_subopt() 543 d6o.d6o_len = htons(opt_len); in add_pkt_subopt() 609 prl[len] = htons(dsmp->dsm_prl[len]); in add_pkt_prl() 715 *statusopt = htons(status); in add_pkt_lif() [all …]
|
/titanic_41/usr/src/uts/sun4v/io/ |
H A D | vnet_common.c | 86 evhp->ether_tpid = htons(ETHERTYPE_VLAN); in vnet_vlan_insert_tag() 87 evhp->ether_tci = htons(VLAN_TCI(pri, ETHER_CFI, vid)); in vnet_vlan_insert_tag() 109 evhp->ether_tpid = htons(ETHERTYPE_VLAN); in vnet_vlan_insert_tag() 110 evhp->ether_tci = htons(VLAN_TCI(pri, ETHER_CFI, vid)); in vnet_vlan_insert_tag()
|
/titanic_41/usr/src/cmd/fm/eversholt/common/ |
H A D | eftwrite.c | 154 hdr.major = htons(hdr.major); in eftwrite() 155 hdr.minor = htons(hdr.minor); in eftwrite() 156 hdr.cmajor = htons(hdr.cmajor); in eftwrite() 157 hdr.cminor = htons(hdr.cminor); in eftwrite()
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | byteorder.h | 64 #define htons(x) (x) macro 84 extern uint16_t htons(uint16_t); 89 extern in_port_t htons(in_port_t); 115 #define BSWAP_16(x) htons(x) 180 #define BE_IN16(xa) htons(*((uint16_t *)(void *)(xa)))
|
/titanic_41/usr/src/grub/grub-0.97/netboot/ |
H A D | fsys_tftp.c | 101 tp.opcode = htons(TFTP_RRQ); in tftp_file_read() 172 tp.opcode = htons(TFTP_ERROR); in tftp_file_read() 198 else if (tr->opcode == htons(TFTP_DATA)) { in tftp_file_read() 209 tp.u.ack.block = htons(block = prevblock); in tftp_file_read() 211 tp.opcode = htons(TFTP_ACK); in tftp_file_read() 349 tp.opcode = htons (TFTP_ERROR); in buf_fill() 400 tp.u.ack.block = htons (block = prevblock); in buf_fill() 403 tp.opcode = abort ? htons (TFTP_ERROR) : htons (TFTP_ACK); in buf_fill() 616 tp.opcode = htons (TFTP_RRQ); in tftp_dir()
|
H A D | nic.c | 288 if (arpreply->opcode != htons(ARP_REPLY)) in await_arp() 336 arpreq.hwtype = htons(1); in ip_transmit() 337 arpreq.protocol = htons(IP); in ip_transmit() 340 arpreq.opcode = htons(ARP_REQUEST); in ip_transmit() 369 ip->len = htons(len); in build_ip_hdr() 410 udp->src = htons(srcsock); in build_udp_hdr() 411 udp->dest = htons(destsock); in build_udp_hdr() 412 udp->len = htons(len - sizeof(struct iphdr)); in build_udp_hdr() 464 if (arpreply->opcode != htons(RARP_REPLY)) in await_rarp() 489 rarpreq.hwtype = htons(1); in rarp() [all …]
|
/titanic_41/usr/src/cmd/lms/ |
H A D | LMEConnectionCompat.cpp | 66 msg->DataLength = htons(len); in CompatSendMessage() 149 openConnectionExMsg.HostPort = htons(addr.inPort()); in CompatOpenConnection() 150 openConnectionExMsg.MEPort = htons(mePort); in CompatOpenConnection() 164 openConnectionMsg.HostPort = htons(addr.inPort()); in CompatOpenConnection() 165 openConnectionMsg.MEPort = htons(mePort); in CompatOpenConnection()
|
/titanic_41/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | vjcompress.c | 142 (f) = htons(tmp); \ 146 (f) = htons(tmp); \ 152 (f) = htons((cp[1] << 8) | cp[2]); \ 155 (f) = htons((uint32_t)*cp++); \ 180 if ((ip->ip_off & htons(0x3fff)) || mlen < 40) { in vj_compress_tcp() 578 th->th_sum = htons((*cp << 8) | cp[1]); in vj_uncompress_tcp() 643 cs->cs_ip.ip_id = htons(cs->cs_ip.ip_id); in vj_uncompress_tcp() 662 cs->cs_ip.ip_len = htons(total_len); in vj_uncompress_tcp()
|
/titanic_41/usr/src/stand/lib/inet/ |
H A D | ethernet.c | 106 out->arp_ea.arp_hrd = htons(ARPHRD_ETHER); in ether_comarp() 107 out->arp_ea.arp_pro = htons(ETHERTYPE_IP); in ether_comarp() 221 out.arp_eh.ether_type = htons(ETHERTYPE_ARP); in ether_arp() 222 out.arp_ea.arp_op = htons(ARPOP_REQUEST); in ether_arp() 253 out.arp_eh.ether_type = htons(ETHERTYPE_REVARP); in ether_revarp() 254 out.arp_ea.arp_op = htons(REVARP_REQUEST); in ether_revarp() 440 ea->arp_op = htons(ARPOP_REPLY); in ether_input() 528 eh.ether_type = htons(ETHERTYPE_IP); in ether_output()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ |
H A D | revarp.c | 137 req->ar_hrd = htons(ARPHRD_ETHER); in doifrevarp() 138 req->ar_pro = htons(ETHERTYPE_IP); in doifrevarp() 141 req->ar_op = htons(REVARP_REQUEST); in doifrevarp() 289 else if (ans->ar_hrd != htons(ARPHRD_ETHER)) in rarp_recv() 291 else if (ans->ar_pro != htons(ETHERTYPE_IP)) in rarp_recv()
|