summaryrefslogtreecommitdiff
path: root/source4/nbt_server/packet.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-08 01:09:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:36 -0500
commit998c856d9005cd8e1111a939db6fa7b25196b766 (patch)
treecc562247c591a12fbad4d9fce76c7e816636d511 /source4/nbt_server/packet.c
parent2513ac33de03e4c92f6d4a10595db44700971bb8 (diff)
downloadsamba-998c856d9005cd8e1111a939db6fa7b25196b766.tar.gz
samba-998c856d9005cd8e1111a939db6fa7b25196b766.tar.bz2
samba-998c856d9005cd8e1111a939db6fa7b25196b766.zip
r5276: - added support for NBT_OPCODE_REFRESH2 (type 0x9)
- when registering with a WINS server, initially use multi-homed registration, then switch to name refresh requests. Send refresh requests only to the WINS server that responded to our registration. If that server goes away, then start the registration from scratch. This makes registration more robust to WINS server failure. - send WINS registration requests out on our first interface rather than an unbound interface, to avoid the problem of WACK replies being sent to the wrong port (w2k3 WINS server does this) (This used to be commit f7712ac7468184c07b3e3c10cb7b847ad1791dd2)
Diffstat (limited to 'source4/nbt_server/packet.c')
-rw-r--r--source4/nbt_server/packet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/nbt_server/packet.c b/source4/nbt_server/packet.c
index ac803f3d5e..a6df618a3f 100644
--- a/source4/nbt_server/packet.c
+++ b/source4/nbt_server/packet.c
@@ -61,7 +61,8 @@ BOOL nbtd_self_packet(struct nbt_name_socket *nbtsock,
/* this uses the fact that iface->nbtsock is our non-broadcast
listen address */
- if (iface->nbtsock == nbtsock) {
+ if (iface->nbtsock == nbtsock &&
+ iface != iface->nbtsrv->bcast_interface) {
return False;
}