Distinguish cases when ncp module not loaded and when module have old
interface.
This commit is contained in:
parent
efdb85c8f4
commit
33e1041767
@ -251,6 +251,9 @@ ncp_initlib(void){
|
||||
return 0;
|
||||
error = sysctlbyname("net.ncp.version", &kv, &kvlen, NULL, 0);
|
||||
if (error) {
|
||||
if (errno == ENOENT)
|
||||
fprintf(stderr, "Kernel module ncp is not loaded.\n");
|
||||
else
|
||||
fprintf(stderr, "%s: kernel module is old, please recompile it.\n", __FUNCTION__);
|
||||
return error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user