/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 …]
|
/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 | 1284 ND_PRINT((ndo," key len=%d", ntohs(e.len) - 4)); in ikev1_ke_print() 1285 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) { in ikev1_ke_print() 1287 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev1_ke_print() 1290 return (const u_char *)ext + ntohs(e.len); in ikev1_ke_print() 1361 ND_PRINT((ndo," port=%d", ntohs(doi_id.port))); in ikev1_id_print() 1543 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4)); in ikev1_hash_print() 1544 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) { in ikev1_hash_print() 1546 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev1_hash_print() 1549 return (const u_char *)ext + ntohs(e.len); in ikev1_hash_print() 1567 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 …]
|
/external/iptables/extensions/ |
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() 142 xt_xlate_add(xl, " to :%hu", ntohs(r->min_proto.tcp.port)); in MASQUERADE_xlate() 144 xt_xlate_add(xl, "-%hu", ntohs(r->max_proto.tcp.port)); in MASQUERADE_xlate()
|
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() 147 xt_xlate_add(xl, " to :%hu", ntohs(r->min.tcp.port)); in MASQUERADE_xlate() 149 xt_xlate_add(xl, "-%hu", ntohs(r->max.tcp.port)); in MASQUERADE_xlate()
|
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() 142 ntohs(range->min_proto.tcp.port)); in REDIRECT_xlate() 145 ntohs(range->max_proto.tcp.port)); in REDIRECT_xlate()
|
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() 146 xt_xlate_add(xl, "redirect to :%hu", ntohs(r->min.tcp.port)); in REDIRECT_xlate() 148 xt_xlate_add(xl, "-%hu ", ntohs(r->max.tcp.port)); in REDIRECT_xlate()
|
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()
|
/external/syslinux/core/lwip/src/netif/ppp/ |
D | vj.c | 112 u_short tmp = ntohs(f) + (((u_short)cp[1] << 8) | cp[2]); \ 116 u_short tmp = ntohs(f) + (u_short)*cp++; \ 274 deltaS = ntohs(th->urgp); in vj_compress_tcp() 285 if ((deltaS = (u_short)(ntohs(th->wnd) - ntohs(oth->wnd))) != 0) { in vj_compress_tcp() 319 ntohs(IPH_LEN(&cs->cs_ip)) == hlen) { in vj_compress_tcp() 334 if (deltaS == deltaA && deltaS == ntohs(IPH_LEN(&cs->cs_ip)) - hlen) { in vj_compress_tcp() 342 if (deltaS == ntohs(IPH_LEN(&cs->cs_ip)) - hlen) { in vj_compress_tcp() 350 deltaS = (u_short)(ntohs(IPH_ID(ip)) - ntohs(IPH_ID(&cs->cs_ip))); in vj_compress_tcp() 362 deltaA = ntohs(th->chksum); in vj_compress_tcp() 515 register u32_t i = ntohs(IPH_LEN(&cs->cs_ip)) - cs->cs_hlen; in vj_uncompress_tcp() [all …]
|
/external/syslinux/gpxe/src/net/ |
D | udp.c | 79 udp, ntohs ( udp->local.st_port ) ); in udp_bind() 86 udp, ntohs ( udp->local.st_port ) ); in udp_bind() 222 ntohs ( udphdr->src ), ntohs ( udphdr->dest ), in udp_tx() 223 ntohs ( udphdr->len ) ); in udp_tx() 287 ulen = ntohs ( udphdr->len ); in udp_rx() 319 ntohs ( udphdr->dest ), ntohs ( udphdr->src ), ulen ); in udp_rx() 324 ntohs ( udphdr->dest ) ); in udp_rx()
|
/external/ltp/utils/sctp/testlib/ |
D | sctputil.h | 91 ntohs((addr).s6_addr16[0]), \ 92 ntohs((addr).s6_addr16[1]), \ 93 ntohs((addr).s6_addr16[2]), \ 94 ntohs((addr).s6_addr16[3]), \ 95 ntohs((addr).s6_addr16[4]), \ 96 ntohs((addr).s6_addr16[5]), \ 97 ntohs((addr).s6_addr16[6]), \ 98 ntohs((addr).s6_addr16[7])
|
/external/syslinux/gpxe/src/net/udp/ |
D | dns.c | 119 ( ntohs( *((uint16_t *)rname) ) & ~0xc000 )); in dns_name_cmp() 170 for ( i = ntohs ( reply->qdcount ) ; i > 0 ; i-- ) { in dns_find_rr() 175 for ( i = ntohs ( reply->ancount ) ; i > 0 ; i-- ) { in dns_find_rr() 182 ntohs ( rr_info->common.rdlength ) ); in dns_find_rr() 271 ( ntohs ( *((uint16_t *)name) ) & ~0xc000 ) ); in dns_decompress_name() 349 "(wanted %d)\n", dns, ntohs ( reply->id ), in dns_xfer_deliver_raw() 350 ntohs ( dns->query.dns.id ) ); in dns_xfer_deliver_raw() 354 DBGC ( dns, "DNS %p received reply ID %d\n", dns, ntohs ( reply->id )); in dns_xfer_deliver_raw() 405 dns, ntohs ( rr_info->common.type ) ); in dns_xfer_deliver_raw()
|
/external/syslinux/core/lwip/src/core/ipv4/ |
D | ip.c | 272 iphdr_len = ntohs(IPH_LEN(iphdr)); 390 ntohs(udphdr->dest))); 440 …ntohs(IPH_ID(iphdr)), p->tot_len, ntohs(IPH_LEN(iphdr)), !!(IPH_OFFSET(iphdr) & PP_HTONS(IP_MF)), … 451 ntohs(IPH_OFFSET(iphdr)))); 830 ntohs(IPH_LEN(iphdr)))); 833 ntohs(IPH_ID(iphdr)), 834 ntohs(IPH_OFFSET(iphdr)) >> 15 & 1, 835 ntohs(IPH_OFFSET(iphdr)) >> 14 & 1, 836 ntohs(IPH_OFFSET(iphdr)) >> 13 & 1, 837 ntohs(IPH_OFFSET(iphdr)) & IP_OFFMASK)); [all …]
|
/external/syslinux/gpxe/src/core/ |
D | proto_eth_slow.c | 150 printf(" sys_pri: %hx", ntohs(pkt->actor.system_priority)); in print_lacpdu() 152 printf(" key: %hx", ntohs(pkt->actor.key)); in print_lacpdu() 153 printf(" port_pri: %hx", ntohs(pkt->actor.port_priority)); in print_lacpdu() 154 printf(" port: %hx\n", ntohs(pkt->actor.port)); in print_lacpdu() 164 printf(" sys_pri: %hx", ntohs(pkt->partner.system_priority)); in print_lacpdu() 166 printf(" key: %hx", ntohs(pkt->partner.key)); in print_lacpdu() 167 printf(" port_pri: %hx", ntohs(pkt->partner.port_priority)); in print_lacpdu() 168 printf(" port: %hx\n", ntohs(pkt->partner.port)); in print_lacpdu() 178 printf(" max_delay: %hx", ntohs(pkt->collector_max_delay)); in print_lacpdu()
|
/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/syslinux/core/lwip/src/netif/ |
D | undiif.c | 265 if (ntohs(ethhdr->type) == ETHTYPE_ARP) { in snprintf_arp_hdr() 294 if (ntohs(ethhdr->type) == ETHTYPE_IP) { in snprintf_ip_hdr() 304 ntohs(IPH_LEN(iphdr)), ntohs(IPH_ID(iphdr)), in snprintf_ip_hdr() 305 IPH_PROTO(iphdr), ntohs(IPH_CHKSUM(iphdr)), in snprintf_ip_hdr() 319 if (ntohs(ethhdr->type) == ETHTYPE_IP) { in snprintf_icmp_hdr() 327 icmphdr->type, icmphdr->code, ntohs(icmphdr->chksum), in snprintf_icmp_hdr() 328 ntohs(icmphdr->id), ntohs(icmphdr->seqno), in snprintf_icmp_hdr() 344 if (ntohs(ethhdr->type) == ETHTYPE_IP) { in snprintf_tcp_hdr() 348 u16_t lenfl = ntohs(tcphdr->_hdrlen_rsvd_flags); in snprintf_tcp_hdr() 352 ntohs(tcphdr->src), ntohs(tcphdr->dest), in snprintf_tcp_hdr() [all …]
|
/external/syslinux/core/lwip/src/include/lwip/ |
D | def.h | 74 #ifdef ntohs 75 #undef ntohs 82 #define ntohs(x) lwip_ntohs(x) macro
|
/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/wpa_supplicant_8/src/ap/ |
D | fils_hlp.c | 26 sum += ntohs(*pos++); in ip_checksum() 28 sum += ntohs(*pos << 8); in ip_checksum() 142 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in fils_dhcp_request() 176 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), (int) res); in fils_dhcp_handler() 455 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), in fils_process_hlp_dhcp() 485 sport = ntohs(udph->uh_sport); in fils_process_hlp_udp() 486 dport = ntohs(udph->uh_dport); in fils_process_hlp_udp() 487 ulen = ntohs(udph->uh_ulen); in fils_process_hlp_udp() 490 sport, dport, ulen, ntohs(udph->uh_sum)); in fils_process_hlp_udp() 519 tot_len = ntohs(iph->tot_len); in fils_process_hlp_ip()
|
/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/syslinux/com32/libupload/ |
D | upload_tftp.c | 99 if (ntohs(xb[0]) == TFTP_ACK && in send_ack_packet() 100 ntohs(xb[1]) == tftp->seq) { in send_ack_packet() 104 } else if (ntohs(xb[0]) == TFTP_ERROR) { in send_ack_packet() 109 err=-ntohs(te->errcode); // Return the associated error code in send_ack_packet()
|