C~ implementation of Ethernet MAC