netdump: Fix boot-time configuration typo
Boot-time netdump configuration is much more useful if one can configure the client and gateway addresses. Fix trivial typo. (Long-standing bug, I believe it dates to the original netdump commit.) Spotted by: one of vangyzen@ or markj@ Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
5098ed5f3b
commit
070e7bf95e
@ -1394,11 +1394,11 @@ netdump_modevent(module_t mod __unused, int what, void *priv __unused)
|
||||
freeenv(arg);
|
||||
}
|
||||
if ((arg = kern_getenv("net.dump.client")) != NULL) {
|
||||
inet_aton(arg, &conf.kda_server.in4);
|
||||
inet_aton(arg, &conf.kda_client.in4);
|
||||
freeenv(arg);
|
||||
}
|
||||
if ((arg = kern_getenv("net.dump.gateway")) != NULL) {
|
||||
inet_aton(arg, &conf.kda_server.in4);
|
||||
inet_aton(arg, &conf.kda_gateway.in4);
|
||||
freeenv(arg);
|
||||
}
|
||||
conf.kda_af = AF_INET;
|
||||
|
Loading…
x
Reference in New Issue
Block a user