gboolean already_added=pinfo->fd->flags.visited;
- /* dissector shouldn't give us garbage tvb info */
- DISSECTOR_ASSERT(tvb_bytes_exist(tvb, offset, frag_data_len));
+ /* dissector shouldn't give us garbage tvb info */
+ DISSECTOR_ASSERT(tvb_bytes_exist(tvb, offset, frag_data_len));
/* create key to search hash with */
key.src = pinfo->src;
int hf;
if (first_frag)
- proto_item_append_text(fi, " (%u bytes): ", tvb_length(tvb));
+ proto_item_append_text(fi, " (%u byte%s): ", tvb_length(tvb),
+ plurality(tvb_length(tvb), "", "s"));
else
proto_item_append_text(fi, ", ");
proto_item_append_text(fi, "#%u(%u)", fd->frame, fd->len);
fei = proto_tree_add_uint_format(ft, hf,
tvb, offset, fd->len,
fd->frame,
- "Frame: %u, payload: %u-%u (%u bytes)",
+ "Frame: %u, payload: %u-%u (%u byte%s)",
fd->frame,
offset,
offset+fd->len-1,
- fd->len);
+ fd->len,
+ plurality(fd->len, "", "s"));
}
PROTO_ITEM_SET_GENERATED(fei);
if (fd->flags & (FD_OVERLAP|FD_OVERLAPCONFLICT