add struct packet