Home
last modified time | relevance | path

Searched refs:lwip_ntohs (Results 1 – 19 of 19) 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.c417 session = lwip_ntohs(ph->session); in pppoe_disc_input()
418 plen = lwip_ntohs(ph->plen); in pppoe_disc_input()
437 tag = lwip_ntohs(pt.tag); in pppoe_disc_input()
438 len = lwip_ntohs(pt.len); in pppoe_disc_input()
682 session = lwip_ntohs(ph->session); in pppoe_data_input()
692 plen = lwip_ntohs(ph->plen); in pppoe_data_input()
/third_party/lwip/
D0085-add-lwip-log-tcp_rst-tcp_abandon-tcp_abort.patch111 + lwip_ntohs(tcphdr->dest), lwip_ntohs(tcphdr->src)));
122 + lwip_ntohs(tcphdr->dest), lwip_ntohs(tcphdr->src)));
140 + lwip_ntohs(tcphdr->dest), lwip_ntohs(tcphdr->src)));
149 + lwip_ntohs(tcphdr->dest), lwip_ntohs(tcphdr->src)));
167 + ackno, pcb->lastack, pcb->snd_nxt, lwip_ntohs(tcphdr->dest), lwip_ntohs(tcph…
D0053-cleancode-improve-lwipopts.h-readability.patch128 (port) = lwip_ntohs((sin)->sin_port); }while(0)
D0002-adapt-lstack.patch621 (port) = lwip_ntohs((sin)->sin_port); }while(0)
3941 #define ntohs(x) lwip_ntohs(x)
/third_party/lwip/src/core/ipv4/
Dip4.c503 iphdr_len = lwip_ntohs(IPH_LEN(iphdr));
625 lwip_ntohs(udphdr->dest)));
681lwip_ntohs(IPH_ID(iphdr)), p->tot_len, lwip_ntohs(IPH_LEN(iphdr)), (u16_t)!!(IPH_OFFSET(iphdr) & P…
692 lwip_ntohs(IPH_OFFSET(iphdr))));
1149 lwip_ntohs(IPH_LEN(iphdr))));
1152 lwip_ntohs(IPH_ID(iphdr)),
1153 (u16_t)(lwip_ntohs(IPH_OFFSET(iphdr)) >> 15 & 1),
1154 (u16_t)(lwip_ntohs(IPH_OFFSET(iphdr)) >> 14 & 1),
1155 (u16_t)(lwip_ntohs(IPH_OFFSET(iphdr)) >> 13 & 1),
1156 (u16_t)(lwip_ntohs(IPH_OFFSET(iphdr)) & IP_OFFMASK)));
[all …]
Dip4_frag.c375 len = lwip_ntohs(IPH_LEN(fraghdr)); in ip_reass_chain_frag_into_datagram_and_validate()
546 len = lwip_ntohs(IPH_LEN(fraghdr)); in ip4_reass()
580 lwip_ntohs(IPH_ID(fraghdr)))); in ip4_reass()
594 if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) && in ip4_reass()
595 ((lwip_ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) { in ip4_reass()
787 tmp = lwip_ntohs(IPH_OFFSET(iphdr)); in ip4_frag()
/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/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.h102 #define IP6H_PLEN(hdr) (lwip_ntohs((hdr)->_plen))
228 #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.c248 src = lwip_ntohs(udphdr->src);
249 dest = lwip_ntohs(udphdr->dest);
256 LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", lwip_ntohs(udphdr->dest)));
258 LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", lwip_ntohs(udphdr->src)));
354 u16_t chklen = lwip_ntohs(udphdr->len);
1362 lwip_ntohs(udphdr->src), lwip_ntohs(udphdr->dest)));
1365 lwip_ntohs(udphdr->len), lwip_ntohs(udphdr->chksum)));
Dtcp.c2591 lwip_ntohs(tcphdr->src), lwip_ntohs(tcphdr->dest)));
2607 lwip_ntohs(tcphdr->wnd)));
2612 lwip_ntohs(tcphdr->chksum), lwip_ntohs(tcphdr->urgp)));
Dtcp_in.c231 tcphdr->src = lwip_ntohs(tcphdr->src);
232 tcphdr->dest = lwip_ntohs(tcphdr->dest);
235 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/
Dmld6.c256 mld6_delayed_report(group, lwip_ntohs(mld_hdr->max_resp_delay)); in mld6_input()
268 mld6_delayed_report(group, lwip_ntohs(mld_hdr->max_resp_delay)); in mld6_input()
Dip6_frag.c313 offset = lwip_ntohs(frag_hdr->_fragment_offset); in ip6_reass()
318 len = lwip_ntohs(ip6_current_header()->_plen); in ip6_reass()
/third_party/lwip/src/api/
Dsockets.c105 (port) = lwip_ntohs((sin)->sin_port); }while(0)
121 (port) = lwip_ntohs((sin6)->sin6_port); }while(0)