Refactor out the sysctlbyname stuff into a new function, uinet_sysctlbyname().