tcpdump mailing list archives

Re: [PATCH] replacement print-sflow.c to include


From: Guy Harris <guy () alum mit edu>
Date: Thu, 14 Apr 2011 11:47:08 -0700


On Apr 14, 2011, at 11:45 AM, Rick Jones wrote:

Cool.  BTW, I just found a bug in the print_counters routines - i was
manipulating based on the size of the pointer rather than the struct to
which it pointed.  in 64-bit (where I'm running) the two were the same,
but in 32 bit they were not.

So, it should be:

      tptr += sizeof(struct sflow_counter_record_t);
      tlen -= sizeof(struct sflow_counter_record_t);

and a similar change for the flow_counter printing routine.

Yeah, I caught and fixed those, too.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: