Open GoogleCodeExporter opened 9 years ago
It seems there is a patch available here, nmbd[856]:
https://bugzilla.samba.org/show_bug.cgi?id=2439
note: title should be "nmbd[856]: query_name_response: Multiple (2) responses
received"
Original comment by leandro.ong@gmail.com
on 13 Sep 2014 at 6:52
patch: https://attachments.samba.org/attachment.cgi?id=1026
--- samba-3.0.11.org/source/nmbd/nmbd_namequery.c Mon Oct 25 22:05:05 2004
+++ samba-3.0.11.new/source/nmbd/nmbd_namequery.c Mon Mar 7 12:32:11 2005
@@ -23,6 +23,10 @@
#include "includes.h"
+/* -ffh 2005-2-23 (Filipe Henriques):
+ Keep record of last response. */
+struct in_addr last_answer_ip;
+
/****************************************************************************
Deal with a response packet when querying a name.
****************************************************************************/
@@ -83,7 +87,11 @@
success = True;
putip((char *)&answer_ip,&nmb->answers->rdata[2]);
-
+
+ /* -ffh 2005-2-23 (Filipe Henriques):
+ Keep record of this response. */
+ putip((char *)&last_answer_ip,&nmb->answers->rdata[2]);
+
if( DEBUGLVL( 5 ) ) {
dbgtext( "query_name_response: On subnet %s ", subrec->subnet_name );
dbgtext( "- positive response from IP %s ", inet_ntoa(p->ip) );
@@ -97,8 +105,14 @@
*/
}
} else if( rrec->num_msgs > 1) {
+ /* More than one response. */
- if( DEBUGLVL( 0 ) ) {
+ /* -ffh 2005-2-23 (Filipe Henriques):
+ If this response answered the same IP address,
+ then that's because the network got reduncy servers
+ responding to this query.
+ Ignore, unless high debug level or diferent IP address. */
+ if( DEBUGLVL( 5 ) || ( (memcmp (&last_answer_ip, &nmb->answers->rdata[2], 4)
!= 0) && DEBUGLVL( 0 ) ) ) {
if (nmb->answers)
putip( (char *)&answer_ip, &nmb->answers->rdata[2] );
dbgtext( "query_name_response: " );
@@ -107,6 +121,7 @@
dbgtext( "for name %s.\nThis response ", nmb_namestr(question_name) );
dbgtext( "was from IP %s, reporting ", inet_ntoa(p->ip) );
dbgtext( "an IP address of %s.\n", inet_ntoa(answer_ip) );
+ dbgtext( "Previous response reported an IP address of %s.\n",
inet_ntoa(last_answer_ip) );
}
/* We have already called the success or fail function, so we
Original comment by leandro.ong@gmail.com
on 13 Sep 2014 at 6:56
What device are you using? Let's compile and check if it fixes this issue.
Or maybe you've already done it, have you?...
Original comment by d...@soulblader.com
on 14 Sep 2014 at 1:13
[deleted comment]
[deleted comment]
After applying patches this is what I get in the system log:
....
ep 14 14:17:12 nmbd[629]: [2014/09/14 14:17:12, 0]
nmbd/nmbd_namequery.c:query_name_response(123)
Sep 14 14:17:12 nmbd[629]: query_name_response: Multiple (2) responses
received for a query on subnet 10.0.1.1 for name WONG<1d>.
Sep 14 14:17:12 nmbd[629]: This response was from IP 10.0.1.10, reporting an
IP address of 10.0.1.10.
Sep 14 14:17:12 nmbd[629]: Previous response reported an IP address of
169.254.40.192.
Sep 14 14:22:17 nmbd[629]: [2014/09/14 14:22:17, 0]
nmbd/nmbd_namequery.c:query_name_response(123)
Sep 14 14:22:17 nmbd[629]: query_name_response: Multiple (2) responses
received for a query on subnet 10.0.1.1 for name WONG<1d>.
Sep 14 14:22:17 nmbd[629]: This response was from IP 10.0.1.10, reporting an
IP address of 10.0.1.10.
Sep 14 14:22:17 nmbd[629]: Previous response reported an IP address of
169.254.40.192.
Sep 14 14:27:19 nmbd[629]: [2014/09/14 14:27:19, 0]
nmbd/nmbd_namequery.c:query_name_response(123)
Sep 14 14:27:19 nmbd[629]: query_name_response: Multiple (2) responses
received for a query on subnet 10.0.1.1 for name WONG<1d>.
Sep 14 14:27:19 nmbd[629]: This response was from IP 10.0.1.10, reporting an
IP address of 10.0.1.10.
Sep 14 14:27:19 nmbd[629]: Previous response reported an IP address of
169.254.40.192.
Sep 14 14:32:20 nmbd[629]: [2014/09/14 14:32:20, 0]
nmbd/nmbd_namequery.c:query_name_response(123)
Sep 14 14:32:20 nmbd[629]: query_name_response: Multiple (2) responses
received for a query on subnet 10.0.1.1 for name WONG<1d>.
Sep 14 14:32:20 nmbd[629]: This response was from IP 10.0.1.10, reporting an
IP address of 10.0.1.10.
Sep 14 14:32:20 nmbd[629]: Previous response reported an IP address of
169.254.40.192.
Sep 14 14:37:29 nmbd[629]: [2014/09/14 14:37:29, 0]
nmbd/nmbd_namequery.c:query_name_response(123)
Sep 14 14:37:29 nmbd[629]: query_name_response: Multiple (2) responses
received for a query on subnet 10.0.1.1 for name WONG<1d>.
Sep 14 14:37:29 nmbd[629]: This response was from IP 10.0.1.10, reporting an
IP address of 10.0.1.10.
Sep 14 14:37:29 nmbd[629]: Previous response reported an IP address of
169.254.40.192.
Sep 14 14:42:30 nmbd[629]: [2014/09/14 14:42:30, 0]
nmbd/nmbd_namequery.c:query_name_response(123)
Sep 14 14:42:30 nmbd[629]: query_name_response: Multiple (2) responses
received for a query on subnet 10.0.1.1 for name WONG<1d>.
Sep 14 14:42:30 nmbd[629]: This response was from IP 10.0.1.10, reporting an
IP address of 10.0.1.10.
Sep 14 14:42:30 nmbd[629]: Previous response reported an IP address of
169.254.40.192.
Sep 14 14:47:33 nmbd[629]: [2014/09/14 14:47:33, 0]
nmbd/nmbd_namequery.c:query_name_response(123)
Sep 14 14:47:33 nmbd[629]: query_name_response: Multiple (2) responses
received for a query on subnet 10.0.1.1 for name WONG<1d>.
Sep 14 14:47:33 nmbd[629]: This response was from IP 10.0.1.10, reporting an
IP address of 10.0.1.10.
Sep 14 14:47:33 nmbd[629]: Previous response reported an IP address of
169.254.40.192.
Sep 14 14:52:41 nmbd[629]: [2014/09/14 14:52:41, 0]
nmbd/nmbd_namequery.c:query_name_response(123)
Sep 14 14:52:41 nmbd[629]: query_name_response: Multiple (2) responses
received for a query on subnet 10.0.1.1 for name WONG<1d>.
Sep 14 14:52:41 nmbd[629]: This response was from IP 10.0.1.10, reporting an
IP address of 10.0.1.10.
Sep 14 14:52:41 nmbd[629]: Previous response reported an IP address of
169.254.40.192.
Sep 14 14:57:43 nmbd[629]: [2014/09/14 14:57:43, 0]
nmbd/nmbd_namequery.c:query_name_response(123)
Sep 14 14:57:43 nmbd[629]: query_name_response: Multiple (2) responses
received for a query on subnet 10.0.1.1 for name WONG<1d>.
Sep 14 14:57:43 nmbd[629]: This response was from IP 10.0.1.10, reporting an
IP address of 10.0.1.10.
Sep 14 14:57:43 nmbd[629]: Previous response reported an IP address of
169.254.40.192.
...
Original comment by leandro.ong@gmail.com
on 14 Sep 2014 at 7:01
device is rt-n56u
Original comment by leandro.ong@gmail.com
on 14 Sep 2014 at 7:02
ip 10.0.1.10 is tomato router connected via wireless ethernet brdige
Original comment by leandro.ong@gmail.com
on 14 Sep 2014 at 7:06
Pls. view this image of conflicting IP between win7 and virtualBox,
https://www.dropbox.com/s/p0y50m9t6bh08p7/ip%20conflict.PNG?dl=0
What happens router does not assign MAC address given by virtualbox, instead it
uses the win7 MAC address, where it is installed.
Original comment by leandro.ong@gmail.com
on 14 Sep 2014 at 8:00
If you use VBox Host-Only adapter, the address its interface should be in
different network than 10.0.1.0/16. The address can be in the same network in
bridge mode.
Original comment by d...@soulblader.com
on 14 Sep 2014 at 10:59
Original issue reported on code.google.com by
leandro.ong@gmail.com
on 27 Aug 2014 at 10:03