Fix eth_type matching for frames with vlan 

Along with memory leakage fix and .gitignore update.