[dsc] qtype dataset is empty
Duane Wessels
wessels at measurement-factory.com
Wed May 20 16:24:59 UTC 2009
On Tue, 19 May 2009, Andrew Ruthven wrote:
> git clone http://git.catalyst.net.nz/dsc.git
>
> gitweb http://git.catalyst.net.nz/gw?p=dsc.git
Hi Andrew,
Can you apply the attached patch to collector/dsc/qtype_index.c
(which just adds some debugging) and then run dsc in debug mode as
before?
DW
-------------- next part --------------
--- ../orig/dsc/collector/dsc/qtype_index.c 2009-05-19 01:11:08.000000000 +0000
+++ collector/dsc/qtype_index.c 2009-05-20 16:19:55.000000000 +0000
@@ -13,14 +13,17 @@
{
const dns_message *m = vp;
int i;
+ fprintf(stderr, "qtype_indexer: malformed=%d, qtype=%d\n", m->malformed, m->qtype);
if (m->malformed)
return -1;
for (i = 0; i < next_idx; i++) {
if (m->qtype == idx_to_qtype[i]) {
+ fprintf(stderr, "qtype_indexer: return %d\n", i);
return i;
}
}
idx_to_qtype[next_idx] = m->qtype;
+ fprintf(stderr, "qtype_indexer: return %d\n", next_idx);
return next_idx++;
}
More information about the dsc
mailing list