Restore some comments in previous commit.
This commit is contained in:
@@ -428,7 +428,7 @@ readtab(force)
|
|||||||
if (hp->flags.iaddr) {
|
if (hp->flags.iaddr) {
|
||||||
nhosts++;
|
nhosts++;
|
||||||
}
|
}
|
||||||
/* by HW addr if known. */
|
/* Register by HW addr if known. */
|
||||||
if (hp->flags.htype && hp->flags.haddr) {
|
if (hp->flags.htype && hp->flags.haddr) {
|
||||||
/* We will either insert it or free it. */
|
/* We will either insert it or free it. */
|
||||||
hp->linkcount++;
|
hp->linkcount++;
|
||||||
@@ -441,7 +441,7 @@ readtab(force)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* by IP addr if known. */
|
/* Register by IP addr if known. */
|
||||||
if (hp->flags.iaddr) {
|
if (hp->flags.iaddr) {
|
||||||
hashcode = hash_HashFunction((u_char *) & (hp->iaddr.s_addr), 4);
|
hashcode = hash_HashFunction((u_char *) & (hp->iaddr.s_addr), 4);
|
||||||
if (hash_Insert(iphashtable, hashcode, nullcmp, hp, hp) < 0) {
|
if (hash_Insert(iphashtable, hashcode, nullcmp, hp, hp) < 0) {
|
||||||
@@ -452,7 +452,7 @@ readtab(force)
|
|||||||
hp->linkcount++;
|
hp->linkcount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* by Name (always known) */
|
/* Register by Name (always known) */
|
||||||
hashcode = hash_HashFunction((u_char *) hp->hostname->string,
|
hashcode = hash_HashFunction((u_char *) hp->hostname->string,
|
||||||
strlen(hp->hostname->string));
|
strlen(hp->hostname->string));
|
||||||
if (hash_Insert(nmhashtable, hashcode, nullcmp,
|
if (hash_Insert(nmhashtable, hashcode, nullcmp,
|
||||||
|
|||||||
Reference in New Issue
Block a user