Home
last modified time | relevance | path

Searched refs:htons (Results 1 – 25 of 425) sorted by relevance

12345678910>>...17

/titanic_50/usr/src/uts/common/inet/sctp/
H A Dsctp_init.c60 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 Dsctp_asconf.c161 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 Dsctp_error.c73 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 Dsctp_shutdown.c125 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_50/usr/src/lib/print/libipp-core/common/
H A Dwrite.c143 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_50/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux.c118 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 Dtraceroute_aux6.c102 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_50/usr/src/lib/libresolv/
H A Dres_mkquery.c100 ns_sin.sin_port = htons(NAMESERVER_PORT); in _confcheck()
170 hp->id = htons(++_res.id);
197 hp->qdcount = htons(1);
217 hp->arcount = htons(1);
243 hp->ancount = htons(1);
283 hp->ancount = htons(0);
310 hp->ancount = htons(0);
/titanic_50/usr/src/cmd/ipf/lib/common/
H A Dportname.c20 if ((sv = getservbyport(htons(port), "tcp"))) {
23 sv1 = getservbyport(htons(port), "udp");
30 if ((sv = getservbyport(htons(port), p->p_name))) {
/titanic_50/usr/src/head/protocols/
H A Drouted.h77 #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_50/usr/src/lib/libresolv2/common/resolv/
H A Dres_mkquery.c158 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_50/usr/src/stand/lib/xdr/
H A Dbyteorder.c76 htons(uint16_t in) in htons() function
89 return (htons(in)); in ntohs()
120 htons(uint16_t in) in htons() function
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftp.c155 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_50/usr/src/cmd/ipf/tools/
H A Dipnat_y.y284 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_50/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dpacket.c255 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_50/usr/src/cmd/fm/eversholt/common/
H A Deftwrite.c154 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_50/usr/src/uts/sun4v/io/
H A Dvnet_common.c86 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_50/usr/src/cmd/idmap/idmapd/
H A Dkrb5_lookup.c73 port = htons(KRB5_DEFAULT_PORT); in _krb5_override_service_locator()
76 port = htons(DEFAULT_KADM5_PORT); in _krb5_override_service_locator()
79 port = htons(DEFAULT_KPASSWD_PORT); in _krb5_override_service_locator()
/titanic_50/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_krb5lookup.c71 port = htons(KRB5_DEFAULT_PORT); in _krb5_override_service_locator()
74 port = htons(DEFAULT_KADM5_PORT); in _krb5_override_service_locator()
77 port = htons(DEFAULT_KPASSWD_PORT); in _krb5_override_service_locator()
/titanic_50/usr/src/uts/common/sys/
H A Dbyteorder.h64 #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_50/usr/src/grub/grub-0.97/netboot/
H A Dfsys_tftp.c101 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 Dnic.c288 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_50/usr/src/lib/libc/i386/gen/
H A Dbyteorder.s58 / unsigned short htons( hs )
63 ENTRY(htons)
68 SET_SIZE(htons)
79 / Convert in to big endian, eg. htons()
/titanic_50/usr/src/uts/common/io/ppp/spppcomp/
H A Dvjcompress.c142 (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_50/usr/src/stand/lib/inet/
H A Dethernet.c106 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()

12345678910>>...17