summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_incomingrequests.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-30 08:45:23 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-30 08:45:23 +0000
commit179e8c66f121e01b5e69ad8b1c39f8a1a1e45814 (patch)
treee404f029fbf2641365d5f618217d741cffae462c /source3/nmbd/nmbd_incomingrequests.c
parent3debe642bd299e1aed8578df342f4bfecf5d8b3b (diff)
downloadsamba-179e8c66f121e01b5e69ad8b1c39f8a1a1e45814.tar.gz
samba-179e8c66f121e01b5e69ad8b1c39f8a1a1e45814.tar.bz2
samba-179e8c66f121e01b5e69ad8b1c39f8a1a1e45814.zip
changed the way that name query records are sorted in replies. They
are now sorted by the number of common leading bits in the IP address with the address of the querying host. (This used to be commit 4460a1bc6aa7666d1c71d32ba73855d6ed32320a)
Diffstat (limited to 'source3/nmbd/nmbd_incomingrequests.c')
-rw-r--r--source3/nmbd/nmbd_incomingrequests.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd_incomingrequests.c b/source3/nmbd/nmbd_incomingrequests.c
index c2b8be212f..97d223b291 100644
--- a/source3/nmbd/nmbd_incomingrequests.c
+++ b/source3/nmbd/nmbd_incomingrequests.c
@@ -555,6 +555,9 @@ on the same subnet (%s) as the requestor. Not replying.\n",
set_nb_flags(&prdata[i*6],namerec->data.nb_flags);
putip((char *)&prdata[2+(i*6)], &namerec->data.ip[i]);
}
+
+ sort_query_replies(prdata, i, p->ip);
+
reply_data_len = namerec->data.num_ips * 6;
success = True;
}