/external/ppp/pppd/plugins/rp-pppoe/ |
D | common.c | 47 UINT16_t len = ntohs(packet->length); in parsePacket() 148 ntohs(conn->cookie.length) + TAG_HDR_SIZE); in sendPADT() 149 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE); in sendPADT() 150 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE; in sendPADT() 151 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE; in sendPADT() 156 ntohs(conn->relayId.length) + TAG_HDR_SIZE); in sendPADT() 157 memcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE); in sendPADT() 158 cursor += ntohs(conn->relayId.length) + TAG_HDR_SIZE; in sendPADT() 159 plen += ntohs(conn->relayId.length) + TAG_HDR_SIZE; in sendPADT() 173 int len = ntohs(packet->length); in pppoe_printpkt() [all …]
|
D | discovery.c | 173 mru = ntohs(mru); in parsePADOTags() 223 mru = ntohs(mru); in parsePADSTags() 394 if (ntohs(packet.length) + HDR_SIZE > len) { in waitForPADO() 396 (unsigned int) ntohs(packet.length)); in waitForPADO() 509 ntohs(conn->cookie.length) + TAG_HDR_SIZE); in sendPADR() 510 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE); in sendPADR() 511 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE; in sendPADR() 512 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE; in sendPADR() 517 ntohs(conn->relayId.length) + TAG_HDR_SIZE); in sendPADR() 518 memcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE); in sendPADR() [all …]
|
D | debug.c | 88 int len = ntohs(packet->length); in dumpPacket() 125 (int) ntohs(packet->session), in dumpPacket() 144 dumpHex(fp, packet->payload, ntohs(packet->length)); in dumpPacket()
|
/external/android-clat/ |
D | dump.c | 44 frag_flags = ntohs(header->frag_off); in dump_ip() 50 printf("tot_len = %x\n",ntohs(header->tot_len)); in dump_ip() 51 printf("id = %x\n",ntohs(header->id)); in dump_ip() 65 printf("checksum = %x\n",ntohs(header->check)); in dump_ip() 80 printf("payload len = %x\n",ntohs(header->ip6_plen)); in dump_ip6() 105 printf("icmp.checksum = %x\n",ntohs(icmp->checksum)); in dump_icmp() 107 printf("icmp.un.echo.id = %x\n",ntohs(icmp->un.echo.id)); in dump_icmp() 108 printf("icmp.un.echo.sequence = %x\n",ntohs(icmp->un.echo.sequence)); in dump_icmp() 142 printf("source = %x\n",ntohs(udp->source)); in dump_udp_generic() 143 printf("dest = %x\n",ntohs(udp->dest)); in dump_udp_generic() [all …]
|
/external/tcpdump/ |
D | print-isakmp.c | 1295 ND_PRINT((ndo," key len=%d", ntohs(e.len) - 4)); in ikev1_ke_print() 1296 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) { in ikev1_ke_print() 1298 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4)) in ikev1_ke_print() 1301 return (u_char *)ext + ntohs(e.len); in ikev1_ke_print() 1372 ND_PRINT((ndo," port=%d", ntohs(id.port))); in ikev1_id_print() 1558 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4)); in ikev1_hash_print() 1559 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) { in ikev1_hash_print() 1561 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4)) in ikev1_hash_print() 1564 return (u_char *)ext + ntohs(e.len); in ikev1_hash_print() 1582 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4)); in ikev1_sig_print() [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 …]
|
D | isakmp_inf.c | 195 if (msg->l < sizeof(*isakmp) + ntohs(gen->len) + sizeof(*nd)) { 203 nd = (struct isakmp_gen *) ((caddr_t) gen + ntohs(gen->len)); 206 if (ntohs(nd->len) > msg->l - (sizeof(struct isakmp) + 207 ntohs(gen->len))) { 213 if (ntohs(nd->len) < sizeof(*nd)) { 219 payload = vmalloc(ntohs(nd->len)); 226 memcpy(payload->v, (caddr_t) nd, ntohs(nd->len)); 238 if (ntohs(gen->len) - sizeof(struct isakmp_gen) != hash->l) { 342 type = ntohs(notify->type); 405 if (ntohs(notify->h.len) < sizeof(*notify) + notify->spi_size) { [all …]
|
/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 | libip6t_MASQUERADE.c | 110 printf("%hu", ntohs(r->min_proto.tcp.port)); in MASQUERADE_print() 112 printf("-%hu", ntohs(r->max_proto.tcp.port)); in MASQUERADE_print() 125 printf(" --to-ports %hu", ntohs(r->min_proto.tcp.port)); in MASQUERADE_save() 127 printf("-%hu", ntohs(r->max_proto.tcp.port)); in MASQUERADE_save()
|
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 | libip6t_REDIRECT.c | 113 printf("%hu", ntohs(range->min_proto.tcp.port)); in REDIRECT_print() 115 printf("-%hu", ntohs(range->max_proto.tcp.port)); in REDIRECT_print() 127 printf("%hu", ntohs(range->min_proto.tcp.port)); in REDIRECT_save() 129 printf("-%hu", ntohs(range->max_proto.tcp.port)); in REDIRECT_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/src/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/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/kernel-headers/original/uapi/linux/ |
D | tipc_config.h | 266 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK() 272 (ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type); in TLV_CHECK() 277 return ntohs(tlv->tlv_len); in TLV_GET_LEN() 287 return (ntohs(tlv->tlv_type) == type); in TLV_CHECK_TYPE() 343 __u16 tlv_space = TLV_ALIGN(ntohs(list->tlv_ptr->tlv_len)); in TLV_LIST_STEP()
|
/external/toybox/toys/pending/ |
D | dhcp6.c | 309 type = ntohs(type); in get_msg_ptr() 311 length = ntohs(length); in get_msg_ptr() 316 type = ntohs(*((uint16_t*)data)); in get_msg_ptr() 317 length = ntohs(*((uint16_t*)(data+2))); in get_msg_ptr() 362 iana_len = ntohs(*((uint16_t*)(t+2))); in parse_ia_na() 370 uint16_t sub_type = ntohs(*((uint16_t*)(t))); in parse_ia_na() 374 content_len = ntohs(*((uint16_t*)(t+2))); in parse_ia_na() 394 content_len = ntohs(*((uint16_t*)(t+2))); in parse_ia_na() 395 dhcp_data.status_code = ntohs(*((uint16_t*)(t+4))); in parse_ia_na() 400 content_len = ntohs(*((uint16_t*)(t+2))); in parse_ia_na() [all …]
|
/external/webrtc/webrtc/modules/audio_coding/neteq/test/ |
D | RTPjitter.cc | 153 len = ntohs(*((uint16_t *)(rtp_vec + rtp_len))); in main() 177 len = ntohs(*((uint16_t *) packet_ptr[k-1])); in main() 197 ntohs(*((uint16_t*) temp_packet)), in main() 199 ntohs(*((uint16_t*) temp_packet))) { in main()
|
/external/dnsmasq/src/ |
D | rfc1035.c | 343 for (q = ntohs(header->qdcount); q != 0; q--) in skip_questions() 382 for (q = ntohs(header->qdcount); q != 0; q--) in questions_crc() 426 …if (!(ansp = skip_section(ansp, ntohs(header->ancount) + ntohs(header->nscount) + ntohs(header->ar… in resize_packet() 431 if (pheader && ntohs(header->arcount) == 0) in resize_packet() 449 int i, arcount = ntohs(header->arcount); in find_pseudoheader() 460 for (i = ntohs(header->qdcount); i != 0; i--) in find_pseudoheader() 482 if (!(ansp = skip_section(ansp, ntohs(header->ancount) + ntohs(header->nscount), header, plen))) in find_pseudoheader() 592 !(p = do_doctor(p, ntohs(header->ancount), header, qlen))) in find_soa() 595 for (i = ntohs(header->nscount); i != 0; i--) in find_soa() 628 if (!do_doctor(p, ntohs(header->arcount), header, qlen)) in find_soa() [all …]
|
/external/wpa_supplicant_8/src/wps/ |
D | http_client.c | 62 ntohs(c->dst.sin_port)); in http_client_got_response() 68 ntohs(c->dst.sin_port)); in http_client_got_response() 93 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port), in http_client_tx_ready() 116 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port)); in http_client_tx_ready() 270 ntohs(dst.sin_port)); in http_client_url()
|
/external/c-ares/ |
D | ares_nowarn.h | 49 # undef ntohs 50 # define ntohs(a) aresx_ntohs((a)) macro
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | ctrl_iface_udp.c | 101 ntohs(from->sin6_port)); in wpa_supplicant_ctrl_iface_attach() 104 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach() 132 ntohs(from->sin6_port)); 138 ntohs(from->sin_port)); 179 ntohs(from->sin6_port)); 185 ntohs(from->sin_port)); 540 ntohs(dst->addr.sin6_port)); 544 ntohs(dst->addr.sin_port));
|
/external/libpcap/ |
D | pcap-dag.c | 335 rlen = ntohs(header->rlen); in dag_read() 357 if (pd->stat.ps_drop > (UINT_MAX - ntohs(header->lctr))) { in dag_read() 360 pd->stat.ps_drop += ntohs(header->lctr); in dag_read() 386 packet_len = ntohs(header->wlen) + dag_record_size; in dag_read() 425 packet_len = ntohs(header->wlen); in dag_read() 435 packet_len = ntohs(header->wlen); in dag_read() 470 packet_len = ntohs(header->wlen); in dag_read() 485 packet_len = ntohs(header->wlen); in dag_read() 497 packet_len = ntohs(header->wlen); in dag_read() 525 packet_len = ntohs(header->wlen); in dag_read()
|
/external/webrtc/webrtc/modules/audio_coding/test/ |
D | RTPFile.cc | 164 port = ntohs(port); in ReadHeader() 166 padding = ntohs(padding); in ReadHeader() 202 lengthBytes = ntohs(lengthBytes); in Read() 203 plen = ntohs(plen); in Read()
|