| /components/net/lwip/lwip-1.4.1/src/netif/ppp/ |
| A D | vj.c | 112 u_short tmp = ntohs(f) + (((u_short)cp[1] << 8) | cp[2]); \ 116 u_short tmp = ntohs(f) + (u_short)*cp++; \ 274 deltaS = ntohs(th->urgp); in vj_compress_tcp() 285 if ((deltaS = (u_short)(ntohs(th->wnd) - ntohs(oth->wnd))) != 0) { in vj_compress_tcp() 319 ntohs(IPH_LEN(&cs->cs_ip)) == hlen) { in vj_compress_tcp() 342 if (deltaS == ntohs(IPH_LEN(&cs->cs_ip)) - hlen) { in vj_compress_tcp() 350 deltaS = (u_short)(ntohs(IPH_ID(ip)) - ntohs(IPH_ID(&cs->cs_ip))); in vj_compress_tcp() 362 deltaA = ntohs(th->chksum); in vj_compress_tcp() 515 register u32_t i = ntohs(IPH_LEN(&cs->cs_ip)) - cs->cs_hlen; in vj_uncompress_tcp() 526 tmp = ntohl(th->seqno) + ntohs(IPH_LEN(&cs->cs_ip)) - cs->cs_hlen; in vj_uncompress_tcp() [all …]
|
| A D | ppp_oe.c | 331 session = ntohs(ph->session); in pppoe_dispatch_disc_pkt() 332 plen = ntohs(ph->plen); in pppoe_dispatch_disc_pkt() 348 tag = ntohs(pt.tag); in pppoe_dispatch_disc_pkt() 349 len = ntohs(pt.len); in pppoe_dispatch_disc_pkt() 601 session = ntohs(ph->session); in pppoe_data_input() 611 plen = ntohs(ph->plen); in pppoe_data_input()
|
| /components/net/lwip/lwip-1.4.1/src/include/lwip/ |
| A D | def.h | 70 #ifdef ntohs 71 #undef ntohs 78 #define ntohs(x) lwip_ntohs(x) macro
|
| A D | tcp_impl.h | 174 #define TCPH_HDRLEN(phdr) (ntohs((phdr)->_hdrlen_rsvd_flags) >> 12) 175 #define TCPH_FLAGS(phdr) (ntohs((phdr)->_hdrlen_rsvd_flags) & TCP_FLAGS) 182 #define TCPH_UNSET_FLAG(phdr, flags) (phdr)->_hdrlen_rsvd_flags = htons(ntohs((phdr)->_hdrlen_rsvd_…
|
| /components/net/lwip/lwip-1.4.1/src/core/ipv4/ |
| A D | ip.c | 347 iphdr_len = ntohs(IPH_LEN(iphdr)); 465 ntohs(udphdr->dest))); 530 …ntohs(IPH_ID(iphdr)), p->tot_len, ntohs(IPH_LEN(iphdr)), !!(IPH_OFFSET(iphdr) & PP_HTONS(IP_MF)), … 541 ntohs(IPH_OFFSET(iphdr)))); 924 ntohs(IPH_LEN(iphdr)))); 927 ntohs(IPH_ID(iphdr)), 928 ntohs(IPH_OFFSET(iphdr)) >> 15 & 1, 929 ntohs(IPH_OFFSET(iphdr)) >> 14 & 1, 930 ntohs(IPH_OFFSET(iphdr)) >> 13 & 1, 931 ntohs(IPH_OFFSET(iphdr)) & IP_OFFMASK)); [all …]
|
| A D | ip_frag.c | 341 len = ntohs(IPH_LEN(fraghdr)) - IPH_HL(fraghdr) * 4; in ip_reass_chain_frag_into_datagram_and_validate() 342 offset = (ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) * 8; in ip_reass_chain_frag_into_datagram_and_validate() 497 offset = (ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) * 8; in ip_reass() 498 len = ntohs(IPH_LEN(fraghdr)) - IPH_HL(fraghdr) * 4; in ip_reass() 526 ntohs(IPH_ID(fraghdr)))); in ip_reass() 541 if (((ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) && in ip_reass() 542 ((ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) { in ip_reass() 714 tmp = ntohs(IPH_OFFSET(iphdr)); in ip_frag()
|
| /components/net/lwip-nat/ |
| A D | ipv4_nat.c | 998 ntohs(IPH_ID(iphdr)), ntohs(IPH_CHKSUM(iphdr)))); in ip_nat_dbg_dump() 1020 LWIP_DEBUGF(LWIP_NAT_DEBUG, (" id=%" U16_F, ntohs(nat_entry->id))); in ip_nat_dbg_dump_icmp_nat_entry() 1026 LWIP_DEBUGF(LWIP_NAT_DEBUG, (" id=%" U16_F, ntohs(nat_entry->id))); in ip_nat_dbg_dump_icmp_nat_entry() 1048 LWIP_DEBUGF(LWIP_NAT_DEBUG, (":%" U16_F, ntohs(nat_entry->sport))); in ip_nat_dbg_dump_tcp_nat_entry() 1051 LWIP_DEBUGF(LWIP_NAT_DEBUG, (":%" U16_F, ntohs(nat_entry->dport))); in ip_nat_dbg_dump_tcp_nat_entry() 1054 LWIP_DEBUGF(LWIP_NAT_DEBUG, (":%" U16_F, ntohs(nat_entry->nport))); in ip_nat_dbg_dump_tcp_nat_entry() 1057 LWIP_DEBUGF(LWIP_NAT_DEBUG, (":%" U16_F, ntohs(nat_entry->dport))); in ip_nat_dbg_dump_tcp_nat_entry() 1078 LWIP_DEBUGF(LWIP_NAT_DEBUG, (":%" U16_F, ntohs(nat_entry->sport))); in ip_nat_dbg_dump_udp_nat_entry() 1081 LWIP_DEBUGF(LWIP_NAT_DEBUG, (":%" U16_F, ntohs(nat_entry->dport))); in ip_nat_dbg_dump_udp_nat_entry() 1084 LWIP_DEBUGF(LWIP_NAT_DEBUG, (":%" U16_F, ntohs(nat_entry->nport))); in ip_nat_dbg_dump_udp_nat_entry() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/core/ |
| A D | udp.c | 188 src = ntohs(udphdr->src); 189 dest = ntohs(udphdr->dest); 198 ip4_addr3_16(&iphdr->dest), ip4_addr4_16(&iphdr->dest), ntohs(udphdr->dest), 200 ip4_addr3_16(&iphdr->src), ip4_addr4_16(&iphdr->src), ntohs(udphdr->src))); 297 u16_t chklen = ntohs(udphdr->len); 1005 ntohs(udphdr->src), ntohs(udphdr->dest))); 1008 ntohs(udphdr->len), ntohs(udphdr->chksum)));
|
| A D | tcp.c | 1622 ntohs(tcphdr->src), ntohs(tcphdr->dest))); in tcp_debug_print() 1638 ntohs(tcphdr->wnd))); in tcp_debug_print() 1643 ntohs(tcphdr->chksum), ntohs(tcphdr->urgp))); in tcp_debug_print()
|
| A D | tcp_in.c | 156 tcphdr->src = ntohs(tcphdr->src); in tcp_input() 157 tcphdr->dest = ntohs(tcphdr->dest); in tcp_input() 160 tcphdr->wnd = ntohs(tcphdr->wnd); in tcp_input()
|
| /components/net/lwip/lwip-1.4.1/src/include/ipv6/lwip/ |
| A D | inet.h | 56 u16_t ntohs(u16_t n);
|
| /components/net/lwip/lwip-2.0.3/src/include/lwip/ |
| A D | def.h | 109 #define ntohs(x) lwip_ntohs(x) macro
|
| /components/net/lwip/lwip-2.1.2/src/include/lwip/ |
| A D | def.h | 120 #define ntohs(x) lwip_ntohs(x) macro
|
| /components/net/lwip/lwip-2.1.2/src/netif/ppp/ |
| A D | demand.c | 409 ntohs(*( (short *) (pkt->data+iphdr+4))), 411 ntohs(*( (short *) (pkt->data+iphdr+6))));
|
| /components/net/lwip/lwip-2.0.3/src/netif/ppp/ |
| A D | demand.c | 409 ntohs(*( (short *) (pkt->data+iphdr+4))), 411 ntohs(*( (short *) (pkt->data+iphdr+6))));
|
| /components/net/lwip/lwip-1.4.1/src/core/ipv6/ |
| A D | ip6.c | 210 pbuf_realloc(p, IP_HLEN + ntohs(iphdr->len)); in ip_input() 366 ntohs(iphdr->len), in ip_debug_print()
|
| /components/net/lwip/lwip-1.4.1/src/api/ |
| A D | sockets.c | 442 LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F")\n", ntohs(local_port))); in lwip_bind() 444 err = netconn_bind(sock->conn, &local_addr, ntohs(local_port)); in lwip_bind() 513 LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F")\n", ntohs(remote_port))); in lwip_connect() 515 err = netconn_connect(sock->conn, &remote_addr, ntohs(remote_port)); in lwip_connect() 863 remote_port = ntohs(to_in->sin_port); 915 remote_port = ntohs(to_in->sin_port);
|
| /components/net/netdev/include/ |
| A D | netdev_ipaddr.h | 82 #define ntohs(x) (uint16_t)PP_NTOHS(x) macro
|