Ensure we register the 1c name on the unicast subnet.
authorJeremy Allison <jra@samba.org>
Tue, 8 Oct 2002 18:24:12 +0000 (18:24 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 8 Oct 2002 18:24:12 +0000 (18:24 +0000)
Jeremy.
(This used to be commit ca6146c2d345902446665ebfa88f78a06eb58831)

source3/nmbd/nmbd_logonnames.c

index 1406515d6be973b87c5ea52976452eca140ebf5e..28e0e8a02ba9d80019d242226594eb1cf891e0b9 100644 (file)
@@ -109,6 +109,16 @@ in workgroup %s on subnet %s\n",
   /* Tell the namelist writer to write out a change. */
   subrec->work_changed = True;
 
+  /*
+   * Add the WORKGROUP<1C> name to the UNICAST subnet with the IP address
+   * for this subnet so we will respond to queries on this name.
+   */
+  {
+         struct nmb_name nmbname;
+         make_nmb_name(&nmbname,global_myworkgroup,0x1c);
+         insert_permanent_name_into_unicast(subrec, &nmbname, 0x1c);
+  }
+
   DEBUG(0,("become_logon_server_success: Samba is now a logon server \
 for workgroup %s on subnet %s\n", work->work_group, subrec->subnet_name));
 }