[PATCH 2/6] packet.c: processpacket(): change if()s into switch()es