/bionic/libc/upstream-openbsd/lib/libc/net/ |
ntohs.c | 1 /* $OpenBSD: ntohs.c,v 1.8 2005/08/06 20:30:03 espie Exp $ */ 10 #undef ntohs macro 13 ntohs(u_int16_t x) function
|
/external/libnfc-nci/halimpl/bcm2079x/gki/common/ |
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/ |
gki_inet.h | 23 #define htons ntohs 30 #define ntohs(n) (n) macro 37 extern UINT16 ntohs(UINT16 n);
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/ |
ntohs.c | 11 inline uint16_t ntohs(uint16_t networkshort) { function
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
ByteOrder.h | 44 inline uint16_t ntohs(uint16_t x) { return x; } function 49 inline uint16_t ntohs(uint16_t x) { return x; } function 54 inline uint16_t ntohs(uint16_t x) { return WTF::bswap16(x); } function
|
/external/android-clat/ |
dump.c | 44 frag_flags = ntohs(header->frag_off); 50 printf("tot_len = %x\n",ntohs(header->tot_len)); 51 printf("id = %x\n",ntohs(header->id)); 65 printf("checksum = %x\n",ntohs(header->check)); 80 printf("payload len = %x\n",ntohs(header->ip6_plen)); 105 printf("icmp.checksum = %x\n",ntohs(icmp->checksum)); 107 printf("icmp.un.echo.id = %x\n",ntohs(icmp->un.echo.id)); 108 printf("icmp.un.echo.sequence = %x\n",ntohs(icmp->un.echo.sequence)); 142 printf("source = %x\n",ntohs(udp->source)); 143 printf("dest = %x\n",ntohs(udp->dest)) [all...] |
/external/ppp/pppd/plugins/rp-pppoe/ |
common.c | 48 UINT16_t len = ntohs(packet->length); 103 UINT16_t len = ntohs(packet->length); 281 len = (int) ntohs(packet->length); 449 ntohs(conn->cookie.length) + TAG_HDR_SIZE); 450 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE); 451 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE; 452 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE; 457 ntohs(conn->relayId.length) + TAG_HDR_SIZE); 458 memcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE); 459 cursor += ntohs(conn->relayId.length) + TAG_HDR_SIZE [all...] |
debug.c | 88 int len = ntohs(packet->length); 123 (int) ntohs(packet->session), 142 dumpHex(fp, packet->payload, ntohs(packet->length));
|
discovery.c | 348 if (ntohs(packet.length) + HDR_SIZE > len) { 350 (unsigned int) ntohs(packet.length)); 461 ntohs(conn->cookie.length) + TAG_HDR_SIZE); 462 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE); 463 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE; 464 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE; 469 ntohs(conn->relayId.length) + TAG_HDR_SIZE); 470 memcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE); 471 cursor += ntohs(conn->relayId.length) + TAG_HDR_SIZE; 472 plen += ntohs(conn->relayId.length) + TAG_HDR_SIZE [all...] |
/external/qemu/distrib/ext4_utils/src/ |
uuid.c | 59 uuid->time_mid = ntohs(uuid->time_mid); 60 uuid->time_hi_and_version = ntohs(uuid->time_hi_and_version);
|
/system/extras/ext4_utils/ |
uuid.c | 59 uuid->time_mid = ntohs(uuid->time_mid); 60 uuid->time_hi_and_version = ntohs(uuid->time_hi_and_version);
|
/external/ipsec-tools/src/racoon/ |
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);
|
isakmp_newg.c | 153 len = sizeof(isakmp->msgid) + ntohs(sa->h.len); 161 memcpy(buf->v + sizeof(isakmp->msgid), sa, ntohs(sa->h.len)); 177 plogdump(LLV_DEBUG, r_hash, ntohs(hash->h.len) - sizeof(*hash)));
|
/external/tcpdump/ |
print-isakmp.c | 845 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))); 1116 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4)); 1117 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) { 1119 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4)) 1122 return (u_char *)ext + ntohs(e.len); 1140 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4)) [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/test/ |
RTPjitter.cc | 145 len = ntohs(*((uint16_t *)(rtp_vec + rtp_len))); 166 len = ntohs(*((uint16_t *) packet_ptr[k-1])); 185 ntohs(*((uint16_t*) temp_packet)), 187 ntohs(*((uint16_t*) temp_packet))) {
|
NETEQTEST_DummyRTPpacket.cc | 42 length = ntohs(length); 49 packetLen = ntohs(plen);
|
/external/iptables/extensions/ |
libip6t_MASQUERADE.c | 110 printf("%hu", ntohs(r->min_proto.tcp.port)); 112 printf("-%hu", ntohs(r->max_proto.tcp.port)); 125 printf(" --to-ports %hu", ntohs(r->min_proto.tcp.port)); 127 printf("-%hu", ntohs(r->max_proto.tcp.port));
|
libip6t_REDIRECT.c | 113 printf("%hu", ntohs(range->min_proto.tcp.port)); 115 printf("-%hu", ntohs(range->max_proto.tcp.port)); 127 printf("%hu", ntohs(range->min_proto.tcp.port)); 129 printf("-%hu", ntohs(range->max_proto.tcp.port));
|
libipt_MASQUERADE.c | 112 printf("%hu", ntohs(r->min.tcp.port)); 114 printf("-%hu", ntohs(r->max.tcp.port)); 128 printf(" --to-ports %hu", ntohs(r->min.tcp.port)); 130 printf("-%hu", ntohs(r->max.tcp.port));
|
libipt_REDIRECT.c | 115 printf("%hu", ntohs(r->min.tcp.port)); 117 printf("-%hu", ntohs(r->max.tcp.port)); 130 printf("%hu", ntohs(r->min.tcp.port)); 132 printf("-%hu", ntohs(r->max.tcp.port));
|
libxt_TPROXY.c | 56 ntohs(info->lport), (unsigned int)info->mark_value, 69 ntohs(info->lport), (unsigned int)info->mark_value, 82 ntohs(info->lport), (unsigned int)info->mark_value, 90 printf(" --on-port %u", ntohs(info->lport)); 103 printf(" --on-port %u", ntohs(info->lport)); 115 printf(" --on-port %u", ntohs(info->lport));
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/opentype/ |
OpenTypeTypes.h | 36 operator int16_t() const { return static_cast<int16_t>(ntohs(v)); } 42 operator uint16_t() const { return ntohs(v); }
|
/system/core/libnetutils/ |
packet.c | 188 } else if (nread < ntohs(packet.ip.tot_len)) { 190 ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len)); 198 ALOGD("UDP dest port (%d) is not DHCP client", ntohs(packet.udp.dest)); 220 dhcp_size = ntohs(packet.udp.len) - sizeof(packet.udp); 223 nread = ntohs(packet.ip.tot_len);
|
/external/chromium_org/third_party/brotli/src/woff2/ |
buffer.h | 32 #define ntohs(x) _byteswap_ushort (x) macro 105 *value = ntohs(*value);
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/tools/ |
rtp_file_source.cc | 56 length = ntohs(length); 63 plen = ntohs(plen);
|