#include "packet.h" #include struct packet *packet_create(size_t packet_size) { size_t real_packet_size = sizeof(struct packet) + packet_size - sizeof(struct mxdbg_packet); return calloc(1, real_packet_size); } void packet_destroy(struct packet *packet) { free(packet); }