Fix LISP site-ID dissection bug

svn path=/trunk/; revision=48836
This commit is contained in:
Pascal Quantin 2013-04-13 14:56:19 +00:00
parent 8067c41855
commit 1a37ac1aa7

View file

@ -1302,7 +1302,7 @@ dissect_lisp_map_register(tvbuff_t *tvb, packet_info *pinfo, proto_tree *lisp_tr
/* If I bit is set, we have an xTR-ID and a site-ID field */
if (xtrid) {
proto_tree_add_item(lisp_tree, hf_lisp_xtrid, tvb, offset, LISP_XTRID_LEN, ENC_NA);
proto_tree_add_item(lisp_tree, hf_lisp_siteid, tvb, offset, LISP_SITEID_LEN, ENC_NA);
proto_tree_add_item(lisp_tree, hf_lisp_siteid, tvb, offset + LISP_XTRID_LEN, LISP_SITEID_LEN, ENC_NA);
offset += LISP_XTRID_LEN + LISP_SITEID_LEN;
}
@ -1406,7 +1406,7 @@ dissect_lisp_map_notify(tvbuff_t *tvb, packet_info *pinfo, proto_tree *lisp_tree
/* If I bit is set, we have an xTR-ID and a site-ID field */
if (xtrid) {
proto_tree_add_item(lisp_tree, hf_lisp_xtrid, tvb, offset, LISP_XTRID_LEN, ENC_NA);
proto_tree_add_item(lisp_tree, hf_lisp_siteid, tvb, offset, LISP_SITEID_LEN, ENC_NA);
proto_tree_add_item(lisp_tree, hf_lisp_siteid, tvb, offset + LISP_XTRID_LEN, LISP_SITEID_LEN, ENC_NA);
offset += LISP_XTRID_LEN + LISP_SITEID_LEN;
}