svn commit: r213299 - projects/sv/sys/netinet
Attilio Rao
attilio at FreeBSD.org
Thu Sep 30 13:44:55 UTC 2010
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)
More information about the svn-src-projects
mailing list