[ethernet] Move Ethernet MAC address checking routines to ethernet.h