Implement support for VLAN encapsulation.

Change-Id: I153fdd5e7d6cda2da01b1b19be42c14986334131
Signed-off-by: Rob Adams <readams@readams.net>