Home
last modified time | relevance | path

Searched refs:lwip_htonl (Results 1 – 25 of 32) sorted by relevance

12

/reactos/drivers/network/tcpip/lwip/src/include/lwip/
H A Dip6_addr.h83 #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…
204 #define ip6_get_subnet_id(ip6addr) (lwip_htonl((ip6addr)->addr[2]) & 0x0000ffffUL)
[all …]
H A Ddef.h88 #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)
H A Dip4_addr.h124 lwip_htonl((src)->addr)))
/reactos/drivers/network/tcpip/lwip/src/netif/
H A Dlowpan6_common.c521 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()
590 ip6hdr->src.addr[3] = lwip_htonl(0xfe000000UL | (src->addr[0] << 8) | src->addr[1]); 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()
628 ip6hdr->dest.addr[0] = lwip_htonl(0xff000000UL | (lowpan6_buffer[lowpan6_offset++] << 16)); in lowpan6_decompress_hdr()
639 ip6hdr->dest.addr[3] = lwip_htonl(lowpan6_buffer[lowpan6_offset++]); in lowpan6_decompress_hdr()
[all …]
H A Dzepif.c200 zep->seq_num = lwip_htonl(state->seqno); in zepif_linkoutput()
/reactos/drivers/network/tcpip/lwip/src/netif/ppp/
H A Dipcp.c948 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()
1367 cilong = lwip_htonl(l); \ in ipcp_rejci()
1372 cilong = lwip_htonl(l); \ in ipcp_rejci()
1412 cilong = lwip_htonl(l); \ in ipcp_rejci()
1429 cilong = lwip_htonl(l); \ in ipcp_rejci()
[all …]
H A Dvj.c99 (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()
H A Dauth.c2127 a = lwip_htonl ((u32_t)np->n_net);
2156 a = lwip_htonl((lwip_ntohl(a) & mask) + offset);
2159 ip[n].mask = lwip_htonl(mask);
H A Dppp.c1218 addr = lwip_htonl(addr); in get_mask()
1228 mask = PP_HTONL(0xffffff00UL) | lwip_htonl(nmask); in get_mask()
/reactos/drivers/network/tcpip/lwip/src/core/ipv6/
H A Dip6_addr.c125 addr->addr[3] = lwip_htonl(ip4.addr); in ip6addr_aton()
185 addr->addr[addr_index] = lwip_htonl(addr->addr[addr_index]); in ip6addr_aton()
265 current_block_value = lwip_htonl(addr->addr[current_block_index >> 1]); in ip6addr_ntoa_r()
284 next_block_value = lwip_htonl(addr->addr[(current_block_index + 1) >> 1]); in ip6addr_ntoa_r()
H A Dnd6.c211 valid_life = lwip_htonl(prefix_opt->valid_lifetime); in nd6_process_autoconfig_prefix()
212 pref_life = lwip_htonl(prefix_opt->preferred_lifetime); in nd6_process_autoconfig_prefix()
632 retrans_timer = lwip_htonl(ra_hdr->retrans_timer); in nd6_input()
635 reachable_time = lwip_htonl(ra_hdr->reachable_time); in nd6_input()
710 mtu32 = lwip_htonl(mtu_opt->mtu); in nd6_input()
744 valid_life = lwip_htonl(prefix_opt->valid_lifetime); in nd6_input()
942 pmtu = lwip_htonl(icmp6hdr->data); in nd6_input()
H A Dicmp6.c406 icmp6hdr->data = lwip_htonl(data); in icmp6_send_response_with_addrs_and_netif()
/reactos/drivers/network/tcpip/lwip/src/core/
H A Ddef.c82 #if !defined(lwip_htonl)
90 lwip_htonl(u32_t n) in lwip_htonl() function
H A Dtcp_out.c202 seg->tcphdr->seqno = lwip_htonl(seqno); in tcp_create_segment()
1149 opts[1] = lwip_htonl(sys_now()); in tcp_build_timestamp_option()
1150 opts[2] = lwip_htonl(pcb->ts_recent); in tcp_build_timestamp_option()
1210 *(opts++) = lwip_htonl(pcb->rcv_sacks[i].left); in tcp_build_sack_option()
1211 *(opts++) = lwip_htonl(pcb->rcv_sacks[i].right); in tcp_build_sack_option()
1481 seg->tcphdr->ackno = lwip_htonl(pcb->rcv_nxt); in tcp_output_segment()
1549 lwip_htonl(seg->tcphdr->seqno), lwip_htonl(seg->tcphdr->seqno) + in tcp_output_segment()
1837 tcphdr->ackno = lwip_htonl(ackno); in tcp_output_alloc_header_common()
1999 p = tcp_output_alloc_header_common(ackno, optlen, 0, lwip_htonl(seqno), local_port, in tcp_rst_common()
2109 p = tcp_output_alloc_header(pcb, optlen, 0, lwip_htonl(pcb->snd_nxt)); in tcp_send_empty_ack()
[all …]
H A Dnetif.c1566 ip_2_ip6(&netif->ip6_addr[0])->addr[2] = lwip_htonl((((u32_t)(netif->hwaddr[0] ^ 0x02)) << 24) | in netif_create_ip6_linklocal_address()
1570 ip_2_ip6(&netif->ip6_addr[0])->addr[3] = lwip_htonl((u32_t)(0xfeul << 24) | in netif_create_ip6_linklocal_address()
1584 …ip_2_ip6(&netif->ip6_addr[0])->addr[addr_index] |= lwip_htonl(((u32_t)(netif->hwaddr[netif->hwaddr… in netif_create_ip6_linklocal_address()
/reactos/drivers/network/tcpip/lwip/src/core/ipv4/
H A Dip4_addr.c96 u32_t nm_hostorder = lwip_htonl(netmask); in ip4_addr_netmask_valid()
255 ip4_addr_set_u32(addr, lwip_htonl(val)); in ip4addr_aton()
H A Dautoip.c78 lwip_htonl(AUTOIP_RANGE_START + ((u32_t)(((u8_t)(netif->hwaddr[4])) | \
170 ip4_addr_set_u32(ipaddr, lwip_htonl(addr)); in autoip_create_addr()
H A Ddhcp.c422 …ip_addr_set_ip4_u32(&dhcp->server_ip_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_… in dhcp_handle_offer()
719 …ip4_addr_set_u32(&dhcp->offered_sn_mask, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SU… in dhcp_handle_ack()
727 …ip4_addr_set_u32(&dhcp->offered_gw_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_RO… in dhcp_handle_ack()
733 …ip4_addr_set_u32(&ntp_server_addrs[n], lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_NTP_… in dhcp_handle_ack()
742 …ip_addr_set_ip4_u32_val(dns_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_DNS_SERVE… in dhcp_handle_ack()
1675 dhcp_set_option_value(dhcp, decode_idx, lwip_htonl(value)); in dhcp_parse_reply()
1939 msg_out->xid = lwip_htonl(dhcp->xid); in dhcp_create_msg()
/reactos/drivers/network/tcpip/lwip/src/include/netif/ppp/
H A Deui64.h91 (e).e32[1] = lwip_htonl(l); \
/reactos/drivers/network/tcpip/lwip/test/unit/ip4/
H A Dtest_ip4.c100 iphdr->src.addr = lwip_htonl(lwip_htonl(iphdr->src.addr) + 1); in create_ip4_input_fragment()
/reactos/drivers/network/tcpip/lwip/src/apps/lwiperf/
H A Dlwiperf.c294 u32_t time = (u32_t) - (s32_t)lwip_htonl(conn->settings.amount); in lwiperf_tcp_client_send_more()
303 u32_t amount_bytes = lwip_htonl(conn->settings.amount); in lwiperf_tcp_client_send_more()
444 u16_t remote_port = (u16_t)lwip_htonl(conn->settings.remote_port); in lwiperf_tx_start_passive()
/reactos/drivers/network/tcpip/lwip/src/include/lwip/prot/
H A Dip6.h106 #define IP6H_VTCFL_SET(hdr, v, tc, fl) (hdr)->_v_tc_fl = (lwip_htonl((((u32_t)(v)) << 28) | (((u32_…
/reactos/drivers/network/tcpip/lwip/src/apps/sntp/
H A Dsntp.c352 sec = lwip_htonl((u32_t)secs); in sntp_initialize_request()
353 frac = lwip_htonl(frac); in sntp_initialize_request()
/reactos/drivers/network/tcpip/lwip/test/unit/ip6/
H A Dtest_ip6.c353 fail_unless(icmp6hdr->data == lwip_htonl(0)); in START_TEST()
/reactos/drivers/network/tcpip/lwip/src/include/lwip/priv/
H A Dtcp_priv.h308 #define TCP_BUILD_MSS_OPTION(mss) lwip_htonl(0x02040000 | ((mss) & 0xFFFF))

12