Packet.c
packet* create_packet(FILE* fp) {
	packet* new_packet = NULL;
	assert(new_packet = (packet*)malloc(sizeof(packet)));
	packet_read(fp, new_packet);

	return new_packet;
}
/*creates a packet with allocated memory*/
creates a packet with allocated memory
creates a packet with allocated memory
packet* create_packet(FILE* fp) {
	packet* new_packet = NULL;
	assert(new_packet = (packet*)malloc(sizeof(packet)));
	packet_read(fp, new_packet);
	return new_packet;
}
packet * create_packet ( FILE * fp ) { packet * new_packet = NULL ; assert ( new_packet = ( packet * ) malloc ( sizeof ( packet ) ) ) ; packet_read ( fp , new_packet ) ; return new_packet ; }
creates a packet with allocated memory
creates a packet with allocated memory