switch-case in eth_handler() and various functions to handle various packet types