net/ice: refactor packet type parsing