[flow-tools] Re: Possible bug in 0.63

Mark Fullmer maf@eng.oar.net
Mon, 16 Dec 2002 10:40:01 -0500


Fix below.

Index: ftstat.c
===================================================================
RCS file: /usr/home/djnz-cvsroot/flow-tools/lib/ftstat.c,v
retrieving revision 1.27
diff -c -r1.27 ftstat.c
*** ftstat.c	12 Dec 2002 22:57:37 -0000	1.27
--- ftstat.c	16 Dec 2002 15:36:46 -0000
***************
*** 2511,2517 ****
      (void*)ftstat_rpt_65_dump,
      (void*)ftstat_rpt_65_free,
      FT_STAT_FIELD_GENERIC,
!     FT_STAT_OPT_GENERIC_IP_ADDR,
      FT_XFIELD_DPKTS|FT_XFIELD_DOCTETS|FT_XFIELD_FIRST|FT_XFIELD_LAST|
        FT_XFIELD_UNIX_SECS|FT_XFIELD_UNIX_NSECS|FT_XFIELD_DSTPORT|
        FT_XFIELD_SRCPORT},
--- 2511,2517 ----
      (void*)ftstat_rpt_65_dump,
      (void*)ftstat_rpt_65_free,
      FT_STAT_FIELD_GENERIC,
!     FT_STAT_OPT_GENERIC,
      FT_XFIELD_DPKTS|FT_XFIELD_DOCTETS|FT_XFIELD_FIRST|FT_XFIELD_LAST|
        FT_XFIELD_UNIX_SECS|FT_XFIELD_UNIX_NSECS|FT_XFIELD_DSTPORT|
        FT_XFIELD_SRCPORT},
***************
*** 14226,14232 ****
    if (rpt->out->options & FT_STAT_OPT_NAMES)
      ftsym = ftsym_new(symfile);
  
!   start = end = nindex, increment = 1;
  
    if (rpt->out->options & FT_STAT_OPT_SORT) {
  
--- 14226,14232 ----
    if (rpt->out->options & FT_STAT_OPT_NAMES)
      ftsym = ftsym_new(symfile);
  
!   start = 0; end = nindex, increment = 1;
  
    if (rpt->out->options & FT_STAT_OPT_SORT) {

mark
  

On Mon, Dec 16, 2002 at 02:09:47PM -0000, Nik Hinson wrote:
> Hi Mark,
> 
> I came across an inconsistancy between 0.63p and 0.63 concerning
> flow-report when using ip-port.  In 0.63p this seems to work OK but in
> 0.63 (and 0.63p1 and p3) it gives you a blank report.
> 
> cheers
> 
> Nik
>