fixed ipv4 bug, added vlan-tagging feature