Packet generation and initial header file