mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
Distinguish cases when ncp module not loaded and when module have old
interface.
This commit is contained in:
parent
efdb85c8f4
commit
33e1041767
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129978
@ -251,7 +251,10 @@ ncp_initlib(void){
|
||||
return 0;
|
||||
error = sysctlbyname("net.ncp.version", &kv, &kvlen, NULL, 0);
|
||||
if (error) {
|
||||
fprintf(stderr, "%s: kernel module is old, please recompile it.\n", __FUNCTION__);
|
||||
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;
|
||||
}
|
||||
if (NCP_VERSION != kv) {
|
||||
|
Loading…
Reference in New Issue
Block a user