From f14a7c5ce8864714fa8fa7f8fe8d630a6ab0861f Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Sun, 27 Oct 1996 14:22:56 +0000 Subject: severe debugging session for nmbd. in fact, i'm surprised that browsing in 1.9.16 works at all! question and resource record types for queries and response netbios packets sorted out properly (see rfc1002.txt 4.2.1.3). receipt of browser announcement packets were playing up lkcl (This used to be commit b289db62f1a53f1a68ea48dbfa59720cc778d39c) --- source3/namedbsubnet.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'source3/namedbsubnet.c') diff --git a/source3/namedbsubnet.c b/source3/namedbsubnet.c index 16eeb6322e..367179b6c6 100644 --- a/source3/namedbsubnet.c +++ b/source3/namedbsubnet.c @@ -87,22 +87,25 @@ struct subnet_record *find_subnet(struct in_addr bcast_ip) the source ip address. a subnet 255.255.255.255 represents the WINS list. */ - for (d = subnetlist; d; d = d->next) + for (d = subnetlist; d; d = d->next) { if (ip_equal(bcast_ip, wins_ip)) { - if (ip_equal(bcast_ip, d->bcast_ip)) - { - return d; - } + if (ip_equal(bcast_ip, d->bcast_ip)) + { + return d; + } } else if (same_net(bcast_ip, d->bcast_ip, d->mask_ip)) { - return(d); + if (!ip_equal(d->bcast_ip, wins_ip)) + { + return d; + } } } - return (NULL); + return (NULL); } -- cgit