1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

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:
Conrad Meyer 2019-05-10 23:10:22 +00:00
parent 5098ed5f3b
commit 070e7bf95e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347471

View File

@ -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;