Searched refs:htons (Results 1 - 25 of 429) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/net/sparc/
H A Dhtons.c32 htons(u_short a) function
/illumos-gate/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))) {
H A Dgetportproto.c27 return htons(number);
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.hton.d53 /after[0] != htons(before[0])/
55 printf("%x rather than %x", htons(before[0]), after[0]);
/illumos-gate/usr/src/boot/lib/libc/net/
H A Dntoh.c42 htons(uint16_t hs) function
/illumos-gate/usr/src/stand/lib/xdr/
H A Dbyteorder.c30 * htonll(), ntohll(), htonl(), ntohl(), htons(), ntohs()
76 htons(uint16_t in) function
89 return (htons(in));
120 htons(uint16_t in) function
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_init.c60 sph->sph_type = htons(PARM_SUPP_ADDRS);
64 *addrtype++ = htons(PARM_ADDR4);
66 sph->sph_len = htons(sizeof (*sph) + sizeof (*addrtype));
69 *addrtype++ = htons(PARM_ADDR6);
71 *addrtype = htons(PARM_ADDR4);
72 sph->sph_len = htons(sizeof (*sph) +
76 sph->sph_len = htons(sizeof (*sph) +
114 sph->sph_type = htons(PARM_FORWARD_TSN);
115 sph->sph_len = htons(sizeof (*sph));
134 sph->sph_type = htons(PARM_ADAPT_LAYER_IN
[all...]
H A Dsctp_asconf.c161 wph->sph_type = htons(PARM_ERROR_IND);
162 wph->sph_len = htons(msgdsize(mp) + sizeof (*wph) + sizeof (cid));
296 ch->sch_len = htons(msgdsize(mp));
469 if (oph->sph_type == htons(PARM_ADD_IP))
471 if (oph->sph_type == htons(PARM_DEL_IP))
544 htons(PARM_ADD_IP)) {
551 htons(PARM_DEL_IP)) {
586 ach->sch_len = htons(msgdsize(hmp) - sctp->sctp_hdr_len);
588 ach->sch_len = htons(msgdsize(hmp) - sctp->sctp_hdr6_len);
702 if (oph->sph_type == htons(PARM_ADD_I
[all...]
/illumos-gate/usr/src/boot/lib/libstand/
H A Darp.c112 ah->arp_hrd = htons(ARPHRD_ETHER);
113 ah->arp_pro = htons(ETHERTYPE_IP);
116 ah->arp_op = htons(ARPOP_REQUEST);
205 if (ah->arp_hrd != htons(ARPHRD_ETHER) ||
206 ah->arp_pro != htons(ETHERTYPE_IP) ||
217 if (ah->arp_op == htons(ARPOP_REQUEST)) {
226 if (ah->arp_op != htons(ARPOP_REPLY)) {
265 if (arp->arp_hrd != htons(ARPHRD_ETHER) ||
266 arp->arp_pro != htons(ETHERTYPE_IP) ||
277 if (arp->arp_op != htons(ARPOP_REQUES
[all...]
H A Drarp.c98 ap->arp_hrd = htons(ARPHRD_ETHER);
99 ap->arp_pro = htons(ETHERTYPE_IP);
102 ap->arp_op = htons(ARPOP_REVREQUEST);
190 if (ap->arp_hrd != htons(ARPHRD_ETHER) ||
191 ap->arp_pro != htons(ETHERTYPE_IP) ||
202 if (ap->arp_op != htons(ARPOP_REVREPLY)) {
/illumos-gate/usr/src/lib/print/libipp-core/common/
H A Dwrite.c143 length = (uint16_t)htons(strlen(name));
151 length = (uint16_t)htons(0);
168 length = (uint16_t)htons(strlen(name));
176 length = (uint16_t)htons(0);
198 length = (uint16_t)htons(str_length);
211 length = (uint16_t)htons(1);
221 length = (uint16_t)htons(4);
233 length = (uint16_t)htons(8);
247 length = (uint16_t)htons(9);
266 length = (uint16_t)htons(1
[all...]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_krb5lookup.c71 port = htons(KRB5_DEFAULT_PORT);
74 port = htons(DEFAULT_KADM5_PORT);
77 port = htons(DEFAULT_KPASSWD_PORT);
/illumos-gate/usr/src/lib/libc/sparc/gen/
H A Dbyteorder.c38 * htonll(), ntohll(), htonl(), ntohl(), htons(), ntohs()
69 htons(uint16_t in) function
/illumos-gate/usr/src/lib/libc/sparcv9/gen/
H A Dbyteorder.c38 * htonll(), ntohll(), htonl(), ntohl(), htons(), ntohs()
69 htons(uint16_t in) function
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dbig_bswap.h7 #define htons(x) (x) macro
H A Dlittle_bswap.h7 #define htons(x) __bswap_16(x) macro
/illumos-gate/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 */
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dfull_ipadr.c61 temptype = htons(ADDRTYPE_INET);
72 temptype = htons(ADDRTYPE_IPPORT);
H A Dport2ip.c56 if (temptype != htons(ADDRTYPE_INET))
70 if (temptype != htons(ADDRTYPE_IPPORT))
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/safety/
H A Dtst.hton.d41 trace(htons(0x1122));
/illumos-gate/usr/src/cmd/smbsrv/bind-helper/
H A Dbind-helper.c62 sin->sin_port = htons(atoi(argv[3]));
66 sin6->sin6_port = htons(atoi(argv[3]));
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux.c114 * even when HDRINCL is set. It applies htons() on these
118 outip->ip_len = htons(plen - optlen);
119 outip->ip_off = htons(off);
129 outicmp->icmp_id = htons(ident);
135 outudp->uh_sport = htons(ident);
137 htons((ushort_t)(plen - (sizeof (struct ip) + optlen)));
231 outip->ip_id = htons(ident + seq);
265 outicmp->icmp_seq = htons(seq);
267 outudp->uh_dport = htons((port + seq) % (MAX_PORT + 1));
372 icp->icmp_id == htons(iden
[all...]
/illumos-gate/usr/src/lib/libresolv/
H A Dres_mkquery.c100 ns_sin.sin_port = htons(NAMESERVER_PORT);
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);
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Dkrb5_lookup.c73 port = htons(KRB5_DEFAULT_PORT);
76 port = htons(DEFAULT_KADM5_PORT);
79 port = htons(DEFAULT_KPASSWD_PORT);
/illumos-gate/usr/src/lib/libbc/libc/net/
H A Dbindresvport.c63 sin->sin_port = htons(port++);

Completed in 88 milliseconds

1234567891011>>