/* reuse tcp medatada for now */
vnet_buffer (b)->tcp.connection_index = uc->c_c_index;
+ uc->bytes_out += vlib_buffer_length_in_chain (vm, b);
+ uc->dgrams_out += 1;
+
if (!is_cless)
{
uh = vlib_buffer_push_udp (b, uc->c_lcl_port, uc->c_rmt_port);
vnet_buffer (b)->tcp.flags |= UDP_CONN_F_LISTEN;
}
- uc->bytes_out += vlib_buffer_length_in_chain (vm, b);
- uc->dgrams_out += 1;
uh->checksum =
udp_compute_checksum (vm, b, udp_csum_offload (uc), uc->c_is_ip4);
}
else
{
- uc0->bytes_in += wrote0;
+ uc0->bytes_in += wrote0 - sizeof (session_dgram_hdr_t);
uc0->dgrams_in += 1;
}
}
else
{
- uc0->bytes_in += wrote0;
+ uc0->bytes_in += wrote0 - sizeof (session_dgram_hdr_t);
uc0->dgrams_in += 1;
}
}