/third_party/lwip/src/include/lwip/ |
D | ip6_addr.h | 83 #define IP6_ADDR_BLOCK1(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[0]) >> 16) & 0xffff)) 85 #define IP6_ADDR_BLOCK2(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[0])) & 0xffff)) 87 #define IP6_ADDR_BLOCK3(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[1]) >> 16) & 0xffff)) 89 #define IP6_ADDR_BLOCK4(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[1])) & 0xffff)) 91 #define IP6_ADDR_BLOCK5(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[2]) >> 16) & 0xffff)) 93 #define IP6_ADDR_BLOCK6(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[2])) & 0xffff)) 95 #define IP6_ADDR_BLOCK7(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[3]) >> 16) & 0xffff)) 97 #define IP6_ADDR_BLOCK8(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[3])) & 0xffff)) 142 #define ip6_addr_set_hton(dest, src) do{(dest)->addr[0] = (src) == NULL ? 0 : lwip_htonl((src)->add… 143 … (dest)->addr[1] = (src) == NULL ? 0 : lwip_htonl((src)->addr[1]); \ [all …]
|
D | def.h | 88 #define lwip_htonl(x) ((u32_t)(x)) macro 100 #ifndef lwip_htonl 101 u32_t lwip_htonl(u32_t x); 103 #define lwip_ntohl(x) lwip_htonl(x) 121 #define htonl(x) lwip_htonl(x)
|
D | ip4_addr.h | 124 lwip_htonl((src)->addr)))
|
/third_party/lwip/src/netif/ |
D | lowpan6_common.c | 521 ip6hdr->src.addr[3] = lwip_htonl(0xfe000000UL | (lowpan6_buffer[lowpan6_offset] << 8) | in lowpan6_decompress_hdr() 531 ip6hdr->src.addr[3] = lwip_htonl(0xfe000000UL | (src->addr[0] << 8) | src->addr[1]); in lowpan6_decompress_hdr() 533 ip6hdr->src.addr[2] = lwip_htonl(((src->addr[0] ^ 2) << 24) | (src->addr[1] << 16) | in lowpan6_decompress_hdr() 535 ip6hdr->src.addr[3] = lwip_htonl((src->addr[4] << 24) | (src->addr[5] << 16) | in lowpan6_decompress_hdr() 582 …ip6hdr->src.addr[3] = lwip_htonl(0xfe000000UL | (lowpan6_buffer[lowpan6_offset] << 8) | lowpan6_bu… in lowpan6_decompress_hdr() 590 ip6hdr->src.addr[3] = lwip_htonl(0xfe000000UL | (src->addr[0] << 8) | src->addr[1]); in lowpan6_decompress_hdr() 592 …ip6hdr->src.addr[2] = lwip_htonl(((src->addr[0] ^ 2) << 24) | (src->addr[1] << 16) | (src->addr[2]… in lowpan6_decompress_hdr() 593 …ip6hdr->src.addr[3] = lwip_htonl((src->addr[4] << 24) | (src->addr[5] << 16) | (src->addr[6] << 8)… in lowpan6_decompress_hdr() 620 ip6hdr->dest.addr[0] = lwip_htonl(0xff000000UL | (lowpan6_buffer[lowpan6_offset++] << 16)); in lowpan6_decompress_hdr() 622 ip6hdr->dest.addr[2] = lwip_htonl(lowpan6_buffer[lowpan6_offset++]); in lowpan6_decompress_hdr() [all …]
|
D | zepif.c | 200 zep->seq_num = lwip_htonl(state->seqno); in zepif_linkoutput()
|
/third_party/lwip/src/netif/ppp/ |
D | ipcp.c | 542 mask = lwip_htonl(mask); 948 cilong = lwip_htonl(l); \ in ipcp_ackci() 952 cilong = lwip_htonl(l); \ in ipcp_ackci() 993 cilong = lwip_htonl(l); \ in ipcp_ackci() 1009 cilong = lwip_htonl(l); \ in ipcp_ackci() 1026 cilong = lwip_htonl(l); \ in ipcp_ackci() 1107 ciaddr1 = lwip_htonl(l); \ in ipcp_nakci() 1109 ciaddr2 = lwip_htonl(l); \ in ipcp_nakci() 1136 ciaddr1 = lwip_htonl(l); \ in ipcp_nakci() 1150 cidnsaddr = lwip_htonl(l); \ in ipcp_nakci() [all …]
|
D | vj.c | 99 (f) = lwip_htonl(tmp_); \ 103 (f) = lwip_htonl(tmp_); \ 551 th->ackno = lwip_htonl(tmp); in vj_uncompress_tcp() 553 th->seqno = lwip_htonl(tmp); in vj_uncompress_tcp() 560 th->seqno = lwip_htonl(tmp); in vj_uncompress_tcp()
|
D | auth.c | 2124 a = lwip_htonl ((u32_t)np->n_net); 2153 a = lwip_htonl((lwip_ntohl(a) & mask) + offset); 2156 ip[n].mask = lwip_htonl(mask);
|
D | ppp.c | 1207 addr = lwip_htonl(addr); in get_mask() 1217 mask = PP_HTONL(0xffffff00UL) | lwip_htonl(nmask); in get_mask()
|
D | multilink.c | 507 slprintf(str, sizeof(str), "IP:%I", lwip_htonl(addr));
|
/third_party/lwip/src/core/ipv6/ |
D | ip6_addr.c | 124 addr->addr[3] = lwip_htonl(ip4.addr); 184 addr->addr[addr_index] = lwip_htonl(addr->addr[addr_index]); 253 current_block_value = lwip_htonl(addr->addr[current_block_index >> 1]); in ip6addr_ntoa_r() 272 next_block_value = lwip_htonl(addr->addr[(current_block_index + 1) >> 1]); in ip6addr_ntoa_r()
|
D | nd6.c | 196 valid_life = lwip_htonl(prefix_opt->valid_lifetime); in nd6_process_autoconfig_prefix() 197 pref_life = lwip_htonl(prefix_opt->preferred_lifetime); in nd6_process_autoconfig_prefix() 617 retrans_timer = lwip_htonl(ra_hdr->retrans_timer); in nd6_input() 620 reachable_time = lwip_htonl(ra_hdr->reachable_time); in nd6_input() 695 mtu32 = lwip_htonl(mtu_opt->mtu); in nd6_input() 729 valid_life = lwip_htonl(prefix_opt->valid_lifetime); in nd6_input() 927 pmtu = lwip_htonl(icmp6hdr->data); in nd6_input()
|
D | icmp6.c | 411 icmp6hdr->data = lwip_htonl(data); in icmp6_send_response_with_addrs_and_netif()
|
/third_party/lwip/src/core/ |
D | def.c | 82 #if !defined(lwip_htonl) 90 lwip_htonl(u32_t n) in lwip_htonl() function
|
D | tcp_out.c | 211 seg->tcphdr->seqno = lwip_htonl(seqno); in tcp_create_segment() 1158 opts[1] = lwip_htonl(sys_now()); in tcp_build_timestamp_option() 1159 opts[2] = lwip_htonl(pcb->ts_recent); in tcp_build_timestamp_option() 1219 *(opts++) = lwip_htonl(pcb->rcv_sacks[i].left); in tcp_build_sack_option() 1220 *(opts++) = lwip_htonl(pcb->rcv_sacks[i].right); in tcp_build_sack_option() 1490 seg->tcphdr->ackno = lwip_htonl(pcb->rcv_nxt); in tcp_output_segment() 1558 lwip_htonl(seg->tcphdr->seqno), lwip_htonl(seg->tcphdr->seqno) + in tcp_output_segment() 1846 tcphdr->ackno = lwip_htonl(ackno); in tcp_output_alloc_header_common() 2012 p = tcp_output_alloc_header_common(ackno, optlen, 0, lwip_htonl(seqno), local_port, in tcp_rst() 2055 p = tcp_output_alloc_header(pcb, optlen, 0, lwip_htonl(pcb->snd_nxt)); in tcp_send_empty_ack() [all …]
|
D | netif.c | 1656 ip_2_ip6(&netif->ip6_addr[0])->addr[2] = lwip_htonl((((u32_t)(netif->hwaddr[0] ^ 0x02)) << 24) | 1660 ip_2_ip6(&netif->ip6_addr[0])->addr[3] = lwip_htonl((u32_t)(0xfeul << 24) | 1674 …ip_2_ip6(&netif->ip6_addr[0])->addr[addr_index] |= lwip_htonl(((u32_t)(netif->hwaddr[netif->hwaddr…
|
/third_party/lwip/src/core/ipv4/ |
D | ip4_addr.c | 96 u32_t nm_hostorder = lwip_htonl(netmask); in ip4_addr_netmask_valid() 255 ip4_addr_set_u32(addr, lwip_htonl(val)); in ip4addr_aton()
|
D | autoip.c | 89 lwip_htonl(AUTOIP_RANGE_START + ((u32_t)(((u8_t)(netif->hwaddr[4])) | \ 190 ip4_addr_set_u32(ipaddr, lwip_htonl(addr)); in autoip_create_addr()
|
D | dhcp.c | 348 …ip_addr_set_ip4_u32(&dhcp->server_ip_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_… in dhcp_handle_offer() 725 …ip4_addr_set_u32(&dhcp->offered_sn_mask, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SU… 733 …ip4_addr_set_u32(&dhcp->offered_gw_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_RO… 739 …ip4_addr_set_u32(&ntp_server_addrs[n], lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_NTP_… 748 …ip_addr_set_ip4_u32_val(dns_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_DNS_SERVE… 1736 dhcp_set_option_value(dhcp, decode_idx, lwip_htonl(value)); 1999 msg_out->xid = lwip_htonl(dhcp->xid);
|
/third_party/lwip/test/unit/ip4/ |
D | test_ip4.c | 43 iphdr->src.addr = lwip_htonl(lwip_htonl(iphdr->src.addr) + 1); in create_ip4_input_fragment()
|
/third_party/lwip/src/include/netif/ppp/ |
D | eui64.h | 91 (e).e32[1] = lwip_htonl(l); \
|
/third_party/lwip/src/apps/lwiperf/ |
D | lwiperf.c | 293 u32_t time = (u32_t) - (s32_t)lwip_htonl(conn->settings.amount); in lwiperf_tcp_client_send_more() 302 u32_t amount_bytes = lwip_htonl(conn->settings.amount); in lwiperf_tcp_client_send_more() 443 u16_t remote_port = (u16_t)lwip_htonl(conn->settings.remote_port); in lwiperf_tx_start_passive()
|
/third_party/lwip/src/include/lwip/prot/ |
D | ip6.h | 106 #define IP6H_VTCFL_SET(hdr, v, tc, fl) (hdr)->_v_tc_fl = (lwip_htonl((((u32_t)(v)) << 28) | (((u32_…
|
/third_party/lwip/src/apps/sntp/ |
D | sntp.c | 347 sec = lwip_htonl((u32_t)secs); in sntp_initialize_request() 348 frac = lwip_htonl(frac); in sntp_initialize_request()
|
/third_party/lwip/src/include/lwip/priv/ |
D | tcp_priv.h | 311 #define TCP_BUILD_MSS_OPTION(mss) lwip_htonl(0x02040000 | ((mss) & 0xFFFF))
|