Lines Matching defs:tbuf
52 static char tbuf[TEST_SZ], rbuf[TEST_SZ];
157 off += build_vnet_header(tbuf);
158 off += build_eth_header(tbuf + off);
159 off += build_ipv4_header(tbuf + off, payload_len);
160 off += build_udp_header(tbuf + off, payload_len);
162 if (off + payload_len > sizeof(tbuf))
165 memset(tbuf + off, DATA_CHAR, payload_len);
243 do_send(fd, tbuf, len);
374 tbuf + sizeof(struct virtio_net_hdr));
376 do_rx(fdr, cfg_payload_len, tbuf + total_len - cfg_payload_len);