packet processing functions
initial packet datatype work
intial total overhaul work
pattern fix