Home
last modified time | relevance | path

Searched refs:tot_len (Results 1 – 25 of 57) sorted by relevance

123

/AliOS-Things-master/components/lwip/lwip2.0.0/apps/snmp/
A Dsnmp_traps.c171 u16_t i, tot_len; in snmp_send_trap() local
197 tot_len = snmp_trap_header_sum(&trap_msg, tot_len); in snmp_send_trap()
274 u16_t tot_len; in snmp_trap_varbind_sum() local
277 tot_len = 0; in snmp_trap_varbind_sum()
293 return tot_len; in snmp_trap_varbind_sum()
307 u16_t tot_len; in snmp_trap_header_sum() local
311 tot_len = vb_len; in snmp_trap_header_sum()
341 trap->pdulen = tot_len; in snmp_trap_header_sum()
343 tot_len += 1 + lenlen; in snmp_trap_header_sum()
355 tot_len += 1 + lenlen; in snmp_trap_header_sum()
[all …]
A Dsnmp_msg.c619 …XEC(snmp_pbuf_stream_init(&pbuf_stream, request->inbound_pbuf, 0, request->inbound_pbuf->tot_len)); in snmp_parse_inbound_frame()
776 …XEC(snmp_pbuf_stream_init(&pbuf_stream, request->inbound_pbuf, 0, request->inbound_pbuf->tot_len)); in snmp_parse_inbound_frame()
782 …XEC(snmp_pbuf_stream_init(&auth_stream, request->inbound_pbuf, 0, request->inbound_pbuf->tot_len)); in snmp_parse_inbound_frame()
785 IF_PARSE_EXEC(snmpv3_auth(&auth_stream, request->inbound_pbuf->tot_len, key, algo, hmac)); in snmp_parse_inbound_frame()
1001 snmp_pbuf_stream_init(pbuf_stream, request->outbound_pbuf, 0, request->outbound_pbuf->tot_len); in snmp_prepare_outbound_frame()
1386 …outbound_pbuf, request->outbound_varbind_offset, request->outbound_pbuf->tot_len - request->outbou… in snmp_complete_outbound_frame()
1405 …it(&(request->outbound_pbuf_stream), request->outbound_pbuf, 0, request->outbound_pbuf->tot_len) ); in snmp_complete_outbound_frame()
1508 …_init(&request->outbound_pbuf_stream, request->outbound_pbuf, 0, request->outbound_pbuf->tot_len)); in snmp_complete_outbound_frame()
1528 request->outbound_pbuf, 0, request->outbound_pbuf->tot_len)); in snmp_complete_outbound_frame()
1533 request->outbound_pbuf, 0, request->outbound_pbuf->tot_len)); in snmp_complete_outbound_frame()
/AliOS-Things-master/components/lwip/lwip2.0.0/core/
A Dpbuf.c338 p->tot_len = length; in pbuf_alloc_ext()
573 if (new_len >= p->tot_len) { in pbuf_realloc()
580 grow = new_len - p->tot_len; in pbuf_realloc()
618 q->tot_len = q->len; in pbuf_realloc()
946 p->tot_len += t->tot_len; in pbuf_cat()
952 p->tot_len += t->tot_len; in pbuf_cat()
1004 LWIP_ASSERT("p->tot_len == p->len + q->tot_len", q->tot_len == p->tot_len - p->len); in pbuf_dechain()
1006 q->tot_len = p->tot_len - p->len; in pbuf_dechain()
1010 p->tot_len = p->len; in pbuf_dechain()
1053 (p_from != NULL) && (p_to->tot_len >= p_from->tot_len)), return ERR_ARG;); in pbuf_copy()
[all …]
A Dudp.c339 chklen = p->tot_len; in udp_input()
347 p->tot_len, chklen, in udp_input()
358 if (ip_chksum_pseudo(p, IP_PROTO_UDP, p->tot_len, in udp_input()
399 q = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM); in udp_input()
742 if (p->tot_len != 0) { in udp_sendto_if_src_chksum()
780 if ((chklen < sizeof(struct udp_hdr)) || (chklen > q->tot_len)) { in udp_sendto_if_src_chksum()
791 chklen = q->tot_len; in udp_sendto_if_src_chksum()
803 q->tot_len, chklen, src_ip, dst_ip); in udp_sendto_if_src_chksum()
824 udphdr->len = lwip_htons(q->tot_len); in udp_sendto_if_src_chksum()
835 q->tot_len, UDP_HLEN, src_ip, dst_ip); in udp_sendto_if_src_chksum()
[all …]
A Dtcp_out.c186 LWIP_ASSERT("p->tot_len >= optlen", p->tot_len >= optlen); in tcp_create_segment()
187 seg->len = p->tot_len - optlen; in tcp_create_segment()
275 p->len = p->tot_len = length; in tcp_pbuf_prealloc()
655 p->tot_len += oversize_used; in tcp_write()
678 last_unsent->len += concat_p->tot_len; in tcp_write()
1021 tcphdr->chksum = ip_chksum_pseudo(p, IP_PROTO_TCP, p->tot_len, in tcp_send_empty_ack()
1322 seg->p->tot_len -= len; in tcp_output_segment()
1333 seg->p->tot_len, &pcb->local_ip, &pcb->remote_ip); in tcp_output_segment()
1337 seg->p->tot_len == (TCPH_HDRLEN(seg->tcphdr) * 4)); in tcp_output_segment()
1360 seg->p->tot_len, &pcb->local_ip, &pcb->remote_ip); in tcp_output_segment()
[all …]
A Dtcp_in.c150 u16_t chksum = ip_chksum_pseudo(p, IP_PROTO_TCP, p->tot_len,
164 if ((hdrlen_bytes < TCP_HLEN) || (hdrlen_bytes > p->tot_len)) {
209 p->tot_len -= opt2len;
212 LWIP_ASSERT("p->tot_len == p->next->tot_len", p->tot_len == p->next->tot_len);
223 tcplen = p->tot_len + ((flags & (TCP_FIN | TCP_SYN)) ? 1 : 0);
347 inseg.len = p->tot_len;
1357 new_tot_len = (u16_t)(inseg.p->tot_len - off);
1363 p->tot_len = new_tot_len;
1492 if (inseg.p->tot_len > 0) {
1520 if (cseg->p->tot_len > 0) {
[all …]
A Daf_packet.c356 msg_len = p->tot_len - hdr_len - ETH_PAD_SIZE; in packet_recvfrom()
361 msg_len = p->tot_len - ETH_PAD_SIZE; in packet_recvfrom()
916 if((p->tot_len < (ETH_HLEN + ETH_PAD_SIZE)) || in packet_input()
919 …LWIP_DEBUGF(PACKETS_DEBUG, ("packet_input tot_len %d flags %d \n",(int)p->tot_len, (int)inp->flags… in packet_input()
980 …LWIP_DEBUGF(PACKETS_DEBUG, ("packet_input p %p tot_len %d len %d\n", (void*)p, p->tot_len, p->len)… in packet_input()
982 q = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_POOL); in packet_input()
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ipv6/
A Dicmp6.c91 if (p->tot_len < sizeof(struct icmp6_hdr)) { in icmp6_input()
103 if (ip6_chksum_pseudo(p, IP6_NEXTH_ICMP6, p->tot_len, ip6_current_src_addr(), in icmp6_input()
146 r = pbuf_alloc(PBUF_IP, p->tot_len, PBUF_RAM); in icmp6_input()
187 IP6_NEXTH_ICMP6, r->tot_len, reply_src, ip6_current_src_addr()); in icmp6_input()
339 icmp6hdr->chksum = ip6_chksum_pseudo(q, IP6_NEXTH_ICMP6, q->tot_len, in icmp6_send_response()
A Dip6.c350 if (netif->mtu && (p->tot_len > netif->mtu)) { in ip6_forward()
427 if ((IP6_HLEN > p->len) || ((IP6H_PLEN(ip6hdr) + IP6_HLEN) > p->tot_len)) { in ip6_input()
433 if ((IP6H_PLEN(ip6hdr) + IP6_HLEN) > p->tot_len) { in ip6_input()
436 (u16_t)(IP6H_PLEN(ip6hdr) + IP6_HLEN), p->tot_len)); in ip6_input()
726 LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len)); in ip6_input()
867 IP6H_PLEN_SET(ip6hdr, p->tot_len - IP6_HLEN); in ip6_output_if_src()
907 if (netif->mtu && (p->tot_len > nd6_get_destination_mtu(dest, netif))) { in ip6_output_if_src()
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/
A Dlowpan6.c462 remaining_len = p->tot_len; in lowpan6_frag()
505 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); in lowpan6_frag()
537 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); in lowpan6_frag()
560 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); in lowpan6_frag()
949 udphdr->len = lwip_htons(p->tot_len - lowpan6_offset + UDP_HLEN); in lowpan6_decompress()
964 q->len = q->tot_len = ip6_offset + p->len; in lowpan6_decompress()
972 IP6H_PLEN_SET(ip6hdr, q->tot_len - IP6_HLEN); in lowpan6_decompress()
987 MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len); in lowpan6_input()
1100 if (lrh->pbuf->tot_len < datagram_offset) { in lowpan6_input()
1104 } else if (lrh->pbuf->tot_len > datagram_offset) { in lowpan6_input()
[all …]
A Dethernet.c171 p->tot_len, ip_hdr_offset));
188 p->tot_len, ip_hdr_offset));
215 p->tot_len, ip_hdr_offset));
A Dethernetif.c157 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len);
223 MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len);
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/
A Dpppoe.c207 u16_t tot_len; in pppoe_write() local
227 tot_len = ph->tot_len; in pppoe_write()
237 MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, (u16_t)tot_len); in pppoe_write()
250 u16_t tot_len; in pppoe_netif_output() local
271 tot_len = pb->tot_len; in pppoe_netif_output()
280 MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, tot_len); in pppoe_netif_output()
431 if(pb->tot_len == pb->len) { in pppoe_disc_input()
706 if (pb->tot_len < plen) { in pppoe_data_input()
743 pb->tot_len)); in pppoe_output()
782 LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); in pppoe_send_padi()
[all …]
A Dpppol2tp.c166 u16_t tot_len; in pppol2tp_write() local
183 tot_len = ph->tot_len; in pppol2tp_write()
193 MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, (u16_t)tot_len); in pppol2tp_write()
206 u16_t tot_len; in pppol2tp_netif_output() local
227 tot_len = pb->tot_len; in pppol2tp_netif_output()
236 MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, tot_len); in pppol2tp_netif_output()
503 if (p->tot_len == 0) { in pppol2tp_dispatch_control_packet()
798 LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); in pppol2tp_send_sccrq()
893 LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); in pppol2tp_send_scccn()
940 LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); in pppol2tp_send_icrq()
[all …]
A Dpppos.c294 … ("pppos_netif_output[%d]: proto=0x%"X16_F", len = %d\n", ppp->netif->num, protocol, pb->tot_len)); in pppos_netif_output()
296 …_output[%d]: output failed proto=0x%"X16_F", len = %d\n", ppp->netif->num, protocol, pb->tot_len)); in pppos_netif_output()
524 pppos->in_tail->tot_len = pppos->in_tail->len; in pppos_input()
529 pppos->in_tail->tot_len = pppos->in_tail->len; in pppos_input()
534 pbuf_realloc(pppos->in_head, pppos->in_head->tot_len - 2); in pppos_input()
637 pppos->in_tail->tot_len = pppos->in_tail->len; in pppos_input()
860 MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, nb->tot_len); in pppos_output_last()
A Dmppe.c204 np = pbuf_alloc(PBUF_RAW, MPPE_OVHD + sizeof(protocol) + (*pb)->tot_len, PBUF_POOL); in mppe_compress()
254 if (n->tot_len == n->len) { in mppe_compress()
390 if (n->tot_len == n->len) { in mppe_decompress()
A Dppp.c790 MIB2_STATS_NETIF_ADD(pcb->netif, ifinoctets, pb->tot_len); in ppp_input()
874 PPPDEBUG(LOG_INFO, ("ppp_input[%d]: ip in pbuf len=%d\n", pcb->netif->num, pb->tot_len)); in ppp_input()
881 PPPDEBUG(LOG_INFO, ("ppp_input[%d]: ip6 in pbuf len=%d\n", pcb->netif->num, pb->tot_len)); in ppp_input()
892 PPPDEBUG(LOG_INFO, ("ppp_input[%d]: vj_comp in pbuf len=%d\n", pcb->netif->num, pb->tot_len)); in ppp_input()
906 PPPDEBUG(LOG_INFO, ("ppp_input[%d]: vj_un in pbuf len=%d\n", pcb->netif->num, pb->tot_len)); in ppp_input()
978 if(p->tot_len == p->len) { in ppp_singlebuf()
982 q = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM); in ppp_singlebuf()
985 ("ppp_singlebuf: unable to alloc new buf (%d)\n", p->tot_len)); in ppp_singlebuf()
A Dvj.c187 if ((IPH_OFFSET(ip) & PP_HTONS(0x3fff)) || np->tot_len < 40) { in vj_compress_tcp()
205 np = pbuf_alloc(PBUF_RAW, np->tot_len, PBUF_POOL); in vj_compress_tcp()
609 tmp = n0->tot_len - vjlen + cs->cs_hlen; in vj_uncompress_tcp()
612 IPH_LEN_SET(&cs->cs_ip, lwip_htons(n0->tot_len - vjlen + cs->cs_hlen)); in vj_uncompress_tcp()
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/tftp/
A Dtftp_server.c271 if (p->tot_len < TFTP_MAX_PAYLOAD_SIZE) { in recv()
304 lastpkt = tftp_state.last_data->tot_len != (TFTP_MAX_PAYLOAD_SIZE + TFTP_HEADER_LENGTH); in recv()
405 pbuf_copy_partial(p, buff, p->tot_len, 0); in tftp_fwrite()
407 writebytes = aos_write(*((int*)handle), buff, p->tot_len); in tftp_fwrite()
409 writebytes = fwrite(buff, 1, p->tot_len, (FILE *)handle); in tftp_fwrite()
A Dtftp_client.c110 blklen = p->tot_len - TFTP_HEADER_LENGTH; in recv()
195 pbuf_copy_partial(p, buff, p->tot_len, 0); in tftp_fwrite()
197 writebytes = fwrite(buff, 1, p->tot_len, (FILE *)handle); in tftp_fwrite()
/AliOS-Things-master/hardware/chip/rtl872xd/aos/
A Dethernetif.c158 if (rltk_wlan_send(netif_get_idx(netif), sg_list, sg_len, p->tot_len) == 0) in low_level_output()
160 if(rltk_inic_send( sg_list, sg_len, p->tot_len) == 0) in low_level_output()
182 if(rltk_mii_send(sg_list, sg_len, p->tot_len) == 0) in low_level_output_mii()
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ipv4/
A Dip4.c346 if (netif->mtu && (p->tot_len > netif->mtu)) { in ip4_forward()
426 if (iphdr_len < p->tot_len) {
431 if ((iphdr_hlen > p->len) || (iphdr_len > p->tot_len) || (iphdr_hlen < IP_HLEN)) {
441 if (iphdr_len > p->tot_len) {
444 iphdr_len, p->tot_len));
618 …lwip_ntohs(IPH_ID(iphdr)), p->tot_len, lwip_ntohs(IPH_LEN(iphdr)), (u16_t)!!(IPH_OFFSET(iphdr) & P…
659 LWIP_DEBUGF(IP_DEBUG, ("ip4_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len));
887 IPH_LEN_SET(iphdr, lwip_htons(p->tot_len));
959 if (netif->mtu && (p->tot_len > netif->mtu)) {
A Dicmp.c97 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short ICMP (%"U16_F" bytes) received\n", p->tot_len)); in icmp_input()
135 if (p->tot_len < sizeof(struct icmp_echo_hdr)) { in icmp_input()
157 r = pbuf_alloc(PBUF_LINK, p->tot_len + hlen, PBUF_RAM); in icmp_input()
/AliOS-Things-master/components/lwip/lwip2.0.0/include/lwip/
A Dnetbuf.h94 #define netbuf_len(buf) ((buf)->p->tot_len)
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/lwip/src/include/lwip/
A Dnetbuf.h94 #define netbuf_len(buf) ((buf)->p->tot_len)

Completed in 45 milliseconds

123