Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
{
u_int8_t *p;
int x, y, c0, c1;
- u_int16_t checksum;
+ u_int16_t checksum = 0;
u_int16_t *csum;
size_t partial_len, i, left = len;
- checksum = 0;
-
-
if (offset != FLETCHER_CHECKSUM_VALIDATE)
/* Zero the csum in the packet. */
{
struct vty *vty = args[1];
thread_type *filter = args[2];
struct cpu_thread_history *a = bucket->data;
-
- a = bucket->data;
+
if ( !(a->types & *filter) )
return;
vty_out_cpu_thread_history(vty,a);
{
thread_type *filter = args;
struct cpu_thread_history *a = bucket->data;
-
- a = bucket->data;
+
if ( !(a->types & *filter) )
return;