Problem with tcpdump file reading in sflowtool.c

From: Richard Clayton <richard@highwayman.com>
Date: 02/06/06
Message-ID: <$XzMDfhEU55DFAZB@highwayman.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There's a problem in sflowtool.c when reading from tcpdump files...

One of the diagnostic messages is sent to STDOUT rather than STDERR
which makes rather a mess of things if you're generating another tcpdump
file as output (because that's always on STDOUT, there's no filename
parameter for the -t option)

The fix is trivial...

2495c2495
< printf("\npcap_timestamp = %s\n", ctime(&tim));
- ---
> fprintf(stderr, "\npcap_timestamp = %s\n", ctime(&tim));

- --
richard @ highwayman . com "Nothing seems the same
                          Still you never see the change from day to day
                                And no-one notices the customs slip away"

-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1

iQA/AwUBQ+eVBJoAxkTY1oPiEQKYbQCg2VtYAJcwL01Ihzx6/tWX2LV9xYYAoK2n
L0pKuJrakrxGs8iiGaZF5act
=xArm
-----END PGP SIGNATURE-----
Received on Mon Feb 6 10:37:07 2006

This archive was generated by hypermail 2.1.8 : 02/06/06 PST