I've never heard of any wartime LA militia general named Dunlap. That doesn't preclude his being a militia general well before the Civil War.
The Dunlap who commanded the artillery battalion was another man.