| /external/lib/lwip/core/snmp/ |
| A D | msg_out.c | 117 u16_t tot_len; in snmp_send_response() local 122 tot_len = snmp_resp_header_sum(m_stat, tot_len); in snmp_send_response() 135 tot_len = snmp_resp_header_sum(m_stat, tot_len); in snmp_send_response() 219 u16_t i,tot_len; in snmp_send_trap() local 251 tot_len = snmp_trap_header_sum(&trap_msg, tot_len); in snmp_send_trap() 314 u16_t tot_len; in snmp_resp_header_sum() local 347 return tot_len; in snmp_resp_header_sum() 361 u16_t tot_len; in snmp_trap_header_sum() local 403 return tot_len; in snmp_trap_header_sum() 419 u16_t tot_len; in snmp_varbind_list_sum() local [all …]
|
| /external/lib/lwip/core/ |
| A D | pbuf.c | 253 p->tot_len = length; in pbuf_alloc() 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() 755 p->tot_len += t->tot_len; in pbuf_cat() 761 p->tot_len += t->tot_len; in pbuf_cat() 812 LWIP_ASSERT("p->tot_len == p->len + q->tot_len", q->tot_len == p->tot_len - p->len); in pbuf_dechain() 814 q->tot_len = p->tot_len - p->len; in pbuf_dechain() 818 p->tot_len = p->len; in pbuf_dechain() [all …]
|
| A D | udp.c | 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) { 656 if ((chklen < sizeof(struct udp_hdr)) || (chklen > q->tot_len)) { 667 chklen = q->tot_len; 673 IP_PROTO_UDPLITE, q->tot_len, 698 LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP packet length %"U16_F"\n", q->tot_len)); 699 udphdr->len = htons(q->tot_len); [all …]
|
| A 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() 1160 IP_PROTO_TCP, seg->p->tot_len); in tcp_output_segment() 1221 IP_PROTO_TCP, p->tot_len); in tcp_rst() [all …]
|
| A 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() 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() 1185 LWIP_ASSERT("pbuf too short!", (((s32_t)inseg.p->tot_len) >= off)); 1186 new_tot_len = (u16_t)(inseg.p->tot_len - off); 1192 p->tot_len = new_tot_len; 1320 if (inseg.p->tot_len > 0) { 1348 if (cseg->p->tot_len > 0) { [all …]
|
| A 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()
|
| A 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()
|
| A D | raw.c | 221 if (p->tot_len != 0) { in raw_sendto()
|
| A D | dhcp.c | 1365 options_idx_max = p->tot_len; in dhcp_parse_reply() 1547 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("pbuf->tot_len = %"U16_F"\n", p->tot_len)); in dhcp_recv()
|
| /external/lib/lwip/core/ipv6/ |
| A 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()
|
| A 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()
|
| /external/lib/lwip/core/ipv4/ |
| A 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()
|
| A 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)) {
|
| A 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()
|
| /external/lib/lwip/netif/ppp/ |
| A 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() 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() 1841 pbuf_realloc(pcrx->inHead, pcrx->inHead->tot_len - 2); in pppInProc() [all …]
|
| A 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()
|
| A 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()
|
| /external/lib/lwip/api/ |
| A 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);
|
| A 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()
|
| A D | netbuf.c | 162 buf->p->len = buf->p->tot_len = size; in netbuf_ref()
|
| A D | sockets.c | 634 buflen = p->tot_len; in lwip_recvfrom() 2314 buflen = p->tot_len;
|
| /external/lib/lwip/include/lwip/ |
| A D | netbuf.h | 83 #define netbuf_len(buf) ((buf)->p->tot_len)
|
| A D | pbuf.h | 93 u16_t tot_len; member
|
| /external/lib/lwip/netif/ |
| A 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()
|
| A 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);
|