improved link layer type checking / changing
added check for zero snaplen