/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 | 47 frag_flags = ntohs(header->frag_off); in dump_ip() 53 printf("tot_len = %x\n", ntohs(header->tot_len)); in dump_ip() 54 printf("id = %x\n", ntohs(header->id)); in dump_ip() 68 printf("checksum = %x\n", ntohs(header->check)); in dump_ip() 83 printf("payload len = %x\n", ntohs(header->ip6_plen)); in dump_ip6() 108 printf("icmp.checksum = %x\n", ntohs(icmp->checksum)); in dump_icmp() 110 printf("icmp.un.echo.id = %x\n", ntohs(icmp->un.echo.id)); in dump_icmp() 111 printf("icmp.un.echo.sequence = %x\n", ntohs(icmp->un.echo.sequence)); in dump_icmp() 145 printf("source = %x\n", ntohs(udp->source)); in dump_udp_generic() 146 printf("dest = %x\n", ntohs(udp->dest)); in dump_udp_generic() [all …]
|
/external/mtpd/ |
D | l2tp.c | 205 ntohs(p[1]) != incoming.length || p[2] != local_tunnel) { in recv_packet() 212 incoming.message = ntohs(p[9]); in recv_packet() 218 if ((uint16_t)(ntohs(p[4]) - remote_sequence) > 32767) { in recv_packet() 225 if (ntohs(p[5]) == local_sequence) { in recv_packet() 231 if (ntohs(p[4]) != remote_sequence || !acknowledged) { in recv_packet() 249 uint16_t flag = ntohs(p->flag); in get_attribute_raw() 330 (unsigned)ntohs(local_tunnel)); in l2tp_connect() 435 tunnel_sa.pppol2tp.s_tunnel = ntohs(local_tunnel); in create_pppox_ol2tp() 437 tunnel_sa.pppol2tp.d_tunnel = ntohs(remote_tunnel); in create_pppox_ol2tp() 458 session_sa.pppol2tp.s_tunnel = ntohs(local_tunnel); in create_pppox_ol2tp() [all …]
|
D | pptp.c | 199 incoming.expect = ntohs(incoming.header.length); in recv_packet() 216 (unsigned)ntohs(incoming.header.type)); in recv_packet() 394 src.sa_addr.pptp.call_id = ntohs(local); in create_pppox_pptp() 399 dst.sa_addr.pptp.call_id = ntohs(remote); in create_pppox_pptp() 434 incoming.message = ntohs(incoming.message); in pptp_process() 454 "(local = %u)", (unsigned)ntohs(local)); in pptp_process() 480 (unsigned)ntohs(remote)); in pptp_process() 510 (unsigned)ntohs(remote)); in pptp_process() 519 (unsigned)ntohs(remote)); in pptp_process() 540 "Sending ICRP with error", (unsigned)ntohs(remote), in pptp_process() [all …]
|
/external/llvm-project/lldb/source/Host/common/ |
D | SocketAddress.cpp | 58 tmp, sizeof(tmp), "%x:%x:%x:%x:%x:%x:%x:%x", ntohs(src16[0]), in inet_ntop() 59 ntohs(src16[1]), ntohs(src16[2]), ntohs(src16[3]), ntohs(src16[4]), in inet_ntop() 60 ntohs(src16[5]), ntohs(src16[6]), ntohs(src16[7])); in inet_ntop() 156 return ntohs(m_socket_addr.sa_ipv4.sin_port); in GetPort() 158 return ntohs(m_socket_addr.sa_ipv6.sin6_port); in GetPort()
|
/external/tcpdump/ |
D | print-isakmp.c | 1314 ND_PRINT((ndo," key len=%d", ntohs(e.len) - 4)); in ikev1_ke_print() 1315 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) { in ikev1_ke_print() 1318 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev1_ke_print() 1321 return (const u_char *)ext + ntohs(e.len); in ikev1_ke_print() 1391 ND_PRINT((ndo," port=%d", ntohs(doi_id.port))); in ikev1_id_print() 1575 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4)); in ikev1_hash_print() 1576 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) { in ikev1_hash_print() 1579 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev1_hash_print() 1582 return (const u_char *)ext + ntohs(e.len); in ikev1_hash_print() 1600 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 | 117 printf("%hu", ntohs(r->min_proto.tcp.port)); in MASQUERADE_print() 119 printf("-%hu", ntohs(r->max_proto.tcp.port)); in MASQUERADE_print() 135 printf(" --to-ports %hu", ntohs(r->min_proto.tcp.port)); in MASQUERADE_save() 137 printf("-%hu", ntohs(r->max_proto.tcp.port)); in MASQUERADE_save() 155 xt_xlate_add(xl, " to :%hu", ntohs(r->min_proto.tcp.port)); in MASQUERADE_xlate() 157 xt_xlate_add(xl, "-%hu", ntohs(r->max_proto.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 | 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_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 | libipt_MASQUERADE.c | 119 printf("%hu", ntohs(r->min.tcp.port)); in MASQUERADE_print() 121 printf("-%hu", ntohs(r->max.tcp.port)); in MASQUERADE_print() 138 printf(" --to-ports %hu", ntohs(r->min.tcp.port)); in MASQUERADE_save() 140 printf("-%hu", ntohs(r->max.tcp.port)); in MASQUERADE_save() 160 xt_xlate_add(xl, " to :%hu", ntohs(r->min.tcp.port)); in MASQUERADE_xlate() 162 xt_xlate_add(xl, "-%hu", ntohs(r->max.tcp.port)); in MASQUERADE_xlate()
|
D | libipt_DNAT.c | 217 printf("%hu", ntohs(r->min.tcp.port)); in print_range() 219 printf("-%hu", ntohs(r->max.tcp.port)); in print_range() 268 xt_xlate_add(xl, ":%hu", ntohs(r->min.tcp.port)); in print_range_xlate() 270 xt_xlate_add(xl, "-%hu", ntohs(r->max.tcp.port)); in print_range_xlate() 445 printf("%hu", ntohs(range->min_proto.tcp.port)); in print_range_v2() 447 printf("-%hu", ntohs(range->max_proto.tcp.port)); in print_range_v2() 449 printf("/%hu", ntohs(range->base_proto.tcp.port)); in print_range_v2() 489 xt_xlate_add(xl, ":%hu", ntohs(range->min_proto.tcp.port)); in print_range_xlate_v2() 491 xt_xlate_add(xl, "-%hu", ntohs(range->max_proto.tcp.port)); in print_range_xlate_v2() 493 xt_xlate_add(xl, ";%hu", ntohs(range->base_proto.tcp.port)); in print_range_xlate_v2()
|
/external/strace/tests-mx32/ |
D | netlink_sock_diag.c | 403 ntohs(req.id.idiag_sport), in test_inet_diag_sockid() 404 ntohs(req.id.idiag_dport), in test_inet_diag_sockid() 426 ntohs(req.id.idiag_sport), in test_inet_diag_sockid() 427 ntohs(req.id.idiag_dport), in test_inet_diag_sockid() 468 ntohs(req.id.idiag_sport), in test_inet_diag_req() 469 ntohs(req.id.idiag_dport), in test_inet_diag_req() 510 ntohs(req.id.idiag_sport), in test_inet_diag_req_v2() 511 ntohs(req.id.idiag_dport), in test_inet_diag_req_v2() 555 ntohs(msg.id.idiag_sport), in test_inet_diag_msg() 556 ntohs(msg.id.idiag_dport), in test_inet_diag_msg() [all …]
|
/external/strace/tests-m32/ |
D | netlink_sock_diag.c | 403 ntohs(req.id.idiag_sport), in test_inet_diag_sockid() 404 ntohs(req.id.idiag_dport), in test_inet_diag_sockid() 426 ntohs(req.id.idiag_sport), in test_inet_diag_sockid() 427 ntohs(req.id.idiag_dport), in test_inet_diag_sockid() 468 ntohs(req.id.idiag_sport), in test_inet_diag_req() 469 ntohs(req.id.idiag_dport), in test_inet_diag_req() 510 ntohs(req.id.idiag_sport), in test_inet_diag_req_v2() 511 ntohs(req.id.idiag_dport), in test_inet_diag_req_v2() 555 ntohs(msg.id.idiag_sport), in test_inet_diag_msg() 556 ntohs(msg.id.idiag_dport), in test_inet_diag_msg() [all …]
|
/external/strace/tests/ |
D | netlink_sock_diag.c | 403 ntohs(req.id.idiag_sport), in test_inet_diag_sockid() 404 ntohs(req.id.idiag_dport), in test_inet_diag_sockid() 426 ntohs(req.id.idiag_sport), in test_inet_diag_sockid() 427 ntohs(req.id.idiag_dport), in test_inet_diag_sockid() 468 ntohs(req.id.idiag_sport), in test_inet_diag_req() 469 ntohs(req.id.idiag_dport), in test_inet_diag_req() 510 ntohs(req.id.idiag_sport), in test_inet_diag_req_v2() 511 ntohs(req.id.idiag_dport), in test_inet_diag_req_v2() 555 ntohs(msg.id.idiag_sport), in test_inet_diag_msg() 556 ntohs(msg.id.idiag_dport), in test_inet_diag_msg() [all …]
|
/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/openscreen/platform/impl/ |
D | socket_address_posix_unittest.cc | 19 EXPECT_EQ(v4_address->sin_port, ntohs(80)); in TEST() 34 EXPECT_EQ(v6_address->sin6_port, ntohs(80)); in TEST() 49 address.sin_port = ntohs(80); in TEST() 70 address.sin6_port = ntohs(80); in TEST()
|
/external/usrsctp/programs/ |
D | discard_server.c | 78 port = ntohs(addr.sin.sin_port); 84 port = ntohs(addr.sin6.sin6_port); 96 port = ntohs(addr.sconn.sconn_port); 220 inet_ntop(AF_INET6, &addr.sin6_addr, name, INET6_ADDRSTRLEN), ntohs(addr.sin6_port), 230 inet_ntop(AF_INET6, &addr.sin6_addr, name, INET6_ADDRSTRLEN), ntohs(addr.sin6_port),
|
D | echo_server.c | 78 port = ntohs(addr.sin.sin_port); 84 port = ntohs(addr.sin6.sin6_port); 96 port = ntohs(addr.sconn.sconn_port); 235 inet_ntop(AF_INET6, &addr.sin6_addr, name, INET6_ADDRSTRLEN), ntohs(addr.sin6_port), 260 inet_ntop(AF_INET6, &addr.sin6_addr, name, INET6_ADDRSTRLEN), ntohs(addr.sin6_port),
|
/external/kernel-headers/original/uapi/linux/ |
D | tipc_config.h | 272 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK() 278 (ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type); in TLV_CHECK() 283 return ntohs(tlv->tlv_len); in TLV_GET_LEN() 293 return (ntohs(tlv->tlv_type) == type); in TLV_CHECK_TYPE() 351 __u16 tlv_space = TLV_ALIGN(ntohs(list->tlv_ptr->tlv_len)); in TLV_LIST_STEP()
|
/external/iptables/iptables/ |
D | xtables-monitor.c | 307 printf("MACPROTO=%04x ", ntohs(eh->h_proto)); in trace_print_packet() 343 printf("LEN=%d TOS=0x%x TTL=%d ID=%d", ntohs(iph->tot_len), iph->tos, iph->ttl, ntohs(iph->id)); in trace_print_packet() 351 if (ntohs(iph->frag_off) & 0x1fff) in trace_print_packet() 352 printf("FRAG:%u ", ntohs(iph->frag_off) & 0x1fff); in trace_print_packet() 383 ntohs(ip6h->ip6_plen) + sizeof(*iph), in trace_print_packet() 413 printf("SPORT=%d DPORT=%d ", ntohs(tcph->source), ntohs(tcph->dest)); in trace_print_packet() 418 printf("SPORT=%d DPORT=%d ", ntohs(tcph->source), ntohs(tcph->dest)); in trace_print_packet()
|