Lines Matching refs:data_len
431 int32_t data_len = 0;
473 if (buffer_offset < data_len + sizeof(u_int32_t)) {
483 if (data_len == 0)
484 data_len = ntohl(*(u_int32_t *)buffer);
487 "data_len=%d\n", len, buffer_offset, data_len);
490 while (data_len != 0 &&
491 buffer_offset >= data_len + sizeof(u_int32_t)) {
493 tap->write(data, data_len);
494 DPRINTF("Sent packet to ethernet len = %d\n", data_len);
495 DDUMP(data, data_len);
497 buffer_offset -= data_len + sizeof(u_int32_t);
498 if (buffer_offset > 0 && data_len > 0) {
499 memmove(buffer, data + data_len, buffer_offset);
500 data_len = ntohl(*(u_int32_t *)buffer);
502 data_len = 0;