+void pkt_init_empty(
+ pkt_t *pkt,
+ pktype_t type)
+{
+ assert(pkt != NULL);
+ assert(strcmp(pkt_type2str(type), "BOGUS") != 0);
+
+ pkt->type = type;
+ pkt->packet_size = 1000;
+ pkt->body = alloc(pkt->packet_size);
+ pkt->body[0] = '\0';
+ pkt->size = strlen(pkt->body);
+}
+