/seL4-camkes-master/projects/lwip/src/apps/snmp/ |
H A D | snmp_traps.c | 178 u16_t i, tot_len; local 205 tot_len = snmp_trap_varbind_sum(&trap_msg, varbinds); 206 tot_len = snmp_trap_header_sum(&trap_msg, tot_len); 209 p = pbuf_alloc(PBUF_TRANSPORT, tot_len, PBUF_RAM); 212 snmp_pbuf_stream_init(&pbuf_stream, p, 0, tot_len); 283 u16_t tot_len; local 286 tot_len = 0; 292 tot_len += 1 + len.vb_len_len + len.vb_value_len; 298 trap->vbseqlen = tot_len; 316 u16_t tot_len; local [all...] |
/seL4-camkes-master/projects/lwip/src/core/ |
H A D | pbuf.c | 28 * The last pbuf of a packet has a ->tot_len field that equals the 34 * loop end condition (tot_len == p->len), NOT (next == NULL). 179 pbuf_init_alloced_pbuf(struct pbuf *p, void *payload, u16_t tot_len, u16_t len, pbuf_type type, u8_t flags) argument 183 p->tot_len = tot_len; 396 * @note If the pbuf is ROM/REF, only the ->tot_len and ->len fields are adjusted. 411 if (new_len >= p->tot_len) { 416 /* the pbuf chain grows by (new_len - p->tot_len) bytes 418 shrink = (u16_t)(p->tot_len - new_len); 428 q->tot_len [all...] |
H A D | udp.c | 218 ("udp_input: short UDP datagram (%"U16_F" bytes) discarded\n", p->tot_len)); 231 LWIP_DEBUGF(UDP_DEBUG, ("udp_input: received datagram of length %"U16_F"\n", p->tot_len)); 341 chklen = p->tot_len; 349 p->tot_len, chklen, 357 if (ip_chksum_pseudo(p, IP_PROTO_UDP, p->tot_len, 756 if ((u16_t)(p->tot_len + UDP_HLEN) < p->tot_len) { 768 if (p->tot_len != 0) { 797 LWIP_DEBUGF(UDP_DEBUG, ("udp_send: sending datagram of length %"U16_F"\n", q->tot_len)); 803 LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP LITE packet length %"U16_F"\n", q->tot_len)); [all...] |
H A D | tcp_out.c | 176 LWIP_ASSERT("p->tot_len >= optlen", p->tot_len >= optlen); 177 seg->len = p->tot_len - optlen; 270 p->len = p->tot_len = length; 713 /* Bump tot_len of whole chain, len of tail */ 715 p->tot_len += oversize_used; 739 last_unsent->len += concat_p->tot_len; 745 p->tot_len += extendlen; 747 p->tot_len += extendlen; 885 offset = useg->p->tot_len [all...] |
H A D | raw.c | 460 if ((u16_t)(p->tot_len + header_size) < p->tot_len) { 472 if (p->tot_len != 0) { 512 u16_t chksum = ip6_chksum_pseudo(p, pcb->protocol, p->tot_len, ip_2_ip6(src_ip), ip_2_ip6(dst_ip));
|
H A D | tcp_in.c | 147 LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: short packet (%"U16_F" bytes) discarded\n", p->tot_len)); 162 u16_t chksum = ip_chksum_pseudo(p, IP_PROTO_TCP, p->tot_len, 176 if ((hdrlen_bytes < TCP_HLEN) || (hdrlen_bytes > p->tot_len)) { 204 options in the next pbuf (adjusting p->tot_len) */ 219 adjust p->tot_len to keep it consistent with the changed p->next */ 221 p->tot_len = (u16_t)(p->tot_len - opt2len); 224 LWIP_ASSERT("p->tot_len == p->next->tot_len", p->tot_len [all...] |
/seL4-camkes-master/projects/lwip/doc/ |
H A D | NO_SYS_SampleCode.c | 27 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len); 36 pbuf_copy_partial(p, mac_send_buffer, p->tot_len, 0); 104 MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len);
|
H A D | ZeroCopyRx.c | 17 invalidate_cpu_cache(p->payload, p->tot_len);
|
/seL4-camkes-master/projects/lwip/test/unit/core/ |
H A D | test_pbuf.c | 90 p2->len = p2->tot_len = 0; 96 p3 = pbuf_alloc(PBUF_RAW, p1->tot_len, PBUF_POOL); 116 fail_unless(p->tot_len == 1); 155 fail_unless(p1->tot_len == TESTBUFSIZE_1); 156 fail_unless(rest2->tot_len == (u16_t)((TESTBUFSIZE_2+TESTBUFSIZE_3) & 0xFFFF)); 158 fail_unless(rest2->tot_len == TESTBUFSIZE_2); 159 fail_unless(rest3->tot_len == TESTBUFSIZE_3); 188 fail_if(p->tot_len == p->len); 240 fail_if(p->tot_len == p->len);
|
/seL4-camkes-master/projects/lwip/src/netif/ |
H A D | lowpan6_ble.c | 246 p_frag = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM); 251 LWIP_ASSERT("this needs a pbuf in one piece", p_frag->len == p_frag->tot_len); 266 remaining_len = p->tot_len; 272 p_frag->len = p_frag->tot_len = remaining_len + lowpan6_header_len; 275 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); 351 MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len);
|
H A D | zepif.c | 146 if (zep->len != p->tot_len - sizeof(struct zep_hdr)) { 155 pbuf_realloc(p, p->tot_len - 2); 178 if (p->tot_len > ZEP_MAX_DATA_LEN) { 186 q = pbuf_alloc(PBUF_TRANSPORT, sizeof(struct zep_hdr) + p->tot_len, PBUF_RAM); 202 zep->len = (u8_t)p->tot_len; 204 err = pbuf_take_at(q, p->payload, p->tot_len, sizeof(struct zep_hdr));
|
H A D | lowpan6.c | 363 LWIP_ASSERT("this needs a pbuf in one piece", p_frag->len == p_frag->tot_len); 390 remaining_len = p->tot_len; 407 buffer[ieee_header_len] = 0xc0 | (((p->tot_len + hidden_header_len) >> 8) & 0x7); 408 buffer[ieee_header_len + 1] = (p->tot_len + hidden_header_len) & 0xff; 425 p_frag->len = p_frag->tot_len = ieee_header_len + 4 + frag_len + 2; /* add 2 bytes for crc*/ 432 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); 451 pbuf_copy_partial(p, buffer + ieee_header_len + 5, frag_len, p->tot_len - remaining_len); 456 p_frag->len = p_frag->tot_len = frag_len + 5 + ieee_header_len + 2; 463 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); 476 p_frag->len = p_frag->tot_len [all...] |
H A D | ethernet.c | 181 p->tot_len, next_hdr_offset)); 198 p->tot_len, next_hdr_offset)); 225 p->tot_len, next_hdr_offset));
|
/seL4-camkes-master/projects/lwip/test/unit/tcp/ |
H A D | tcp_helper.c | 76 IPH_LEN_SET(iphdr, htons(p->tot_len)); 103 IP_PROTO_TCP, p->tot_len, src_ip, dst_ip); 200 EXPECT_RET(counters->recved_bytes + p->tot_len <= counters->expected_data_len); 209 EXPECT(received == counters->recved_bytes + p->tot_len); 224 counters->recved_bytes += p->tot_len; 227 counters->recved_bytes_after_close += p->tot_len; 282 txcounters->num_tx_bytes += p->tot_len; 284 struct pbuf *p_copy = pbuf_alloc(PBUF_LINK, p->tot_len, PBUF_RAM);
|
/seL4-camkes-master/projects/lwip/src/core/ipv6/ |
H A D | icmp6.c | 104 if (ip6_chksum_pseudo(p, IP6_NEXTH_ICMP6, p->tot_len, ip6_current_src_addr(), 147 r = pbuf_alloc(PBUF_IP, p->tot_len, PBUF_RAM); 188 IP6_NEXTH_ICMP6, r->tot_len, reply_src, ip6_current_src_addr()); 415 icmp6hdr->chksum = ip6_chksum_pseudo(q, IP6_NEXTH_ICMP6, q->tot_len,
|
/seL4-camkes-master/projects/lwip/src/netif/ppp/ |
H A D | pppol2tp.c | 170 u16_t tot_len; local 187 tot_len = ph->tot_len; 197 MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, (u16_t)tot_len); 210 u16_t tot_len; local 231 tot_len = pb->tot_len; 240 MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, tot_len); 526 if (p->tot_len == 0) { 829 LWIP_ASSERT("pb->tot_len [all...] |
H A D | pppoe.c | 208 u16_t tot_len; local 228 tot_len = ph->tot_len; 238 MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, (u16_t)tot_len); 251 u16_t tot_len; local 272 tot_len = pb->tot_len; 281 MIB2_STATS_NETIF_ADD(ppp->netif, ifoutoctets, tot_len); 428 if(pb->tot_len == pb->len) { 432 pb->tot_len [all...] |
H A D | pppos.c | 223 /* Set nb->tot_len to actual payload length */ 224 nb->tot_len = p->len; 273 /* Set nb->tot_len to actual payload length */ 274 nb->tot_len = pb->tot_len; 305 PPPDEBUG(LOG_INFO, ("pppos_netif_output[%d]: proto=0x%"X16_F", len = %d\n", ppp->netif->num, protocol, pb->tot_len)); 307 PPPDEBUG(LOG_WARNING, ("pppos_netif_output[%d]: output failed proto=0x%"X16_F", len = %d\n", ppp->netif->num, protocol, pb->tot_len)); 541 pppos->in_tail->tot_len = pppos->in_tail->len; 546 pppos->in_tail->tot_len = pppos->in_tail->len; 551 pbuf_realloc(pppos->in_head, pppos->in_head->tot_len [all...] |
H A D | mppe.c | 204 np = pbuf_alloc(PBUF_RAW, MPPE_OVHD + sizeof(protocol) + (*pb)->tot_len, PBUF_RAM); 254 if (n->tot_len == n->len) { 390 if (n->tot_len == n->len) {
|
/seL4-camkes-master/projects/lwip/src/core/ipv4/ |
H A D | icmp.c | 101 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short ICMP (%"U16_F" bytes) received\n", p->tot_len)); 141 if (p->tot_len < sizeof(struct icmp_echo_hdr)) { 162 u16_t alloc_len = (u16_t)(p->tot_len + hlen); 163 if (alloc_len < p->tot_len) { 164 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed (tot_len overflow)\n"));
|
/seL4-camkes-master/projects/lwip/src/include/lwip/apps/ |
H A D | mqtt.h | 159 * @param tot_len Total length of publish data, if set to 0 (no publish payload) data callback will not be invoked 161 typedef void (*mqtt_incoming_publish_cb_t)(void *arg, const char *topic, u32_t tot_len);
|
/seL4-camkes-master/projects/lwip/src/include/lwip/ |
H A D | netbuf.h | 92 #define netbuf_len(buf) ((buf)->p->tot_len)
|
/seL4-camkes-master/projects/lwip/src/apps/lwiperf/ |
H A D | lwiperf.c | 459 u16_t tot_len; local 482 tot_len = p->tot_len; 488 if (p->tot_len < sizeof(lwiperf_settings_t)) { 523 tcp_recved(tpcb, p->tot_len); 555 LWIP_ASSERT("count mismatch", packet_idx == p->tot_len); 557 tcp_recved(tpcb, tot_len);
|
/seL4-camkes-master/projects/lwip/src/api/ |
H A D | netbuf.c | 163 buf->p->len = buf->p->tot_len = size;
|
/seL4-camkes-master/projects/lwip/test/unit/mqtt/ |
H A D | test_mqtt.c | 98 client->conn->rcv_wnd -= p->tot_len;
|