PCEP: fix SID parsing, label is the first 20 bits

Change-Id: I13d2ff79b171b232dd4e1e1082beeae2e36dec51
Signed-off-by: Francesco Fondelli <francesco.fondelli@gmail.com>
Reviewed-on: https://code.wireshark.org/review/8451
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Francesco Fondelli 2015-05-13 16:41:45 +02:00 committed by Anders Broman
parent 232f260050
commit 46d89bd27f

View file

@ -1301,7 +1301,7 @@ dissect_subobj_sr(proto_tree *pcep_subobj_tree, packet_info *pinfo, tvbuff_t *tv
return;
}
sid = tvb_get_ntohl(tvb, offset + 4);
sid = tvb_get_ntohl(tvb, offset + 4) >> 12;
proto_item_append_text(ti, ": %u", sid);
st = ((tvb_get_guint8(tvb, offset + 2)) >> 4);