add Ethernet frame encoding