General outline of handle packet and IP sanity checking