l2: avoid overflow read of mac address