Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2019 23:10:23 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347471 - head/sys/netinet/netdump
Message-ID:  <201905102310.x4ANANSZ088536@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Fri May 10 23:10:22 2019
New Revision: 347471
URL: https://svnweb.freebsd.org/changeset/base/347471

Log:
  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

Modified:
  head/sys/netinet/netdump/netdump_client.c

Modified: head/sys/netinet/netdump/netdump_client.c
==============================================================================
--- head/sys/netinet/netdump/netdump_client.c	Fri May 10 23:10:22 2019	(r347470)
+++ head/sys/netinet/netdump/netdump_client.c	Fri May 10 23:10:22 2019	(r347471)
@@ -1394,11 +1394,11 @@ netdump_modevent(module_t mod __unused, int what, void
 				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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905102310.x4ANANSZ088536>