msgb_bytes_used
return msgb_bytes_used(&msgb);
ssh_packet_set_data(packet, msgb.begin, msgb_bytes_used(&msgb));