ipconfig: Added helper function that returns the config type