added codes for 802.1Q (tag VLAN)
fixed a bug on SSL