Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Sep 2010 13:44:55 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r213299 - projects/sv/sys/netinet
Message-ID:  <201009301344.o8UDith7071168@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Thu Sep 30 13:44:55 2010
New Revision: 213299
URL: http://svn.freebsd.org/changeset/base/213299

Log:
  nd_server_port may have switched since the first ack of the first
  call. Reset accordingly.
  
  Reported by:	Sergey Kandaurov <pluknet at gmail dot com>
  Submitted by:	rstone

Modified:
  projects/sv/sys/netinet/netdump_client.c

Modified: projects/sv/sys/netinet/netdump_client.c
==============================================================================
--- projects/sv/sys/netinet/netdump_client.c	Thu Sep 30 13:31:35 2010	(r213298)
+++ projects/sv/sys/netinet/netdump_client.c	Thu Sep 30 13:44:55 2010	(r213299)
@@ -1174,6 +1174,11 @@ netdump_trigger(void *arg, int howto)
 	dumptid = curthread->td_tid;
 	dumping++;
 
+	/*
+	 * nd_server_port could have switched after the first ack the
+	 * first time it gets called.  Adjust it accordingly.
+	 */
+	nd_server_port = NETDUMP_PORT;
 	if ((nd_nic->if_capenable & IFCAP_POLLING) == 0) {
 #if defined(KDB) && !defined(KDB_UNATTENDED)
 		if (panicstr == NULL)



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