DEBUG(10,("Storing key: .%s:%s.\n",tlk->service_name,tlk->volume_name));
DEBUG(10,("Data: referral_count : %u\n",tld->referral_count));
for(i=0;i<tld->referral_count;i++)
- DEBUG(10,("Path %d: %s, proximity: %u, ttl: %u\n",junction->referral_list[i].alternate_path));
+ {
+ struct referral* ref = &(junction->referral_list[i]);
+ DEBUG(10,("Path %d: %s, proximity: %u, ttl: %u\n",i+1,
+ ref->alternate_path,ref->proximity,ref->ttl));
+ }
if( tdb_store(msdfs_map,key,data,TDB_REPLACE) != 0)
{
while( ((tok[count]=strtok(NULL,":")) != NULL) && count<MAXTOK_IN_REFERRAL)
count++;
- DEBUG(10,("parse_referral: Tokens\n"));
+ DEBUG(10,("parse_referral: Tokens"));
for(i=0;i<count;i++)
- DEBUG(10,("\t%s\n",tok[i]));
-
+ DEBUG(10,(" %s",tok[i]));
+ DEBUG(10,(".\n"));
if(count > 0)
pstrcpy(ref->alternate_path,tok[0]);
else
ref->proximity = 0;
if(count > 2)
- ref->ttl = atoi(tok[1]);
+ ref->ttl = atoi(tok[2]);
else
ref->ttl = REFERRAL_TTL;
-
+
return True;
}