Author: metze Date: 2006-01-18 16:32:24 +0000 (Wed, 18 Jan 2006) New Revision: 13006
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13006 Log: always debug the unicast and broadcast address metze Modified: branches/SAMBA_4_0/source/nbt_server/register.c Changeset: Modified: branches/SAMBA_4_0/source/nbt_server/register.c =================================================================== --- branches/SAMBA_4_0/source/nbt_server/register.c 2006-01-18 16:27:29 UTC (rev 13005) +++ branches/SAMBA_4_0/source/nbt_server/register.c 2006-01-18 16:32:24 UTC (rev 13006) @@ -45,9 +45,9 @@ status = nbt_name_refresh_recv(req, tmp_ctx, &io); if (NT_STATUS_EQUAL(status, NT_STATUS_IO_TIMEOUT)) { - DEBUG(4,("Refreshed name %s on %s\n", - nbt_name_string(tmp_ctx, &iname->name), - iname->iface->ip_address)); + DEBUG(4,("Refreshed name %s with %s on interface %s\n", + nbt_name_string(tmp_ctx, &iname->name), + iname->iface->ip_address, iname->iface->bcast_address)); iname->registration_time = timeval_current(); nbtd_start_refresh_timer(iname); talloc_free(tmp_ctx); @@ -58,14 +58,14 @@ iname->nb_flags &= ~NBT_NM_ACTIVE; if (NT_STATUS_IS_OK(status)) { - DEBUG(1,("Name conflict from %s refreshing name %s on %s - %s\n", + DEBUG(1,("Name conflict from %s refreshing name %s with %s on interface %s - %s\n", io.out.reply_addr, nbt_name_string(tmp_ctx, &iname->name), - iname->iface->ip_address, + iname->iface->ip_address, iname->iface->bcast_address, nt_errstr(nbt_rcode_to_ntstatus(io.out.rcode)))); } else { - DEBUG(1,("Error refreshing name %s on %s - %s\n", + DEBUG(1,("Error refreshing name %s with %s on interface %s - %s\n", nbt_name_string(tmp_ctx, &iname->name), - iname->iface->ip_address, + iname->iface->ip_address, iname->iface->bcast_address, nt_errstr(status))); } @@ -141,9 +141,9 @@ if (NT_STATUS_IS_OK(status)) { /* good - nobody complained about our registration */ iname->nb_flags |= NBT_NM_ACTIVE; - DEBUG(3,("Registered %s on interface %s\n", + DEBUG(3,("Registered %s with %s on interface %s\n", nbt_name_string(tmp_ctx, &iname->name), - iname->iface->bcast_address)); + iname->iface->ip_address, iname->iface->bcast_address)); iname->registration_time = timeval_current(); talloc_free(tmp_ctx); nbtd_start_refresh_timer(iname); @@ -153,8 +153,9 @@ /* someone must have replied with an objection! */ iname->nb_flags |= NBT_NM_CONFLICT; - DEBUG(1,("Error registering %s on interface %s - %s\n", - nbt_name_string(tmp_ctx, &iname->name), iname->iface->bcast_address, + DEBUG(1,("Error registering %s with %s on interface %s - %s\n", + nbt_name_string(tmp_ctx, &iname->name), + iname->iface->ip_address, iname->iface->bcast_address, nt_errstr(status))); talloc_free(tmp_ctx); }
