Index: ftstat.c =================================================================== RCS file: /usr/home/djnz-cvsroot/flow-tools/lib/ftstat.c,v retrieving revision 1.26 diff -c -r1.26 ftstat.c *** lib/ftstat.c 12 Dec 2002 14:03:45 -0000 1.26 --- lib/ftstat.c 12 Dec 2002 22:56:04 -0000 *************** *** 3081,3088 **** ftsrpt = ftsrpti->rpt; ! /* if the tag mask option is set apply the masks */ ! if (active_def->ftd && (ftsrpt->options & FT_STAT_OPT_TAG_MASK)) { /* preserve tags */ FT_RECGET_SRC_TAG(cur,rec,*fo); --- 3081,3092 ---- ftsrpt = ftsrpti->rpt; ! /* ! * if the tag mask option is set apply the masks, not this can only ! * be set if the tags exist. ! * ! */ ! if (ftsrpt->options & FT_STAT_OPT_TAG_MASK) { /* preserve tags */ FT_RECGET_SRC_TAG(cur,rec,*fo); *************** *** 3106,3112 **** /* restore tags */ restore_tag: ! if (active_def->ftd && (ftsrpt->options & FT_STAT_OPT_TAG_MASK)) { *((u_int32*)(rec+(*fo).src_tag)) = cur.src_tag; *((u_int32*)(rec+(*fo).dst_tag)) = cur.dst_tag; --- 3110,3116 ---- /* restore tags */ restore_tag: ! if (ftsrpt->options & FT_STAT_OPT_TAG_MASK) { *((u_int32*)(rec+(*fo).src_tag)) = cur.src_tag; *((u_int32*)(rec+(*fo).dst_tag)) = cur.dst_tag; *************** *** 3589,3594 **** --- 3593,3599 ---- lp->cur_rpt->tag_mask_dst = strtoul(lp->word, (char**)0L, 0); lp->cur_rpt->options |= FT_STAT_OPT_TAG_MASK; + lp->cur_rpt->xfields |= FT_XFIELD_SRC_TAG|FT_XFIELD_DST_TAG; return 0;