We don't currently fake fields if they are referenced indirectly through some other fields (currently only FT_PROTOCOL's can be indirectly referenced) . However, there doesn't seem to be any reason for this restriction. We already have proto_tree_set_fake_protocols() to disable 'faking' if any clients requires this. So, this changelist removes this restriction on indirectly referenced fields.

svn path=/trunk/; revision=29742
This commit is contained in:
Kovarththanan Rajaratnam 2009-09-06 11:30:41 +00:00
parent ba14c67566
commit 571e69fdfa
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ wrs_count_bitshift(guint32 bitmask)
return(NULL); \
PROTO_REGISTRAR_GET_NTH(hfindex, hfinfo); \
if(!(PTREE_DATA(tree)->visible)){ \
if((hfinfo->ref_count == HF_REF_TYPE_NONE) \
if((hfinfo->ref_count != HF_REF_TYPE_DIRECT) \
&& (hfinfo->type!=FT_PROTOCOL || \
PTREE_DATA(tree)->fake_protocols)){ \
/* just return tree back to the caller */\