Home
last modified time | relevance | path

Searched refs:lwip_ntohs (Results 1 – 15 of 15) sorted by relevance

/third_party/lwip/src/netif/ppp/
Dvj.c109 u16_t tmp_ = lwip_ntohs(f) + (((u16_t)cp[1] << 8) | cp[2]); \
113 u16_t tmp_ = lwip_ntohs(f) + (u16_t)*cp++; \
304 deltaS = lwip_ntohs(th->urgp); in vj_compress_tcp()
315 if ((deltaS = (u16_t)(lwip_ntohs(th->wnd) - lwip_ntohs(oth->wnd))) != 0) { in vj_compress_tcp()
349 lwip_ntohs(IPH_LEN(&cs->cs_ip)) == hlen) { in vj_compress_tcp()
364 if (deltaS == deltaA && deltaS == lwip_ntohs(IPH_LEN(&cs->cs_ip)) - hlen) { in vj_compress_tcp()
372 if (deltaS == lwip_ntohs(IPH_LEN(&cs->cs_ip)) - hlen) { in vj_compress_tcp()
382 deltaS = (u16_t)(lwip_ntohs(IPH_ID(ip)) - lwip_ntohs(IPH_ID(&cs->cs_ip))); in vj_compress_tcp()
394 deltaA = lwip_ntohs(th->chksum); in vj_compress_tcp()
548 u32_t i = lwip_ntohs(IPH_LEN(&cs->cs_ip)) - cs->cs_hlen; in vj_uncompress_tcp()
[all …]
Dpppoe.c420 session = lwip_ntohs(ph->session); in pppoe_disc_input()
421 plen = lwip_ntohs(ph->plen); in pppoe_disc_input()
440 tag = lwip_ntohs(pt.tag); in pppoe_disc_input()
441 len = lwip_ntohs(pt.len); in pppoe_disc_input()
685 session = lwip_ntohs(ph->session); in pppoe_data_input()
695 plen = lwip_ntohs(ph->plen); in pppoe_data_input()
/third_party/lwip/src/include/lwip/
Ddef.h87 #define lwip_ntohs(x) ((u16_t)(x)) macro
98 #define lwip_ntohs(x) lwip_htons(x)
120 #define ntohs(x) lwip_ntohs(x)
/third_party/lwip/src/core/ipv4/
Dip4.c466 iphdr_len = lwip_ntohs(IPH_LEN(iphdr));
584 lwip_ntohs(udphdr->dest)));
640lwip_ntohs(IPH_ID(iphdr)), p->tot_len, lwip_ntohs(IPH_LEN(iphdr)), (u16_t)!!(IPH_OFFSET(iphdr) & P…
651 lwip_ntohs(IPH_OFFSET(iphdr))));
1103 lwip_ntohs(IPH_LEN(iphdr))));
1106 lwip_ntohs(IPH_ID(iphdr)),
1107 (u16_t)(lwip_ntohs(IPH_OFFSET(iphdr)) >> 15 & 1),
1108 (u16_t)(lwip_ntohs(IPH_OFFSET(iphdr)) >> 14 & 1),
1109 (u16_t)(lwip_ntohs(IPH_OFFSET(iphdr)) >> 13 & 1),
1110 (u16_t)(lwip_ntohs(IPH_OFFSET(iphdr)) & IP_OFFMASK)));
[all …]
Dip4_frag.c355 len = lwip_ntohs(IPH_LEN(fraghdr)); in ip_reass_chain_frag_into_datagram_and_validate()
526 len = lwip_ntohs(IPH_LEN(fraghdr)); in ip4_reass()
560 lwip_ntohs(IPH_ID(fraghdr)))); in ip4_reass()
574 if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) && in ip4_reass()
575 ((lwip_ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) { in ip4_reass()
767 tmp = lwip_ntohs(IPH_OFFSET(iphdr)); in ip4_frag()
/third_party/lwip/src/include/lwip/prot/
Dtcp.h85 #define TCPH_HDRLEN(phdr) ((u16_t)(lwip_ntohs((phdr)->_hdrlen_rsvd_flags) >> 12))
87 #define TCPH_FLAGS(phdr) ((u8_t)((lwip_ntohs((phdr)->_hdrlen_rsvd_flags) & TCP_FLAGS)))
Dip6.h100 #define IP6H_PLEN(hdr) (lwip_ntohs((hdr)->_plen))
226 #define IP6_FRAG_MBIT(hdr) (lwip_ntohs((hdr)->_fragment_offset) & 0x1)
Dip4.h113 #define IPH_OFFSET_BYTES(hdr) ((u16_t)((lwip_ntohs(IPH_OFFSET(hdr)) & IP_OFFMASK) * 8U))
/third_party/lwip/src/core/
Dudp.c234 src = lwip_ntohs(udphdr->src); in udp_input()
235 dest = lwip_ntohs(udphdr->dest); in udp_input()
242 LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", lwip_ntohs(udphdr->dest))); in udp_input()
244 LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", lwip_ntohs(udphdr->src))); in udp_input()
336 u16_t chklen = lwip_ntohs(udphdr->len); in udp_input()
1310 lwip_ntohs(udphdr->src), lwip_ntohs(udphdr->dest))); in udp_debug_print()
1313 lwip_ntohs(udphdr->len), lwip_ntohs(udphdr->chksum))); in udp_debug_print()
Dtcp.c2410 lwip_ntohs(tcphdr->src), lwip_ntohs(tcphdr->dest))); in tcp_debug_print()
2426 lwip_ntohs(tcphdr->wnd))); in tcp_debug_print()
2431 lwip_ntohs(tcphdr->chksum), lwip_ntohs(tcphdr->urgp))); in tcp_debug_print()
Dtcp_in.c228 tcphdr->src = lwip_ntohs(tcphdr->src);
229 tcphdr->dest = lwip_ntohs(tcphdr->dest);
232 tcphdr->wnd = lwip_ntohs(tcphdr->wnd);
/third_party/lwip/src/apps/mdns/
Dmdns.c1062 info->type = lwip_ntohs(field16); in mdns_read_rr_info()
1069 info->klass = lwip_ntohs(field16); in mdns_read_rr_info()
1158 answer->rd_length = lwip_ntohs(field16); in mdns_read_answer()
1731 if (len != sizeof(field16) || lwip_ntohs(field16) != SRV_PRIORITY) { in mdns_handle_question()
1737 if (len != sizeof(field16) || lwip_ntohs(field16) != SRV_WEIGHT) { in mdns_handle_question()
1743 if (len != sizeof(field16) || lwip_ntohs(field16) != service->port) { in mdns_handle_question()
1887 packet.tx_id = lwip_ntohs(hdr.id); in mdns_recv()
1888 packet.questions = packet.questions_left = lwip_ntohs(hdr.numquestions); in mdns_recv()
1889 …packet.answers = packet.answers_left = lwip_ntohs(hdr.numanswers) + lwip_ntohs(hdr.numauthrr) + lw… in mdns_recv()
/third_party/lwip/src/apps/tftp/
Dtftp_server.c296 blknum = lwip_ntohs(sbuf[1]); in recv()
336 blknum = lwip_ntohs(sbuf[1]); in recv()
/third_party/lwip/src/core/ipv6/
Dip6_frag.c293 offset = lwip_ntohs(frag_hdr->_fragment_offset); in ip6_reass()
298 len = lwip_ntohs(ip6_current_header()->_plen); in ip6_reass()
/third_party/lwip/src/api/
Dsockets.c101 (port) = lwip_ntohs((sin)->sin_port); }while(0)
117 (port) = lwip_ntohs((sin6)->sin6_port); }while(0)