Small fix for ip-destination-address/source-tag report type for flow-report (flow-tools-0.67)
 
The report was actually using destination tag rather than source-tag.
 
Its just a few lines in function ftstat_rpt_72_accum in libs/ftstat.c changing it to the src tag instead of dst tag.
 
Steve.
 
Diff below:

11639c11639

< FT_RECGET_SRC_TAG(cur,rec,*fo);

---

> FT_RECGET_DST_TAG(cur,rec,*fo);

11642c11642

< ftch_recprefix_tag.tag = cur.src_tag;

---

> ftch_recprefix_tag.tag = cur.dst_tag;

11645c11645

< if (rpt->options & (FT_STAT_OPT_SRC_PREFIX_MASK|FT_STAT_OPT_SRC_PREFIX_LEN)) {

---

> if (rpt->options & (FT_STAT_OPT_DST_PREFIX_MASK|FT_STAT_OPT_DST_PREFIX_LEN)) {

11647c11647

< ftch_recprefix_tag.mask = cur.src_mask;

---

> ftch_recprefix_tag.mask = cur.dst_mask;

11651c11651

< if (rpt->options & FT_STAT_OPT_SRC_PREFIX_MASK)

---

> if (rpt->options & FT_STAT_OPT_DST_PREFIX_MASK)

_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools

Reply via email to