| /lib/liblwip/src/core/snmp/ |
| D | msg_out.c | 117 u16_t tot_len; in snmp_send_response() local 121 tot_len = snmp_varbind_list_sum(&m_stat->outvb); in snmp_send_response() 122 tot_len = snmp_resp_header_sum(m_stat, tot_len); in snmp_send_response() 125 p = pbuf_alloc(PBUF_TRANSPORT, tot_len, PBUF_POOL); in snmp_send_response() 134 tot_len = snmp_varbind_list_sum(&emptyvb); in snmp_send_response() 135 tot_len = snmp_resp_header_sum(m_stat, tot_len); in snmp_send_response() 137 p = pbuf_alloc(PBUF_TRANSPORT, tot_len, PBUF_POOL); in snmp_send_response() 219 u16_t i,tot_len; in snmp_send_trap() local 250 tot_len = snmp_varbind_list_sum(&trap_msg.outvb); in snmp_send_trap() 251 tot_len = snmp_trap_header_sum(&trap_msg, tot_len); in snmp_send_trap() [all …]
|
| /lib/liblwip/src/core/ |
| D | pbuf.c | 253 p->tot_len = length; in pbuf_alloc() 287 q->tot_len = (u16_t)rem_len; in pbuf_alloc() 314 p->len = p->tot_len = length; in pbuf_alloc() 335 p->len = p->tot_len = length; in pbuf_alloc() 407 p->pbuf.len = p->pbuf.tot_len = length; in pbuf_alloced_custom() 443 if (new_len >= p->tot_len) { in pbuf_realloc() 450 grow = new_len - p->tot_len; in pbuf_realloc() 461 q->tot_len += (u16_t)grow; in pbuf_realloc() 478 q->tot_len = q->len; in pbuf_realloc() 576 p->tot_len += header_size_increment; in pbuf_header() [all …]
|
| D | udp.c | 169 if (p->tot_len < (IPH_HL(iphdr) * 4 + UDP_HLEN) || pbuf_header(p, -(s16_t)(IPH_HL(iphdr) * 4))) { 172 ("udp_input: short UDP datagram (%"U16_F" bytes) discarded\n", p->tot_len)); 185 LWIP_DEBUGF(UDP_DEBUG, ("udp_input: received datagram of length %"U16_F"\n", p->tot_len)); 302 chklen = p->tot_len; 314 IP_PROTO_UDPLITE, p->tot_len, chklen) != 0) { 330 IP_PROTO_UDP, p->tot_len) != 0) { 381 q = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM); 596 if (p->tot_len != 0) { 647 LWIP_DEBUGF(UDP_DEBUG, ("udp_send: sending datagram of length %"U16_F"\n", q->tot_len)); 653 LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP LITE packet length %"U16_F"\n", q->tot_len)); [all …]
|
| D | tcp_out.c | 172 seg->len = p->tot_len - optlen; in tcp_create_segment() 262 p->len = p->tot_len = length; in tcp_pbuf_prealloc() 630 p->tot_len += oversize_used; in tcp_write() 653 last_unsent->len += concat_p->tot_len; in tcp_write() 876 IP_PROTO_TCP, p->tot_len); in tcp_send_empty_ack() 1118 seg->p->tot_len -= len; in tcp_output_segment() 1130 IP_PROTO_TCP, seg->p->tot_len); in tcp_output_segment() 1134 seg->p->tot_len == (TCPH_HDRLEN(seg->tcphdr) * 4)); in tcp_output_segment() 1140 IP_PROTO_TCP, seg->p->tot_len, TCPH_HDRLEN(seg->tcphdr) * 4); in tcp_output_segment() 1160 IP_PROTO_TCP, seg->p->tot_len); in tcp_output_segment() [all …]
|
| D | tcp_in.c | 116 if (pbuf_header(p, -((s16_t)(IPH_HL(iphdr) * 4))) || (p->tot_len < sizeof(struct tcp_hdr))) { in tcp_input() 118 …LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: short packet (%"U16_F" bytes) discarded\n", p->tot_len)); in tcp_input() 133 IP_PROTO_TCP, p->tot_len) != 0) { in tcp_input() 136 IP_PROTO_TCP, p->tot_len))); in tcp_input() 163 tcplen = p->tot_len + ((flags & (TCP_FIN | TCP_SYN)) ? 1 : 0); in tcp_input() 281 inseg.len = p->tot_len; in tcp_input() 1177 LWIP_ASSERT("pbuf too short!", (((s32_t)inseg.p->tot_len) >= off)); in tcp_receive() 1178 new_tot_len = (u16_t)(inseg.p->tot_len - off); in tcp_receive() 1184 p->tot_len = new_tot_len; in tcp_receive() 1312 if (inseg.p->tot_len > 0) { in tcp_receive() [all …]
|
| D | netif.c | 632 r = pbuf_alloc(PBUF_LINK, p->tot_len, PBUF_RAM); in netif_loop_output() 680 snmp_add_ifoutoctets(stats_if, p->tot_len); in netif_loop_output() 725 while (in_end->len != in_end->tot_len) { in netif_poll() 745 snmp_add_ifinoctets(stats_if, in->tot_len); in netif_poll()
|
| D | dns.c | 748 if (p->tot_len > DNS_MSG_SIZE) { in dns_recv() 755 if (p->tot_len < (SIZEOF_DNS_HDR + SIZEOF_DNS_QUERY + SIZEOF_DNS_ANSWER)) { in dns_recv() 762 if (pbuf_copy_partial(p, dns_payload, p->tot_len, 0) == p->tot_len) { in dns_recv()
|
| D | raw.c | 221 if (p->tot_len != 0) { in raw_sendto()
|
| /lib/liblwip/test/unit/tcp/ |
| D | tcp_helper.c | 69 IPH_LEN_SET(iphdr, htons(p->tot_len)); in tcp_create_segment_wnd() 96 IP_PROTO_TCP, p->tot_len); in tcp_create_segment_wnd() 184 EXPECT_RET(counters->recved_bytes + p->tot_len <= counters->expected_data_len); in test_tcp_counters_check_rxdata() 193 EXPECT(received == counters->recved_bytes + p->tot_len); in test_tcp_counters_check_rxdata() 208 counters->recved_bytes += p->tot_len; in test_tcp_counters_recv() 211 counters->recved_bytes_after_close += p->tot_len; in test_tcp_counters_recv() 260 txcounters->num_tx_bytes += p->tot_len; in test_tcp_netif_output() 262 struct pbuf *p_copy = pbuf_alloc(PBUF_LINK, p->tot_len, PBUF_RAM); in test_tcp_netif_output()
|
| /lib/liblwip/src/core/ipv6/ |
| D | icmp6.c | 64 if (p->tot_len < sizeof(struct icmp_echo_hdr)) { in icmp_input() 74 …o (%"X16_F")\n", inet_chksum_pseudo(p, &(iphdr->src), &(iphdr->dest), IP_PROTO_ICMP, p->tot_len))); in icmp_input() 78 LWIP_DEBUGF(ICMP_DEBUG, ("icmp: p->len %"S16_F" p->tot_len %"S16_F"\n", p->len, p->tot_len)); in icmp_input() 89 …o (%"X16_F")\n", inet_chksum_pseudo(p, &(iphdr->src), &(iphdr->dest), IP_PROTO_ICMP, p->tot_len))); in icmp_input()
|
| D | ip6.c | 268 LWIP_DEBUGF(IP_DEBUG, ("len %"U16_F" tot_len %"U16_F"\n", p->len, p->tot_len)); in ip_output_if() 275 LWIP_DEBUGF(IP_DEBUG, ("len %"U16_F" tot_len %"U16_F"\n", p->len, p->tot_len)); in ip_output_if() 284 iphdr->len = htons(p->tot_len - IP_HLEN); in ip_output_if() 301 …UGF(IP_DEBUG, ("ip_output_if: %c%c (len %"U16_F")\n", netif->name[0], netif->name[1], p->tot_len)); in ip_output_if()
|
| /lib/liblwip/src/core/ipv4/ |
| D | icmp.c | 93 if (pbuf_header(p, -hlen) || (p->tot_len < sizeof(u16_t)*2)) { in icmp_input() 94 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short ICMP (%"U16_F" bytes) received\n", p->tot_len)); in icmp_input() 133 if (p->tot_len < sizeof(struct icmp_echo_hdr)) { in icmp_input() 156 r = pbuf_alloc(PBUF_LINK, p->tot_len, PBUF_RAM); in icmp_input()
|
| D | ip.c | 269 if (netif->mtu && (p->tot_len > netif->mtu)) { in ip_forward() 345 if ((iphdr_hlen > p->len) || (iphdr_len > p->tot_len)) { 351 if (iphdr_len > p->tot_len) { 354 iphdr_len, p->tot_len)); 510 …ntohs(IPH_ID(iphdr)), p->tot_len, ntohs(IPH_LEN(iphdr)), !!(IPH_OFFSET(iphdr) & PP_HTONS(IP_MF)), … 551 LWIP_DEBUGF(IP_DEBUG, ("ip_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len)); 734 IPH_LEN_SET(iphdr, htons(p->tot_len)); 791 if (netif->mtu && (p->tot_len > netif->mtu)) {
|
| D | ip_frag.c | 702 rambuf->tot_len = rambuf->len = mtu; in ip_frag() 718 left = p->tot_len - IP_HLEN; in ip_frag() 743 (rambuf->len == rambuf->tot_len) && (rambuf->next == NULL)); in ip_frag()
|
| /lib/liblwip/src/netif/ppp/ |
| D | ppp.c | 720 snmp_add_ifoutoctets(&pc->netif, nb->tot_len); in nPut() 772 u16_t tot_len; in pppifOutputOverEthernet() local 793 tot_len = pb->tot_len; in pppifOutputOverEthernet() 801 snmp_add_ifoutoctets(&pc->netif, tot_len); in pppifOutputOverEthernet() 1572 if(p->tot_len == p->len) { in pppSingleBuf() 1576 q = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM); in pppSingleBuf() 1579 ("pppSingleBuf: unable to alloc new buf (%d)\n", p->tot_len)); in pppSingleBuf() 1619 snmp_add_ifinoctets(&pppControl[pd].netif, nb->tot_len); in pppInput() 1831 pcrx->inTail->tot_len = pcrx->inTail->len; in pppInProc() 1836 pcrx->inTail->tot_len = pcrx->inTail->len; in pppInProc() [all …]
|
| D | ppp_oe.c | 340 if(pb->tot_len == pb->len) { in pppoe_dispatch_disc_pkt() 341 pb->tot_len = pb->len = (u16_t)off + plen; /* ignore trailing garbage */ in pppoe_dispatch_disc_pkt() 658 pb->tot_len)); in pppoe_output() 701 LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); in pppoe_send_padi() 918 LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); in pppoe_send_padr() 958 LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); in pppoe_send_padt() 997 LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); in pppoe_send_pado() 1034 LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); in pppoe_send_pads() 1065 len = pb->tot_len; in pppoe_xmit()
|
| D | vj.c | 163 if ((IPH_OFFSET(ip) & PP_HTONS(0x3fff)) || pb->tot_len < 40) { in vj_compress_tcp() 572 tmp = n0->tot_len - vjlen + cs->cs_hlen; in vj_uncompress_tcp() 575 IPH_LEN_SET(&cs->cs_ip, htons(n0->tot_len - vjlen + cs->cs_hlen)); in vj_uncompress_tcp()
|
| /lib/liblwip/src/include/lwip/ |
| D | netbuf.h | 83 #define netbuf_len(buf) ((buf)->p->tot_len)
|
| D | pbuf.h | 93 u16_t tot_len; member
|
| /lib/liblwip/src/api/ |
| D | api_msg.c | 92 if ((recv_avail + (int)(p->tot_len)) > conn->recv_bufsize) { in recv_raw() 97 q = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM); in recv_raw() 118 len = q->tot_len; in recv_raw() 163 ((recv_avail + (int)(p->tot_len)) > conn->recv_bufsize)) { 194 len = p->tot_len; 233 tcp_recved(pcb, p->tot_len); 246 len = p->tot_len; 700 tcp_recved(conn->pcb.tcp, p->tot_len);
|
| D | api_lib.c | 386 msg.msg.msg.r.len = ((struct pbuf *)buf)->tot_len; in netconn_recv_data() 401 len = ((struct pbuf *)buf)->tot_len; in netconn_recv_data() 574 LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_send: sending %"U16_F" bytes\n", buf->p->tot_len)); in netconn_send()
|
| D | netbuf.c | 162 buf->p->len = buf->p->tot_len = size; in netbuf_ref()
|
| /lib/liblwip/src/netif/ |
| D | slipif.c | 128 …(SLIP_DEBUG, ("slipif_output(%"U16_F"): sending %"U16_F" bytes\n", (u16_t)netif->num, p->tot_len)); in slipif_output() 418 while ((q->len != q->tot_len) && (q->next != NULL)) { in slipif_process_rxqueue()
|
| D | etharp.c | 705 ("etharp_arp_input: packet dropped, too short (%"S16_F"/%"S16_F")\n", p->tot_len, 1086 LWIP_ASSERT("no packet queues allowed!", (p->len != p->tot_len) || (p->next == 0)); 1095 p = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM);
|
| /lib/liblwip/src/arch/ |
| D | etherif.c | 157 mbuf.len = p->tot_len; in low_level_output()
|