IPVS: Add COL_INFO with version and number of connection

This commit is contained in:
Alexis La Goutte 2021-03-02 21:29:33 +01:00 committed by Wireshark GitLab Utility
parent efae777674
commit aae3c634b4
1 changed files with 3 additions and 0 deletions

View File

@ -128,8 +128,10 @@ dissect_ipvs_syncd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, v
cnt = tvb_get_guint8(tvb, offset);
if(cnt == 0) { //Version 1 (or after...) first byte is reserved
proto_tree_add_item(tree, hf_resv, tvb, offset, 1, ENC_BIG_ENDIAN);
col_set_str(pinfo->cinfo, COL_INFO, "v1");
} else {
proto_tree_add_item(tree, hf_conn_count, tvb, offset, 1, ENC_BIG_ENDIAN);
col_set_str(pinfo->cinfo, COL_INFO, "v0");
}
offset += 1;
@ -151,6 +153,7 @@ dissect_ipvs_syncd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, v
proto_tree_add_item(tree, hf_resv, tvb, offset, 2, ENC_NA);
offset += 2;
}
col_append_fstr(pinfo->cinfo, COL_INFO, " %u Connection(s)", cnt);
for (conn = 0; conn < cnt; conn++)
{