turns packet_db format to packets.h format