webui: modify generate_packets.cgi