/external/tcpdump/ |
D | token.h | 37 #define BROADCAST(trp) ((ntohs((trp)->token_rcf) & 0xE000) >> 13) 38 #define RIF_LENGTH(trp) ((ntohs((trp)->token_rcf) & 0x1f00) >> 8) 39 #define DIRECTION(trp) ((ntohs((trp)->token_rcf) & 0x0080) >> 7) 40 #define LARGEST_FRAME(trp) ((ntohs((trp)->token_rcf) & 0x0070) >> 4) 41 #define RING_NUMBER(trp, x) ((ntohs((trp)->token_rseg[x]) & 0xfff0) >> 4) 42 #define BRIDGE_NUMBER(trp, x) ((ntohs((trp)->token_rseg[x]) & 0x000f))
|
D | print-ether.c | 90 if (ntohs(ep->ether_type) <= ETHERMTU) in ether_hdr_print() 94 tok2str(ethertype_values,"Unknown", ntohs(ep->ether_type)), in ether_hdr_print() 95 ntohs(ep->ether_type)); in ether_hdr_print() 97 if (ntohs(ep->ether_type) <= ETHERMTU) in ether_hdr_print() 100 …oid)printf(", %s", tok2str(ethertype_values,"Unknown Ethertype (0x%04x)", ntohs(ep->ether_type)));… in ether_hdr_print() 126 ether_type = ntohs(ep->ether_type); in ether_print() 225 ntohs(*(u_int16_t *)p) & 0xfff, in ether_encap_print() 226 ntohs(*(u_int16_t *)p) >> 13, in ether_encap_print() 227 (ntohs(*(u_int16_t *)p) & 0x1000) ? ", CFI" : ""); in ether_encap_print() 229 ether_type = ntohs(*(u_int16_t *)(p + 2)); in ether_encap_print() [all …]
|
D | print-isakmp.c | 647 printf(" key len=%d", ntohs(e.len) - 4); in isakmp_ke_print() 648 if (2 < vflag && 4 < ntohs(e.len)) { in isakmp_ke_print() 650 if (!rawprint((caddr_t)(ext + 1), ntohs(e.len) - 4)) in isakmp_ke_print() 653 return (u_char *)ext + ntohs(e.len); in isakmp_ke_print() 733 printf(" port=%d", ntohs(id.port)); in isakmp_id_print() 913 printf(" len=%d", ntohs(e.len) - 4); in isakmp_hash_print() 914 if (2 < vflag && 4 < ntohs(e.len)) { in isakmp_hash_print() 916 if (!rawprint((caddr_t)(ext + 1), ntohs(e.len) - 4)) in isakmp_hash_print() 919 return (u_char *)ext + ntohs(e.len); in isakmp_hash_print() 936 printf(" len=%d", ntohs(e.len) - 4); in isakmp_sig_print() [all …]
|
D | print-ap1394.c | 68 tok2str(ethertype_values,"Unknown", ntohs(fp->firewire_type)), in ap1394_hdr_print() 69 ntohs(fp->firewire_type)); in ap1394_hdr_print() 71 …(void)printf(", %s", tok2str(ethertype_values,"Unknown Ethertype (0x%04x)", ntohs(fp->firewire_typ… in ap1394_hdr_print() 105 ether_type = ntohs(fp->firewire_type); in ap1394_if_print()
|
/external/libppp/src/ |
D | ip.c | 241 datalen = ntohs(pip6->ip6_plen); in FilterCheck() 257 len = ntohs(pip->ip_off) & IP_OFFMASK; /* fragment offset */ in FilterCheck() 273 datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2); in FilterCheck() 354 sport = ntohs(uh->uh_sport); in FilterCheck() 355 dport = ntohs(uh->uh_dport); in FilterCheck() 372 sport = ntohs(th->th_sport); in FilterCheck() 373 dport = ntohs(th->th_dport); in FilterCheck() 505 len = ntohs(uh->uh_ulen) - sizeof *uh; in ip_LogDNS() 515 *hptr++ = ntohs(*pktptr); /* Careful of macro side-effects ! */ in ip_LogDNS() 543 qtype = dns_Qtype2Txt(ntohs(tmp)); in ip_LogDNS() [all …]
|
D | slcompress.c | 139 (f) = htons(ntohs(f) + ((cp[1] << 8) | cp[2])); \ 142 (f) = htons(ntohs(f) + (u_int32_t)*cp++); \ 289 deltaS = ntohs(th->th_urp); in sl_compress_tcp() 301 deltaS = (u_short) (ntohs(th->th_win) - ntohs(oth->th_win)); in sl_compress_tcp() 334 ntohs(cs->cs_ip.ip_len) == hlen) in sl_compress_tcp() 350 deltaS == ntohs(cs->cs_ip.ip_len) - hlen) { in sl_compress_tcp() 358 if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) { in sl_compress_tcp() 366 deltaS = ntohs(ip->ip_id) - ntohs(cs->cs_ip.ip_id); in sl_compress_tcp() 378 deltaA = ntohs(th->th_sum); in sl_compress_tcp() 513 register u_int i = ntohs(cs->cs_ip.ip_len) - cs->cs_hlen; in sl_uncompress_tcp() [all …]
|
D | tcpmss.c | 130 if (ntohs(*mss) > maxmss) { in MSSFixup() 132 ntohs(*mss), maxmss); in MSSFixup() 161 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 && in tcpmss_Check() 162 ntohs(pip->ip_len) == plen && hlen <= plen && in tcpmss_Check()
|
D | server.c | 121 if (ntohs(sin->sin_port) < 1024) { in server_Read() 124 ncpaddr_ntoa(&addr), ntohs(sin->sin_port)); in server_Read() 130 ncpaddr_ntoa(&addr), ntohs(sin->sin_port)); in server_Read() 136 if (ntohs(sin6->sin6_port) < 1024) { in server_Read() 139 ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port)); in server_Read() 145 ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port)); in server_Read() 170 ncpaddr_ntoa(&addr), ntohs(sin->sin_port)); in server_Read() 176 ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port)); in server_Read()
|
/external/ppp/pppd/plugins/rp-pppoe/ |
D | common.c | 48 UINT16_t len = ntohs(packet->length); in parsePacket() 103 UINT16_t len = ntohs(packet->length); in findTag() 281 len = (int) ntohs(packet->length); in clampMSS() 449 ntohs(conn->cookie.length) + TAG_HDR_SIZE); in sendPADT() 450 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE); in sendPADT() 451 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE; in sendPADT() 452 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE; in sendPADT() 457 ntohs(conn->relayId.length) + TAG_HDR_SIZE); in sendPADT() 458 memcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE); in sendPADT() 459 cursor += ntohs(conn->relayId.length) + TAG_HDR_SIZE; in sendPADT() [all …]
|
D | discovery.c | 348 if (ntohs(packet.length) + HDR_SIZE > len) { in waitForPADO() 350 (unsigned int) ntohs(packet.length)); in waitForPADO() 461 ntohs(conn->cookie.length) + TAG_HDR_SIZE); in sendPADR() 462 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE); in sendPADR() 463 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE; in sendPADR() 464 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE; in sendPADR() 469 ntohs(conn->relayId.length) + TAG_HDR_SIZE); in sendPADR() 470 memcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE); in sendPADR() 471 cursor += ntohs(conn->relayId.length) + TAG_HDR_SIZE; in sendPADR() 472 plen += ntohs(conn->relayId.length) + TAG_HDR_SIZE; in sendPADR() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | security.c | 115 len = ntohs(prop->h.len) - 130 len = ntohs(trns->h.len) - sizeof(struct isakmp_pl_t); 134 type = ntohs(d->type) & ~ISAKMP_GEN_MASK; 135 flag = ntohs(d->type) & ISAKMP_GEN_MASK; 136 lorv = ntohs(d->lorv); 149 flag = ntohs(d->type & ISAKMP_GEN_MASK); 156 p->sec_ctx.ctx_strlen = ntohs(p->sec_ctx.ctx_strlen);
|
D | isakmp_cfg.c | 201 if (tlen < ntohs(ph->len)) { 208 plogdump(LLV_DEBUG, ph, ntohs(ph->len)); 217 plen = ntohs(ph->len); 219 plen = ntohs(nph->len); 264 tlen -= ntohs(ph->len); 266 ph = (struct isakmp_gen *)(npp + ntohs(ph->len)); 328 tlen = ntohs(attrpl->h.len); 333 type = ntohs(attr->type); 341 s_isakmp_cfg_type(type), ntohs(attr->lorv)); 346 attr, ntohs(attrpl->id))) != 0) [all …]
|
D | ipsec_doi.c | 562 tlen = ntohs(trns->h.len) - sizeof(*trns); 576 type = ntohs(d->type) & ~ISAKMP_GEN_MASK; 577 flag = ntohs(d->type) & ISAKMP_GEN_MASK; 582 s_oakley_attr_v(type, ntohs(d->lorv))); 597 len = ntohs(d->lorv); 612 sa->enctype = (u_int16_t)ntohs(d->lorv); 616 sa->hashtype = (u_int16_t)ntohs(d->lorv); 620 sa->authmethod = ntohs(d->lorv); 624 sa->dh_group = (u_int16_t)ntohs(d->lorv); 629 int type = (int)ntohs(d->lorv); [all …]
|
/external/grub/netboot/ |
D | fsys_tftp.c | 104 if (tr->opcode == ntohs (TFTP_ERROR)) in buf_fill() 107 ntohs (tr->u.err.errcode), in buf_fill() 112 if (tr->opcode == ntohs (TFTP_OACK)) in buf_fill() 128 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 2; in buf_fill() 170 iport, ntohs (tr->udp.src), in buf_fill() 189 else if (tr->opcode == ntohs (TFTP_DATA)) in buf_fill() 194 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 4; in buf_fill() 205 block = ntohs (tp.u.ack.block = tr->u.data.block); in buf_fill() 217 oport = ntohs (tr->udp.src); in buf_fill()
|
/external/kernel-headers/original/linux/ |
D | kernel.h | 236 ntohs((addr).s6_addr16[0]), \ 237 ntohs((addr).s6_addr16[1]), \ 238 ntohs((addr).s6_addr16[2]), \ 239 ntohs((addr).s6_addr16[3]), \ 240 ntohs((addr).s6_addr16[4]), \ 241 ntohs((addr).s6_addr16[5]), \ 242 ntohs((addr).s6_addr16[6]), \ 243 ntohs((addr).s6_addr16[7])
|
/external/iptables/extensions/ |
D | libxt_TPROXY.c | 56 ntohs(info->lport), (unsigned int)info->mark_value, in tproxy_tg_print() 69 ntohs(info->lport), (unsigned int)info->mark_value, in tproxy_tg_print4() 82 ntohs(info->lport), (unsigned int)info->mark_value, in tproxy_tg_print6() 90 printf(" --on-port %u", ntohs(info->lport)); in tproxy_tg_save() 103 printf(" --on-port %u", ntohs(info->lport)); in tproxy_tg_save4() 115 printf(" --on-port %u", ntohs(info->lport)); in tproxy_tg_save6()
|
D | libipt_MASQUERADE.c | 112 printf("%hu", ntohs(r->min.tcp.port)); in MASQUERADE_print() 114 printf("-%hu", ntohs(r->max.tcp.port)); in MASQUERADE_print() 128 printf(" --to-ports %hu", ntohs(r->min.tcp.port)); in MASQUERADE_save() 130 printf("-%hu", ntohs(r->max.tcp.port)); in MASQUERADE_save()
|
D | libipt_REDIRECT.c | 115 printf("%hu", ntohs(r->min.tcp.port)); in REDIRECT_print() 117 printf("-%hu", ntohs(r->max.tcp.port)); in REDIRECT_print() 130 printf("%hu", ntohs(r->min.tcp.port)); in REDIRECT_save() 132 printf("-%hu", ntohs(r->max.tcp.port)); in REDIRECT_save()
|
/external/libnfc-nci/halimpl/bcm2079x/gki/common/ |
D | gki_inet.h | 23 #define htons ntohs 30 #define ntohs(n) (n) macro 37 extern UINT16 ntohs(UINT16 n);
|
/external/libnfc-nci/src/gki/common/ |
D | gki_inet.h | 23 #define htons ntohs 30 #define ntohs(n) (n) macro 37 extern UINT16 ntohs(UINT16 n);
|
/external/bluetooth/bluedroid/gki/common/ |
D | gki_inet.h | 23 #define htons ntohs 30 #define ntohs(n) (n) macro 37 extern UINT16 ntohs(UINT16 n);
|
/external/webkit/Source/WebCore/platform/graphics/ |
D | WOFFFileFormat.cpp | 43 #define ntohs(x) std_ntohs(x) macro 48 #define ntohs(x) ((uint16_t)(x)) macro 53 #define ntohs(x) ((unit16_t)(x)) macro 58 #define ntohs(x) ((uint16_t)((((uint16_t)(x) & 0xff00) >> 8) | (((uint16_t)(x) & 0x00ff) << 8))) macro 59 #define htons(x) ntohs(x) 86 value = ntohs(*reinterpret_cast<const uint16_t*>(buffer->data() + offset)); in readUInt16()
|
/external/kernel-headers/original/linux/byteorder/ |
D | generic.h | 146 #undef ntohs 156 extern __u16 ntohs(__be16); 169 #define ntohs(x) ___ntohs(x) macro
|
/external/qemu/slirp/ |
D | tcp_subr.c | 404 ntohs(addr.sin_port), inet_ntoa(addr.sin_addr))); in tcp_fconnect() 561 if ((tcptos[i].fport && (ntohs(so->so_fport) == tcptos[i].fport)) || in tcp_tos() 562 (tcptos[i].lport && (ntohs(so->so_lport) == tcptos[i].lport))) { in tcp_tos() 571 if ((emup->fport && (ntohs(so->so_fport) == emup->fport)) || in tcp_tos() 572 (emup->lport && (ntohs(so->so_lport) == emup->lport))) { in tcp_tos() 652 n2 = ntohs(addr.sin_port); in tcp_emu() 683 if (ntohs(so->so_lport) > 1023 || ntohs(so->so_lport) < 512 || in tcp_emu() 767 if (ntohs(so->so_lport) > 1023 || ntohs(so->so_lport) < 512 || in tcp_emu() 980 n6 = ntohs(so->so_fport); in tcp_emu() 1012 n6 = ntohs(so->so_fport); in tcp_emu() [all …]
|
/external/qemu/slirp-android/ |
D | udp.c | 118 len = ntohs((u_int16_t)uh->uh_ulen); in udp_input() 134 if (slirp_should_drop(ntohl(ip->ip_dst.addr), ntohs(uh->uh_dport.port), in udp_input() 139 ntohs(uh->uh_sport.port), in udp_input() 141 ntohs(uh->uh_dport.port), in udp_input() 150 ntohs(uh->uh_sport.port), in udp_input() 152 ntohs(uh->uh_dport.port), in udp_input() 204 if (ntohs(uh->uh_dport.port) == 53) { in udp_input()
|