Home
last modified time | relevance | path

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

123

/reactos/drivers/network/tcpip/lwip/src/apps/snmp/
H A Dsnmp_traps.c351 u16_t tot_len = 0; in snmp_send_trap_or_notification_or_inform_generic() local
415 tot_len = snmp_trap_header_sum(trap_msg, tot_len); in snmp_send_trap_or_notification_or_inform_generic()
534 u16_t tot_len; in snmp_trap_varbind_sum() local
537 tot_len = 0; in snmp_trap_varbind_sum()
553 return tot_len; in snmp_trap_varbind_sum()
566 u16_t tot_len = 0; in snmp_trap_header_sum_v1_specific() local
598 return tot_len; in snmp_trap_header_sum_v1_specific()
611 u16_t tot_len = 0; in snmp_trap_header_sum_v2c_specific() local
625 return tot_len; in snmp_trap_header_sum_v2c_specific()
651 tot_len += 1 + lenlen; in snmp_trap_header_sum()
[all …]
/reactos/drivers/network/tcpip/lwip/src/core/
H A Dpbuf.c183 p->tot_len = tot_len; in pbuf_init_alloced_pbuf()
411 if (new_len >= p->tot_len) { in pbuf_realloc()
428 q->tot_len = (u16_t)(q->tot_len - shrink); in pbuf_realloc()
452 q->tot_len = q->len; in pbuf_realloc()
527 p->tot_len = (u16_t)(p->tot_len + increment_magnitude); in pbuf_add_header_impl()
610 p->tot_len = (u16_t)(p->tot_len - increment_magnitude); in pbuf_remove_header()
865 p->tot_len = (u16_t)(p->tot_len + t->tot_len); in pbuf_cat()
871 p->tot_len = (u16_t)(p->tot_len + t->tot_len); in pbuf_cat()
925 q->tot_len = (u16_t)(p->tot_len - p->len); in pbuf_dechain()
929 p->tot_len = p->len; in pbuf_dechain()
[all …]
H A Dudp.c341 chklen = p->tot_len; in udp_input()
349 p->tot_len, chklen, in udp_input()
357 if (ip_chksum_pseudo(p, IP_PROTO_UDP, p->tot_len, in udp_input()
756 if ((u16_t)(p->tot_len + UDP_HLEN) < p->tot_len) { in udp_sendto_if_src_chksum()
768 if (p->tot_len != 0) { in udp_sendto_if_src_chksum()
806 if ((chklen < sizeof(struct udp_hdr)) || (chklen > q->tot_len)) { in udp_sendto_if_src_chksum()
817 chklen = q->tot_len; in udp_sendto_if_src_chksum()
829 q->tot_len, chklen, src_ip, dst_ip); in udp_sendto_if_src_chksum()
849 LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP packet length %"U16_F"\n", q->tot_len)); in udp_sendto_if_src_chksum()
850 udphdr->len = lwip_htons(q->tot_len); in udp_sendto_if_src_chksum()
[all …]
H A Dtcp_out.c179 LWIP_ASSERT("p->tot_len >= optlen", p->tot_len >= optlen); in tcp_create_segment()
180 seg->len = p->tot_len - optlen; in tcp_create_segment()
273 p->len = p->tot_len = length; in tcp_pbuf_prealloc()
718 p->tot_len += oversize_used; in tcp_write()
742 last_unsent->len += concat_p->tot_len; in tcp_write()
748 p->tot_len += extendlen; in tcp_write()
750 p->tot_len += extendlen; in tcp_write()
888 offset = useg->p->tot_len - useg->len + split; in tcp_split_unsent_seg()
936 pbuf_realloc(useg->p, useg->p->tot_len - remainder); in tcp_split_unsent_seg()
1559 seg->p->tot_len -= len; in tcp_output_segment()
[all …]
H A Dtcp_in.c162 u16_t chksum = ip_chksum_pseudo(p, IP_PROTO_TCP, p->tot_len,
221 p->tot_len = (u16_t)(p->tot_len - opt2len);
224 LWIP_ASSERT("p->tot_len == p->next->tot_len", p->tot_len == p->next->tot_len);
235 tcplen = p->tot_len;
238 if (tcplen < p->tot_len) {
409 inseg.len = p->tot_len;
1439 new_tot_len = (u16_t)(inseg.p->tot_len - off);
1443 p->tot_len = new_tot_len;
1563 if (inseg.p->tot_len > 0) {
1591 if (cseg->p->tot_len > 0) {
[all …]
H A Draw.c461 if ((u16_t)(p->tot_len + header_size) < p->tot_len) { in raw_sendto_if_src()
473 if (p->tot_len != 0) { in raw_sendto_if_src()
513 …u16_t chksum = ip6_chksum_pseudo(p, pcb->protocol, p->tot_len, ip_2_ip6(src_ip), ip_2_ip6(dst_ip)); in raw_sendto_if_src()
/reactos/drivers/network/tcpip/lwip/test/unit/core/
H A Dtest_pbuf.c84 p2->len = p2->tot_len = 0; in START_TEST()
90 p3 = pbuf_alloc(PBUF_RAW, p1->tot_len, PBUF_POOL); in START_TEST()
122 for (i = 0; i < source->tot_len; i++) { in START_TEST()
139 for (i = 0; i < source->tot_len; i++) { in START_TEST()
168 err = pbuf_copy_partial_pbuf(dest, a, a->tot_len, 4); in START_TEST()
202 fail_unless(p->tot_len == 1); in START_TEST()
241 fail_unless(p1->tot_len == TESTBUFSIZE_1); in START_TEST()
244 fail_unless(rest2->tot_len == TESTBUFSIZE_2); in START_TEST()
245 fail_unless(rest3->tot_len == TESTBUFSIZE_3); in START_TEST()
274 fail_if(p->tot_len == p->len); in START_TEST()
[all …]
/reactos/drivers/network/tcpip/lwip/src/netif/
H A Dlowpan6.c363 LWIP_ASSERT("this needs a pbuf in one piece", p_frag->len == p_frag->tot_len); in lowpan6_frag()
391 remaining_len = p->tot_len; in lowpan6_frag()
409 buffer[ieee_header_len + 1] = (p->tot_len + hidden_header_len) & 0xff; in lowpan6_frag()
433 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); in lowpan6_frag()
457 p_frag->len = p_frag->tot_len = frag_len + 5 + ieee_header_len + 2; in lowpan6_frag()
464 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); in lowpan6_frag()
485 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); in lowpan6_frag()
660 MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len); in lowpan6_input()
662 if (p->len != p->tot_len) { in lowpan6_input()
826 q->tot_len = datagram_left; in lowpan6_input()
[all …]
H A Dlowpan6_ble.c246 p_frag = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM); in rfc7668_compress()
251 LWIP_ASSERT("this needs a pbuf in one piece", p_frag->len == p_frag->tot_len); in rfc7668_compress()
266 remaining_len = p->tot_len; in rfc7668_compress()
272 p_frag->len = p_frag->tot_len = remaining_len + lowpan6_header_len; in rfc7668_compress()
275 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); in rfc7668_compress()
351 MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len); in rfc7668_input()
H A Dzepif.c146 if (zep->len != p->tot_len - sizeof(struct zep_hdr)) { in zepif_udp_recv()
155 pbuf_realloc(p, p->tot_len - 2); in zepif_udp_recv()
178 if (p->tot_len > ZEP_MAX_DATA_LEN) { in zepif_linkoutput()
186 q = pbuf_alloc(PBUF_TRANSPORT, sizeof(struct zep_hdr) + p->tot_len, PBUF_RAM); in zepif_linkoutput()
202 zep->len = (u8_t)p->tot_len; in zepif_linkoutput()
204 err = pbuf_copy_partial_pbuf(q, p, p->tot_len, sizeof(struct zep_hdr)); in zepif_linkoutput()
H A Dethernet.c181 p->tot_len, next_hdr_offset));
198 p->tot_len, next_hdr_offset));
225 p->tot_len, next_hdr_offset));
/reactos/drivers/network/tcpip/lwip/test/unit/tcp/
H A Dtcp_helper.c81 IPH_LEN_SET(iphdr, htons(p->tot_len)); in tcp_create_segment_wnd()
108 IP_PROTO_TCP, p->tot_len, src_ip, dst_ip); in tcp_create_segment_wnd()
205 EXPECT_RET(counters->recved_bytes + p->tot_len <= counters->expected_data_len); in test_tcp_counters_check_rxdata()
214 EXPECT(received == counters->recved_bytes + p->tot_len); in test_tcp_counters_check_rxdata()
229 counters->recved_bytes += p->tot_len; in test_tcp_counters_recv()
232 counters->recved_bytes_after_close += p->tot_len; in test_tcp_counters_recv()
288 txcounters->num_tx_bytes += p->tot_len; in test_tcp_netif_output()
290 struct pbuf *p_copy = pbuf_alloc(PBUF_LINK, p->tot_len, PBUF_RAM); in test_tcp_netif_output()
/reactos/drivers/network/tcpip/lwip/src/netif/ppp/
H A Dpppol2tp.c170 u16_t tot_len; in pppol2tp_write() local
190 tot_len = ph->tot_len; in pppol2tp_write()
200 MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, (u16_t)tot_len); in pppol2tp_write()
213 u16_t tot_len; in pppol2tp_netif_output() local
234 tot_len = pb->tot_len; in pppol2tp_netif_output()
243 MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, tot_len); in pppol2tp_netif_output()
446 p->tot_len, tunnel_id, session_id, ns, nr)); in pppol2tp_input()
537 if (p->tot_len == 0) { in pppol2tp_dispatch_control_packet()
841 LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); in pppol2tp_send_sccrq()
936 LWIP_ASSERT("pb->tot_len == pb->len", pb->tot_len == pb->len); in pppol2tp_send_scccn()
[all …]
H A Dpppoe.c231 u16_t tot_len; in pppoe_write() local
251 tot_len = ph->tot_len; in pppoe_write()
261 MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, (u16_t)tot_len); in pppoe_write()
274 u16_t tot_len; in pppoe_netif_output() local
295 tot_len = pb->tot_len; in pppoe_netif_output()
304 MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, tot_len); in pppoe_netif_output()
446 if(pb->tot_len == pb->len) { in pppoe_disc_input()
450 pb->tot_len = pb->len = framelen; in pppoe_disc_input()
726 if (pb->tot_len < plen) { in pppoe_data_input()
763 pb->tot_len)); in pppoe_output()
[all …]
H A Dpppos.c225 nb->tot_len = p->len; in pppos_write()
276 nb->tot_len = pb->tot_len; in pppos_netif_output()
307 … ("pppos_netif_output[%d]: proto=0x%"X16_F", len = %d\n", ppp->netif->num, protocol, pb->tot_len)); in pppos_netif_output()
309 …_output[%d]: output failed proto=0x%"X16_F", len = %d\n", ppp->netif->num, protocol, pb->tot_len)); in pppos_netif_output()
552 pppos->in_tail->tot_len = pppos->in_tail->len; in pppos_input()
557 pppos->in_tail->tot_len = pppos->in_tail->len; in pppos_input()
562 pbuf_realloc(pppos->in_head, pppos->in_head->tot_len - 2); in pppos_input()
660 pppos->in_tail->tot_len = pppos->in_tail->len; in pppos_input()
680 if (pppos->in_head->tot_len > mru) { in pppos_input()
925 MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, nb->tot_len); in pppos_output_last()
H A Dmppe.c204 np = pbuf_alloc(PBUF_RAW, MPPE_OVHD + sizeof(protocol) + (*pb)->tot_len, PBUF_RAM); in mppe_compress()
254 if (n->tot_len == n->len) { in mppe_compress()
390 if (n->tot_len == n->len) { in mppe_decompress()
/reactos/drivers/network/tcpip/lwip/src/core/ipv4/
H A Dicmp.c101 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short ICMP (%"U16_F" bytes) received\n", p->tot_len)); in icmp_input()
141 if (p->tot_len < sizeof(struct icmp_echo_hdr)) { in icmp_input()
162 u16_t alloc_len = (u16_t)(p->tot_len + hlen); in icmp_input()
163 if (alloc_len < p->tot_len) { in icmp_input()
354 if (p->tot_len < response_pkt_len) { in icmp_send_response()
355 response_pkt_len = p->tot_len; in icmp_send_response()
H A Dip4.c383 if (netif->mtu && (p->tot_len > netif->mtu)) { in ip4_forward()
503 if (iphdr_len < p->tot_len) {
508 if ((iphdr_hlen > p->len) || (iphdr_len > p->tot_len) || (iphdr_hlen < IP_HLEN)) {
518 if (iphdr_len > p->tot_len) {
521 iphdr_len, p->tot_len));
674 …lwip_ntohs(IPH_ID(iphdr)), p->tot_len, lwip_ntohs(IPH_LEN(iphdr)), (u16_t)!!(IPH_OFFSET(iphdr) & P…
715 LWIP_DEBUGF(IP_DEBUG, ("ip4_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len));
959 IPH_LEN_SET(iphdr, lwip_htons(p->tot_len));
1035 if (netif->mtu && (p->tot_len > netif->mtu)) {
/reactos/drivers/network/tcpip/ip/transport/tcp/
H A Dif.c46 NdisStatus = AllocatePacketWithBuffer(&Packet.NdisPacket, NULL, p->tot_len); in TCPSendDataCallback()
55 ASSERT(Packet.TotalSize == p->tot_len); in TCPSendDataCallback()
57 TotalLength = p->tot_len; in TCPSendDataCallback()
62 ASSERT(p->tot_len == TotalLength - Length); in TCPSendDataCallback()
/reactos/drivers/network/tcpip/lwip/doc/
H A DNO_SYS_SampleCode.c27 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len); in netif_output()
36 pbuf_copy_partial(p, mac_send_buffer, p->tot_len, 0); in netif_output()
103 MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len); in main()
/reactos/drivers/network/tcpip/lwip/src/core/ipv6/
H A Dicmp6.c104 if (ip6_chksum_pseudo(p, IP6_NEXTH_ICMP6, p->tot_len, ip6_current_src_addr(), in icmp6_input()
147 r = pbuf_alloc(PBUF_IP, p->tot_len, PBUF_RAM); in icmp6_input()
188 IP6_NEXTH_ICMP6, r->tot_len, reply_src, ip6_current_src_addr()); in icmp6_input()
390 u16_t datalen = LWIP_MIN(p->tot_len, LWIP_ICMP6_DATASIZE); in icmp6_send_response_with_addrs_and_netif()
415 icmp6hdr->chksum = ip6_chksum_pseudo(q, IP6_NEXTH_ICMP6, q->tot_len, in icmp6_send_response_with_addrs_and_netif()
H A Dip6_frag.c744 LWIP_ASSERT("p->tot_len >= IP6_HLEN", p->tot_len >= IP6_HLEN); in ip6_frag()
745 left = (u16_t)(p->tot_len - IP6_HLEN); in ip6_frag()
760 (rambuf->len == rambuf->tot_len) && (rambuf->next == NULL)); in ip6_frag()
792 p->tot_len = (u16_t)(p->tot_len - poff); in ip6_frag()
H A Dip6.c438 if (netif->mtu && (p->tot_len > netif->mtu)) { in ip6_forward()
546 if ((IP6_HLEN > p->len) || (IP6H_PLEN(ip6hdr) > (p->tot_len - IP6_HLEN))) {
552 if ((IP6H_PLEN(ip6hdr) + IP6_HLEN) > p->tot_len) {
555 (u16_t)(IP6H_PLEN(ip6hdr) + IP6_HLEN), p->tot_len));
708 LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len));
1217 IP6H_PLEN_SET(ip6hdr, (u16_t)(p->tot_len - IP6_HLEN));
1263 if (netif_mtu6(netif) && (p->tot_len > nd6_get_destination_mtu(dest, netif))) {
/reactos/drivers/network/tcpip/lwip/test/fuzz/
H A Dfuzz_common.c117 LWIP_DEBUGF(FUZZ_DEBUG, ("> %d fuzz: netif: send %u bytes\n", pcap_packet, p->tot_len)); in pcap_dump_packet()
119 LWIP_DEBUGF(FUZZ_DEBUG, ("< %d fuzz: RX packet of %u bytes\n", pcap_packet, p->tot_len)); in pcap_dump_packet()
129 data = p->tot_len; in pcap_dump_packet()
339 altcp_recved(pcb, p->tot_len); in tcp_client_recv()
340 LWIP_DEBUGF(FUZZ_DEBUG, ("fuzz: tcp: tcp_client_recv: %d\n", p->tot_len)); in tcp_client_recv()
397 altcp_recved(pcb, p->tot_len); in tcp_server_recv()
398 LWIP_DEBUGF(FUZZ_DEBUG, ("fuzz: tcp: tcp_server_recv: %d\n", p->tot_len)); in tcp_server_recv()
/reactos/drivers/network/tcpip/lwip/src/apps/lwiperf/
H A Dlwiperf.c460 u16_t tot_len; in lwiperf_tcp_recv() local
483 tot_len = p->tot_len; in lwiperf_tcp_recv()
489 if (p->tot_len < sizeof(lwiperf_settings_t)) { in lwiperf_tcp_recv()
524 tcp_recved(tpcb, p->tot_len); in lwiperf_tcp_recv()
556 LWIP_ASSERT("count mismatch", packet_idx == p->tot_len); in lwiperf_tcp_recv()
558 tcp_recved(tpcb, tot_len); in lwiperf_tcp_recv()

123