/* wccp_bucket_info() takes an integer representing a "Hash Information" bitmap, and spits out the corresponding proto_tree entries, returning the next bucket number.  */
static int wccp_bucket_info(guint8 bucket_info, proto_tree *bucket_tree, guint32 start, tvbuff_t *tvb, int offset)
/* wccp_bucket_info() takes an integer representing a "Hash Information" bitmap, and spits out the corresponding proto_tree entries, returning the next bucket number.  */
static int wccp_bucket_info(guint8 bucket_info, proto_tree *bucket_tree, guint32 start, tvbuff_t *tvb, int offset)
{
  guint32 i;
  for(i = 0; i < 8; i++) {
    proto_tree_add_uint_format(bucket_tree, hf_bucket_bit, tvb, offset, 1, bucket_info & 1<<i,
                    "Bucket %3d: %s", start, (bucket_info & 1<<i ? "Assigned" : "Not Assigned") );
    start++;
  }
  return(start);
}