generalize packets