Searched refs:ntohs (Results 1 - 25 of 397) sorted by relevance

1234567891011>>

/macosx-10.10/xnu-2782.1.97/osfmk/i386/
H A Dendian.h52 #if !defined(ntohs)
53 static __inline__ unsigned short ntohs(unsigned short);
56 ntohs(unsigned short w_int) function
64 #define htons ntohs
89 #define NTOHS(x) (x) = ntohs((unsigned short)x)
/macosx-10.10/Libinfo-459/util.subproj/
H A Dhton.c38 uint16_t ntohs(uint16_t x) function
/macosx-10.10/xnu-2782.1.97/bsd/netinet6/
H A Dmld6.h82 #define MLD_MRC_EXP(x) ((ntohs((x)) >> 12) & 0x0007)
83 #define MLD_MRC_MANT(x) (ntohs((x)) & 0x0fff)
/macosx-10.10/xnu-2782.1.97/bsd/sys/
H A D_endian.h102 __uint16_t ntohs(__uint16_t);
111 #define ntohs(x) ((__uint16_t)(x))
132 #define ntohs(x) __DARWIN_OSSwapInt16(x)
144 #define NTOHS(x) (x) = ntohs((__uint16_t)x)
/macosx-10.10/WTF-7600.1.24/wtf/
H A DByteOrder.h47 inline uint16_t ntohs(uint16_t x) { return x; } function
52 inline uint16_t ntohs(uint16_t x) { return x; }
57 inline uint16_t ntohs(uint16_t x) { return WTF::bswap16(x); }
/macosx-10.10/network_cmds-457/alias/
H A Dalias_nbt.c238 pmax = (char *)uh + ntohs( uh->uh_ulen );
267 printf("%s:%d-->", inet_ntoa(ndh->source_ip), ntohs(ndh->source_port) );
286 printf("%s:%d\n", inet_ntoa(ndh->source_ip), ntohs(ndh->source_port) );
318 switch ( ntohs(q->type) ) {
325 printf("\nUnknown Type on Question %0x\n", ntohs(q->type) );
369 bcount = ntohs(q->rdlen);
442 bcount = ntohs(q->rdlen);
499 bcount = ntohs(q->rdlen);
532 bcount = ntohs(q->rdlen);
563 bcount = ntohs(
[all...]
H A Dalias_cuseeme.c95 if (ntohs(ud->uh_ulen) - sizeof(struct udphdr) >= sizeof(struct cu_header)) {
129 end = (char *)ud + ntohs(ud->uh_ulen);
134 if(ntohs(cu->data_type) == 101)
H A Dalias_smedia.c189 tlen = ntohs(pip->ip_len);
282 base_alias = ntohs(salias);
309 snprintf(stemp, sizeof(stemp), "%d", ntohs(salias));
322 snprintf(stemp, sizeof(stemp), "%d", ntohs(ealias));
408 if (ntohs(msg_id) == 0) {
412 if ((ntohs(msg_id) == 1) || (ntohs(msg_id) == 7)) {
430 work += ntohs(msg_len);
449 tlen = ntohs(pip->ip_len);
456 if ((ntohs(t
[all...]
/macosx-10.10/remote_cmds-47/ypserv.tproj/
H A Dypserv_proc.c110 inet_ntoa(caller->sin_addr), ntohs(caller->sin_port), TORF(ok));
140 inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
171 inet_ntoa(caller->sin_addr), ntohs(caller->sin_port), TORF(ok),
201 inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
211 if (secure && (ntohs(caller->sin_port) >= IPPORT_RESERVED)) {
237 inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
247 if (secure && (ntohs(caller->sin_port) >= IPPORT_RESERVED)) {
274 inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
284 if (secure && (ntohs(caller->sin_port) >= IPPORT_RESERVED)) {
315 inet_ntoa(caller->sin_addr), ntohs(calle
[all...]
/macosx-10.10/ppp-786.1.1/Drivers/PPTP/PPTP-plugin/
H A Dpptp.c125 while ((n = write(fd, buf + sent, ntohs(hdr->len) - sent)) != (ntohs(hdr->len) - sent)) {
185 if (ntohs(hdr.ctrl_msgtype) != msg) {
267 *peercallid = ntohs(out_reply.call_id);
268 *peerwindow = ntohs(out_reply.recv_window);
269 *peerppd = ntohs(out_reply.processing_delay);
321 *peercallid = ntohs(out_req.call_id);
322 *peerwindow = ntohs(out_req.recv_window);
323 *peerppd = ntohs(out_req.processing_delay);
374 switch (ntohs(heade
[all...]
/macosx-10.10/xnu-2782.1.97/bsd/netinet/
H A Dtcp_lro.h78 (((faddr) ^ ((laddr) >> 16) ^ ntohs((lport) ^ (fport))) & (mask))
/macosx-10.10/xnu-2782.1.97/bsd/dev/dtrace/scripts/
H A Dip.d53 dport = (P != NULL) ? ntohs(P->inp_fport) : 0;
54 sport = (P != NULL) ? ntohs(P->inp_lport) : 0;
81 (ntohs(ip->ip_len) - (((*(uint8_t *) ip) & 0x0f) << 2)) : 0;
89 ip_plength = (ip6 != NULL) ? (ntohs(ip6->ip6_ctlun.ip6_un1.ip6_un1_plen)) : 0;
103 ntohs(((struct ip *)i)->ip_len) -
106 ntohs(((struct ip6_hdr *)i)->ip6_ctlun.ip6_un1.ip6_un1_plen) : 0)) : 0;
162 ipv4_length = (ip != NULL) ? ntohs(ip->ip_len) : 0;
164 ipv4_flags = (ip != NULL) ? (ntohs(ip->ip_off) & 0xe000) : 0;
165 ipv4_offset = (ip != NULL) ? (ntohs(ip->ip_off) & 0x1fff) : 0;
178 ipv4_checksum = (ip != NULL) ? ntohs(i
[all...]
/macosx-10.10/remote_cmds-47/talk.tproj/
H A Dget_iface.c77 local.sin_port = htons(ntohs(local.sin_port) + 1);
87 remote.sin_port = htons(ntohs(remote.sin_port) + 1);
/macosx-10.10/ppp-786.1.1/Family/
H A Dslcompress.c160 (f) = htons(ntohs(f) + ((cp[1] << 8) | cp[2])); \
163 (f) = htons(ntohs(f) + (u_int32_t)*cp++); \
304 deltaS = ntohs(th->th_urp);
314 deltaS = (u_int16_t)(ntohs(th->th_win) - ntohs(oth->th_win));
348 ntohs(cs->cs_ip.ip_len) == hlen)
363 deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
371 if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
379 deltaS = ntohs(ip->ip_id) - ntohs(c
[all...]
/macosx-10.10/tcpdump-61/tcpdump/
H A Dprint-isakmp.c845 ND_PRINT((ndo," key len=%d", ntohs(e.len) - 4));
846 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
848 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
851 return (u_char *)ext + ntohs(e.len);
930 ND_PRINT((ndo," port=%d", ntohs(id.port)));
1113 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1114 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1116 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4))
1119 return (u_char *)ext + ntohs(e.len);
1137 ND_PRINT((ndo," len=%d", ntohs(
[all...]
/macosx-10.10/ipsec-286.1.1/ipsec-tools/racoon/
H A Disakmp_cfg.c207 if (tlen < ntohs(ph->len)) {
222 plen = ntohs(ph->len);
224 plen = ntohs(nph->len);
226 if (tlen < (plen + ntohs(ph->len))) {
229 ntohs(nph->len),
277 tlen -= ntohs(ph->len);
279 ph = (struct isakmp_gen *)(npp + ntohs(ph->len));
362 tlen = ntohs(attrpl->h.len);
367 type = ntohs(attr->type);
375 s_isakmp_cfg_type(type), ntohs(att
[all...]
H A Dvpn.c186 port = ntohs(getmyaddrsport(local));
278 algo_ptr = (struct vpnctl_algo *)(selector_ptr + ntohs(pkt->selector_count));
280 for (i = 0; i < ntohs(pkt->selector_count); i++, selector_ptr++) {
332 if (ntohs(pkt->pfs_group) != 0) {
333 new_sainfo->pfs_group = algtype2doi(algclass_isakmp_dh, ntohs(pkt->pfs_group));
339 for (j = 0, next_algo = algo_ptr; j < ntohs(pkt->algo_count); j++, next_algo++) {
348 class = ntohs(next_algo->algo_class);
349 algorithm = ntohs(next_algo->algo);
350 keylen = ntohs(next_algo->key_len);
533 tlen -= ntohs(att
[all...]
/macosx-10.10/bootp-298/bootplib/
H A Dnbo.h64 return (ntohs(tmp_field));
/macosx-10.10/eap8021x-198/EAP8021X.fproj/
H A Dnbo.h66 return (ntohs(tmp_field));
/macosx-10.10/passwordserver_sasl-193/cyrus_sasl/lib/
H A Dgetnameinfo.c77 sprintf(tmpserv, "%d", ntohs(sin->sin_port));
/macosx-10.10/passwordserver_sasl-193/cyrus_sasl/saslauthd/
H A Dgetnameinfo.c75 sprintf(tmpserv, "%d", ntohs(sin->sin_port));
/macosx-10.10/remote_cmds-47/timed.tproj/timed.tproj/
H A Dbyteorder.c74 ptr->tsp_seq = ntohs((u_short)ptr->tsp_seq);
/macosx-10.10/xnu-2782.1.97/osfmk/kdp/
H A Dkdp_udp.h62 #define ntohs(x) OSSwapBigToHostInt16(x) macro
/macosx-10.10/Heimdal-398.1.2/lib/roken/
H A Dgetnameinfo.c71 snprintf (serv, servlen, "%u", ntohs(port));
81 snprintf (serv, servlen, "%u", ntohs(port));
/macosx-10.10/curl-83.1.2/curl/lib/
H A Dwarnless.h101 # undef ntohs macro
102 # define ntohs(a) curlx_ntohs((a)) macro

Completed in 422 milliseconds

1234567891011>>