HomeSort by relevance Sort by last modified time
    Searched refs:ntohs (Results 1 - 25 of 306) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/tcpdump/
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))
print-ap1394.c 68 tok2str(ethertype_values,"Unknown", ntohs(fp->firewire_type)),
69 ntohs(fp->firewire_type));
71 (void)printf(", %s", tok2str(ethertype_values,"Unknown Ethertype (0x%04x)", ntohs(fp->firewire_type)));
105 ether_type = ntohs(fp->firewire_type);
print-ether.c 90 if (ntohs(ep->ether_type) <= ETHERMTU)
94 tok2str(ethertype_values,"Unknown", ntohs(ep->ether_type)),
95 ntohs(ep->ether_type));
97 if (ntohs(ep->ether_type) <= ETHERMTU)
100 (void)printf(", %s", tok2str(ethertype_values,"Unknown Ethertype (0x%04x)", ntohs(ep->ether_type)));
126 ether_type = ntohs(ep->ether_type);
225 ntohs(*(u_int16_t *)p) & 0xfff,
226 ntohs(*(u_int16_t *)p) >> 13,
227 (ntohs(*(u_int16_t *)p) & 0x1000) ? ", CFI" : "");
229 ether_type = ntohs(*(u_int16_t *)(p + 2))
    [all...]
print-isakmp.c 647 printf(" key len=%d", ntohs(e.len) - 4);
648 if (2 < vflag && 4 < ntohs(e.len)) {
650 if (!rawprint((caddr_t)(ext + 1), ntohs(e.len) - 4))
653 return (u_char *)ext + ntohs(e.len);
733 printf(" port=%d", ntohs(id.port));
913 printf(" len=%d", ntohs(e.len) - 4);
914 if (2 < vflag && 4 < ntohs(e.len)) {
916 if (!rawprint((caddr_t)(ext + 1), ntohs(e.len) - 4))
919 return (u_char *)ext + ntohs(e.len);
936 printf(" len=%d", ntohs(e.len) - 4)
    [all...]
print-symantec.c 55 etype = ntohs(sp->ether_type);
101 ether_type = ntohs(sp->ether_type);
  /external/bluetooth/bluedroid/gki/common/
gki_inet.h 23 #define htons ntohs
30 #define ntohs(n) (n) macro
37 extern UINT16 ntohs(UINT16 n);
  /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/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));
141 printf("source = %x\n",ntohs(udp->source));
142 printf("dest = %x\n",ntohs(udp->dest))
    [all...]
  /external/chromium_org/third_party/WebKit/Source/wtf/
ByteOrder.h 50 inline uint16_t ntohs(uint16_t x) { return x; } function
55 inline uint16_t ntohs(uint16_t x) { return x; }
60 inline uint16_t ntohs(uint16_t x) { return WTF::bswap16(x); }
  /external/kernel-headers/original/linux/byteorder/
generic.h 50 * ntohs(__u16 x)
146 #undef ntohs macro
156 extern __u16 ntohs(__be16);
169 #define ntohs(x) ___ntohs(x) macro
  /external/grub/netboot/
fsys_tftp.c 104 if (tr->opcode == ntohs (TFTP_ERROR))
107 ntohs (tr->u.err.errcode),
112 if (tr->opcode == ntohs (TFTP_OACK))
128 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 2;
170 iport, ntohs (tr->udp.src),
189 else if (tr->opcode == ntohs (TFTP_DATA))
194 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 4;
205 block = ntohs (tp.u.ack.block = tr->u.data.block);
217 oport = ntohs (tr->udp.src);
  /external/libppp/src/
tcpmss.c 130 if (ntohs(*mss) > maxmss) {
132 ntohs(*mss), maxmss);
161 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 &&
162 ntohs(pip->ip_len) == plen && hlen <= plen &&
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);
301 deltaS = (u_short) (ntohs(th->th_win) - ntohs(oth->th_win));
334 ntohs(cs->cs_ip.ip_len) == hlen)
350 deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
358 if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
366 deltaS = ntohs(ip->ip_id) - ntohs(cs->cs_ip.ip_id)
    [all...]
ip.c 241 datalen = ntohs(pip6->ip6_plen);
257 len = ntohs(pip->ip_off) & IP_OFFMASK; /* fragment offset */
273 datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2);
354 sport = ntohs(uh->uh_sport);
355 dport = ntohs(uh->uh_dport);
372 sport = ntohs(th->th_sport);
373 dport = ntohs(th->th_dport);
505 len = ntohs(uh->uh_ulen) - sizeof *uh;
515 *hptr++ = ntohs(*pktptr); /* Careful of macro side-effects ! */
543 qtype = dns_Qtype2Txt(ntohs(tmp))
    [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/kernel-headers/original/linux/
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])
  /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);
  /external/iptables/extensions/
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));
  /external/chromium_org/tools/android/fake_dns/
fake_dns.cc 138 uint16 id = ntohs(header.id);
139 uint16 flags = ntohs(header.flags);
140 uint16 qdcount = ntohs(header.qdcount);
141 uint16 ancount = ntohs(header.ancount);
142 uint16 nscount = ntohs(header.nscount);
143 uint16 arcount = ntohs(header.arcount);

Completed in 1090 milliseconds

1 2 3 4 5 6 7 8 91011>>