Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/wireshark_gen.pyc
�
.�t_c@scdZddlmZmZmZmZddlZddlZddlZddd��YZ	dS(s Wireshark IDL compiler back-end.i����(tidlasttidltypetidlutiltoutputNtwireshark_gen_CcBsmeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d �Z"d!�Z#d"�Z$d#�Z%d$�Z&d%�Z'd&�Z(d'�Z)d(�Z*d)�Z+d*�Z,d+�Z-d,�Z.d-�Z/d.�Z0d/�Z1d0�Z2d1d2�Z3d3�Z4d4�Z5d5�Z6d6�Z7d7�Z8d8�Z9d9�Z:d:�Z;d;�Z<d<�Z=d=�Z>d>�Z?d?�Z@d@�ZAdA�ZBdB�ZCdC�ZDdD�ZEdE�ZFdF�ZGdG�ZHdH�ZId1dI�ZJdJ�ZKdK�ZLdL�ZMdM�ZNdN�ZOdO�ZPdP�ZQdQ�ZRdR�ZSdS�ZTdT�ZUdU�ZVdV�ZWdW�ZXdX�ZYdY�ZZdZ�Z[d[�Z\d\�Z]d]�Z^d^�Z_d_�Z`d`�Zada�Zbdb�Zcdc�Zddd�Zede�Zfdf�Zgdg�Zhdh�Zidi�Zjdj�Zkdk�Zldl�Zmdm�Zndn�Zodo�Zpdp�Zqdq�ZrdrZsdsZtdtZuduZvdvZwdwZxdxZydyZzdvZ{dzZ|d{Z}d|Z~d}Zd~Z�dZ�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�dvZ�d�Z�d�Z�dvZ�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�dvZ�d�Z�dvZ�d�Z�dvZ�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�dvZ�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(�isguint64   u_octet8;sgint64    s_octet8;sguint32   u_octet4;sgint32    s_octet4;sguint16   u_octet2;sgint16    s_octet2;sguint8    u_octet1;sgint8     s_octet1;sgfloat    my_float;sgdouble   my_double;sgchar   *seq = NULL;sguint32   i_sguint32   u_octet4_loop_sguint32   disc_u_sgint32    disc_s_cCs^tjtj�d�|_||_||_||_||_g|_	i|_
d|_dS(Nii(RtStreamttempfilet
TemporaryFiletsttst_savet	protonametdissnametdescriptiontexlisttfn_hasht
fn_hash_built(tselfRt
protocol_nametdissector_nameR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyt__init__�s						cCsx|j|||�|j|�|j|�d|_|j|_|j�|j�|j�|j	�|j
�|j|||||�t|�dkr�|j
|�nt|�dkr�|j|�n|j|�|j|�t|�dkr
|j|�n|j|||�|j|�|j|�|j|�|j�|j||||�|j|�dS(Nii(t
genHelperstgenExceptionHelperstgenAttributeHelpersRR	Rt	genHeadertgenEthCopyrighttgenGPLtgenIncludestgenProtocoltgenDeclarestlent	genAtListt	genEnListtgenExceptionDelegatortgenMainEntryStarttgenOpDelegatortgenAtDelegatortgenMainEntryEndtgen_proto_registertgen_proto_reg_handoff(Rtoplisttatlisttenlisttstlisttunlist((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pytgenCode�s4

	










cCs1|jj|jd|j�|jr-dGHndS(NRs
XXX genHeader(Rtoutttemplate_HeaderRtDEBUG(R((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�s	cCs(|jrdGHn|jj|j�dS(NsXXX genEthCopyright(R/RR-ttemplate_wireshark_copyright(R((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�s	cCs(|jrdGHn|jj|j�dS(Ns
XXX genGPL(R/RR-ttemplate_GPL(R((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRs	cCs(|jrdGHn|jj|j�dS(NsXXX genIncludes(R/RR-ttemplate_Includes(R((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRs	cCs�|jr&dGHdG|j�j�GHn|j|d�}|j�}|j�tjkr�|j�tjkr�|jj|j	d|d�q�|jj|j	d|d�nx;|j
�D]-}|jj|j	d|d|j��q�WdS(NsXXX genOpDeclaressXXX return type  = t_tnamet_return(R/t
returnTypetkindt	namespaceRttk_voidttk_aliasRR-ttemplate_hft
parameterst
identifier(Rtoptsnametrttp((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyt
genOpDeclares!s	  cCs�|jrdGHnx�|j�D]}}|j|d�}|jj|jdd|d|j��|j�s|jj|jdd|d|j��qqWdS(NsXXX genAtDeclaresR3R4tgettsettget_tset_(R/tdeclaratorsR8RR-R;R=treadonly(RtattdeclR?((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyt
genAtDeclares;s	+cCs||jrdGHn|j|d�}xR|j�D]D}x;|j�D]-}|jj|jd|d|j��qCWq0WdS(NsXXX genStDeclaresR3R4(R/R8tmembersRGRR-R;R=(RRR?tmRJ((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyt
genStDeclaresNs	cCs||jrdGHn|j|d�}xR|j�D]D}x;|j�D]-}|jj|jd|d|j��qCWq0WdS(NsXXX genExDeclaresR3R4(R/R8RLRGRR-R;R=(RtexR?RMRJ((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyt
genExDeclares`s	cCs�|jrdGHn|j|d�}|jj|jd|d|j��xX|j�D]J}xA|j�D]3}|jj|jd|d|j�j��qjWqWWdS(NsXXX genUnionDeclaresR3R4(	R/R8RR-R;R=tcasestlabelst
declarator(RtunR?tuctcl((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pytgenUnionDeclaresrs	'c
Cs�|jrdGHn|jj|j�t|�dkrL|jj|j�nx|D]}|j|�qSWt|�dkr�|jj|j�nx|D]}|j|�q�Wt|�dkr�|jj|j	�nx|D]}|j
|�q�W|j|�}	t|	�dkr-|jj|j�nx*|	D]"}
|
j
�r4|j|
�q4q4Wt|�dkr�|jj|j�nx|D]}|j|�q�W|jj|j�t|�r0|jj|j�xE|D]=}|j|d�}|jj|jd|j�d|�q�W|jj|j�nt|�r�|jj|j�xE|D]=}|j|d�}|jj|jd|j�d|�qVW|jj|j�ndS(NsXXX genDeclaresiR3tstnameR4tunname(R/RR-ttemplate_hf_operationsRt)template_proto_register_op_filter_commentRBt)template_proto_register_at_filter_commentRKt)template_proto_register_st_filter_commentRNtget_exceptionListt)template_proto_register_ex_filter_commentRLRPt)template_proto_register_un_filter_commentRWt#template_prototype_start_dissectingttemplate_prototype_struct_startR8ttemplate_prototype_struct_bodytrepoIdttemplate_prototype_struct_endttemplate_prototype_union_startttemplate_prototype_union_bodyttemplate_prototype_union_end(
RR'R(R)R*R+R>RIRR
RORTR?((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�sL	





)
)cCs3|jj|jd|j�|jj|j�dS(NR(RR-ttemplate_protocolRttemplate_init_boundary(R((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�scCsi|jj|jd|jd|j�|jj�|jj|j�|jj|j�|jj�dS(NRtdisprot(RR-ttemplate_main_dissector_startRR
t
inc_indentt,template_main_dissector_switch_msgtype_startt:template_main_dissector_switch_msgtype_start_request_reply(RR'((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR!�s
%
cCsW|jj|j�|jj�|jj|j�|jj�|jj|j�dS(N(RR-t8template_main_dissector_switch_msgtype_end_request_replyt
dec_indentt8template_main_dissector_switch_msgtype_all_other_msgtypettemplate_main_dissector_end(R((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR$�s


cCs�|jj|j�x�|D]�}x|j�D]q}|j|d�}|j�}|jj|jd|d|�|j�s-|jj|jd|d|�q-q-WqW|jj|j	�dS(NR3R?tatname(
RR-t!template_comment_attributes_startRGR8R=t$template_attributes_declare_Java_getRHt$template_attributes_declare_Java_setttemplate_comment_attributes_end(RR(tntiR?Rt((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR
s
*c	Cs�|jj|j�x�|D]�}|j|d�}|jj|jd|j��|jj|jd|�xK|j�D]=}|jj|jdt	|j
||��d|j��qwW|jj|jd|�qW|jj|j
�dS(NR3tenamet
valstringnametintvalR(RR-ttemplate_comment_enums_startR8ttemplate_comment_enum_commentRdttemplate_value_string_starttenumeratorsttemplate_value_string_entrytstrtvalFromEnumR=ttemplate_value_string_endttemplate_comment_enums_end(RR)tenumR?t
enumerator((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR"s
;cCs�|jj|j�|jj�|j|�}x�|D]�}|jrudG|j�GHdG|j�GHdG|j�GHn|j	�r6|j
|d�}|j�}|jj|jd|d|j��q6q6W|jj�|jj|j
�dS(NsXXX Exception sXXX Exception IdentifiersXXX Exception Scoped NameR3R?texname(RR-t'template_main_exception_delegator_startRmR^R/RdR=t
scopedNameRLR8ttemplate_ex_delegate_codeRqt%template_main_exception_delegator_end(RR'R
ROR?R�((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR Hs

	,
cCs�|jrdG|GHn|jj|j�xZ|D]R}xI|j�D];}|j||d�|j�sB|j||d�qBqBWq/W|jj|j�dS(Ns"XXX genAttributeHelpers: atlist = RCRD(R/RR-t template_attribute_helpers_startRGtgenAtHelperRHttemplate_attribute_helpers_end(RR(tattribRJ((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRis	
cCs|jrdGHn|d|j|d�}||_|jsMg|j|<n|jj|jd|d|j��|jj	�t
|j|�dkr�|jj|j�|j|�|jj|j
�n|j|j�|d|j��|jj�|jj|j�dS(NsXXX genAtHelperR3R?Rti(R/R8t
curr_snameRRRR-t(template_attribute_helper_function_startRdRmRt#template_helper_function_vars_startt	dumpCvarst!template_helper_function_vars_endtgetCDRtattrTypeR=Rqt&template_attribute_helper_function_end(RR�RJtorderR?((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR��s			%

$
cCs{|j|�}|jr$dG|GHn|jj|j�x*|D]"}|j�r>|j|�q>q>W|jj|j�dS(Ns"XXX genExceptionHelpers: exlist = (R^R/RR-t template_exception_helpers_startRLtgenExHelperttemplate_exception_helpers_end(RR'R
RO((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�s	
cCs[|jrdGHn|j|d�}||_|jsEg|j|<n|jj|jd|d|j��|jj	�t
|j|�dkr�|jj|j�|j|�|jj|j
�nxn|j�D]`}|jr�dG|GdG|j�GHnx4|j�D]&}|jr$dG|GHn|j�r|j|j��}d	|}|jj|jd
|j�d|�|jj|jd
|j�d|�|j|j|j�d
�|jj	�|j|j�|d|j��|jj�|jj|j�q	|j|j�|d|j��q	Wq�W|jj�|jj|j�dS(NsXXX genExHelperR3R?R�isXXX genExhelper, member = smember type = sXXX genExhelper, d = s%i tanametasizetavalt;(R/R8R�RRRR-t(template_exception_helper_function_startRdRmRR�R�R�RLt
memberTypeRGtsizestget_indices_from_sizesttemplate_get_CDR_array_commentR=ttemplate_get_CDR_array_starttaddvartc_iR�Rqttemplate_get_CDR_array_endt&template_exception_helper_function_end(RROR?RMRJtindiceststring_indices((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR��s>			%

		
%%
$
,
cCs^x|D]}|j|�qWx|D]}|j|�q%Wx|D]}|j|�qCWdS(N(tgenOperationtgenStructHelpertgenUnionHelper(RR'R*R+R>RRT((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�s


cCs�|jrdGHn|j|d�}|js<g|j|<n||_|j�}|jj|jd|j	��|jj|j
d|�|jj�t|j|�dkr�|jj|j
�|j|�|jj|j�n|jj|j�|jj|j�|jj�|j|�|jj|j�|jj�|jj|j�|jj�|jj|j�|jj|j�|jj�|j|�|jj|j�|jj�|jj|j�|jj�|j|�|jj|j�|jj�|jj|j�|jj|j�|jj|j�|jj�|jj|j �|jj|j!�|jj|j"�|jj�|jj|j#d|�dS(NsXXX genOperation calledR3trepoidR?i($R/R8RRR�R=RR-t template_helper_function_commentRdttemplate_helper_function_startRmRR�R�R�t$template_helper_switch_msgtype_startt,template_helper_switch_msgtype_request_starttgenOperationRequestt*template_helper_switch_msgtype_request_endRqt*template_helper_switch_msgtype_reply_startt'template_helper_switch_rep_status_startt7template_helper_switch_msgtype_reply_no_exception_starttgenOperationReplyt5template_helper_switch_msgtype_reply_no_exception_endt9template_helper_switch_msgtype_reply_user_exception_starttgenOpExceptionst7template_helper_switch_msgtype_reply_user_exception_endt2template_helper_switch_msgtype_reply_default_startt0template_helper_switch_msgtype_reply_default_endt%template_helper_switch_rep_status_endt,template_helper_switch_msgtype_default_startt*template_helper_switch_msgtype_default_endt"template_helper_switch_msgtype_endttemplate_helper_function_end(RtopnodeR?topname((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�sT			













cCs�x�|j�D]u}|j�r
|jrXdG|GHdG|j�GHdG|j�j�GHn|j|j�|jd|j��q
q
WdS(NsXXX parameter = sXXX parameter type = sXXX parameter type kind = R3(R<tis_inR/t	paramTypeR7R�R�R=(RR�RA((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�Ms		cCs�|j�}|jrMdGHdG|GHdG|GHdG|j�GHdG|j�GHn|j|d�}|j�tjkr�|j||d�n|j||d�xJ|j	�D]<}|j
�r�|j|j�|jd|j
��q�q�WdS(NsXXX genOperationReplysXXX opnode  = sXXX return type  = sXXX return type.unalias  = sXXX return type.kind()  = R3R5(R6R/tunaliasR7R8RR:t
get_CDR_aliasR�R<tis_outR�R�R=(RR�R@R?RA((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�]s			cCsGx@|j�D]2}|j�r
x|j�D]}d}q,Wq
q
WdS(Ni(traisesRL(RR�RORMtt((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�wsc	Csqxj|D]b}dj|j�d �}|j�}|j|d�}|jj|jd|d|d|�qWdS(Nt/i����R3t	interfaceR?R�(tjoinR�R=R8RR-ttemplate_op_delegate_code(RR'R>tinameR�R?((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR"�s

cCs�x�|D]|}xs|j�D]e}|j�}|j|d�}|jj|jd|�|j�s|jj|jd|�qqWqWdS(NR3R?(RGR=R8RR-ttemplate_at_delegate_code_getRHttemplate_at_delegate_code_set(RR(taRzRtR?((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR#�s
cCs4||j|jkr0|j|jj|�ndS(N(RR�tappend(Rtvar((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR��scCsHxA|jj�D]0}d|GHx|j|D]}d|GHq-WqWdS(NsFN = s-> (Rtkeys(Rtfntv((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pytdumpvars�s	cCs,x%|j|D]}|jj|�qWdS(N(RRR-(RR?R�((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR��scCsi|jr:dG|GdG|j�GHdG|GdG|j�GHnt|tj�re|j�j|�}|SdS(NsXXX valFromEnum, enumNode = s from s"XXX valFromEnum, enumeratorNode = (R/Rdt
isinstanceRt
EnumeratorR�tindex(RtenumNodetenumeratorNodetvalue((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR��s	tfredcCs�|j�j�}|}|jr6dG|GHdG|GHn|tjkrU|j|�nZ|tjkrt|j|�n;|tjkr�|j	|�n|tj
kr�|j|�n�|tjkr�|j
|�n�|tjkr�|j|�n�|tjkr|j|�n�|tjkr.|j|�n�|tjkrM|j|�nb|tjkru|j|j�|�n:|tjkr�|j|�n|tjkr�|j|�n�|tjkr�|j|�n�|tjkr�|j|�n�|tj kr|j!|�n�|tj"kr/|j#|�n�|tj$krN|j%|�na|tj&krp|j'||�n?|tj(kr�|j)||�n|tj*kr�|j+|�n�|tj,kr|j�j-�j�tjkr�|j.||�q�|j/||�n�|tj0kr)|j1||�n�|tj2krA|}nn|tj3krc|j4||�nL|tj5kr�|jr�dG|GHn|j6||�n|j7dd|�dS(NsXXX getCDR: kind = sXXX getCDR: name = sXXXXX Alias type XXXXX sUnknown typecode = s%i (8R�R7R/Rttk_ulongt
get_CDR_ulongttk_longlongtget_CDR_longlongttk_ulonglongtget_CDR_ulonglongR9tget_CDR_voidttk_shortt
get_CDR_shortttk_longtget_CDR_longt	tk_ushorttget_CDR_ushortttk_floatt
get_CDR_floatt	tk_doubletget_CDR_doublettk_fixedt
get_CDR_fixedt
tk_booleantget_CDR_booleanttk_chartget_CDR_charttk_octett
get_CDR_octetttk_anytget_CDR_anyt	tk_stringtget_CDR_stringt
tk_wstringtget_CDR_wstringttk_wchart
get_CDR_wcharttk_enumtget_CDR_enumt	tk_structtget_CDR_structttk_TypeCodetget_CDR_TypeCodettk_sequencetseqTypetget_CDR_sequence_octettget_CDR_sequencet	tk_objreftget_CDR_objrefttk_arrayttk_uniont
get_CDR_unionR:R�t
genWARNING(RttypeR4tpttpn((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR��sx		!		cCs|jj|jd|�dS(Nthfname(RR-ttemplate_get_CDR_ulong(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�>scCs|jj|jd|�dS(NR(RR-ttemplate_get_CDR_short(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�AscCs|jj|jd|�dS(NR(RR-ttemplate_get_CDR_void(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�DscCs|jj|jd|�dS(NR(RR-ttemplate_get_CDR_long(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�GscCs|jj|jd|�dS(NR(RR-ttemplate_get_CDR_ushort(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�JscCs|jj|jd|�dS(NR(RR-ttemplate_get_CDR_float(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�MscCs|jj|jd|�dS(NR(RR-ttemplate_get_CDR_double(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�PscCs|jj|jd|�dS(NR(RR-ttemplate_get_CDR_longlong(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�SscCs|jj|jd|�dS(NR(RR-ttemplate_get_CDR_ulonglong(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�VscCs|jj|jd|�dS(NR(RR-ttemplate_get_CDR_boolean(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�Ysc
Cs�|jr3dG|GHdG|j�GHdG|j�GHnd|j�}d|j�}d|j|j��}|jj|jd|d|d|d|�|j|j�dS(	Ns#XXXX calling get_CDR_fixed, type = s,XXXX calling get_CDR_fixed, type.digits() = s+XXXX calling get_CDR_fixed, type.scale() = s%i tvarnametdigitstscaletlength(	R/R%R&t
dig_to_lenRR-ttemplate_get_CDR_fixedR�tc_seq(RRRt
string_digitststring_scalet
string_length((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�\s		+cCs|jj|jd|�dS(NR(RR-ttemplate_get_CDR_char(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�jscCs|jj|jd|�dS(NR(RR-ttemplate_get_CDR_octet(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�mscCs|jj|jd|�dS(NR$(RR-ttemplate_get_CDR_any(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�pscCsK|j|j�d�}|jj|jd|d|�|j|j�dS(NR3tvalstringarrayR(R8R�RR-ttemplate_get_CDR_enum_symbolicR�t
c_u_octet4(RRRR?((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRsscCs|jj|jd|�dS(NR(RR-ttemplate_get_CDR_string(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRyscCs=|jj|jd|�|j|j�|j|j�dS(NR$(RR-ttemplate_get_CDR_wstringR�R3R*(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR|scCs=|jj|jd|�|j|j�|j|j�dS(NR$(RR-ttemplate_get_CDR_wcharR�t
c_s_octet1R*(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�scCs-|jj|jd|�|j|j�dS(NR$(RR-ttemplate_get_CDR_TypeCodeR�R3(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�scCs|jj|j�dS(N(RR-ttemplate_get_CDR_object(RRR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�scCs|jj|jd|�dS(Ntseqname(RR-t template_get_CDR_sequence_length(RR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pytget_CDR_sequence_len�scCs�|jr;dG|GdG|GHdG|j�GHdG|j�GHnt|j�tj�rt|j�j�j�j�}n|j�}|jr�dG|GHn|j|d�}|j	j
|jd|�|j	j
|jd|�|j	j
|j
d|�dS(NsXXX Union type =s pn = sXXX Union type.decl()sXXX Union Scoped NamesXXX Union ntype =R3R4(R/RJR�R�Rt
Declaratortaliast	aliasTypeR8RR-ttemplate_union_startttemplate_decode_unionttemplate_union_end(RRRtntypeR?((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�s	!	cCsO|j�j�}|}|jr6dG|GHdG|GHn|tjkra|j||||j�n�|tjkr�|j||||j�n�|tj	kr�|j
||||j�n�|tjkr�|}n||tjkr�|j
||||j�nQ|tjkr%|j||||j�n&|tjkrP|j||||j�n�|tjkr{|j||||j�n�|tjkr�|j||||j�n�|tjkr�|}n�|tjkr�|j||||j�nb|tjkr|j||||j�n7|tjkr?|j||||j�n|tjkrW|}n�|tjkr�|j||||j�n�|tj kr�|j!||||j�n�|tj"kr�|j#||||j�ns|tj$kr|j%|||||j�nE|tj&kr|}n-|tj'krI|j(||||j�n|tj)kr�|j�j*�j�tjkr�|j+|||||j�qK|j,|||||j�n�|tj-kr�|}n||tj.kr�|}nd|tj/kr�|}nL|tj0kr6|jr#dG|GHn|j1||�n|j2dd|�dS(NsXXX getCDR_hf: kind = sXXX getCDR_hf: name = sXXXXX Alias type hf XXXXX sUnknown typecode = s%i (3R�R7R/RR�tget_CDR_ulong_hfRR�tget_CDR_longlong_hfR�tget_CDR_ulonglong_hfR9R�tget_CDR_short_hfR�tget_CDR_long_hfR�tget_CDR_ushort_hfR�tget_CDR_float_hfR�tget_CDR_double_hfR�R�tget_CDR_boolean_hfR�tget_CDR_char_hfR�tget_CDR_octet_hfR�Rtget_CDR_string_hfRtget_CDR_wstring_hfRtget_CDR_wchar_hfRtget_CDR_enum_hfRR
tget_CDR_TypeCode_hfRR
tget_CDR_sequence_octet_hftget_CDR_sequence_hfRRRR:tget_CDR_alias_hfR(RRtdesctfilterthf_nameRR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyt	getCDR_hf�sx						!				c
Cs/|jj|jd|d|d|d|�dS(NRRtdescnamet
filtername(RR-ttemplate_get_CDR_ulong_hf(RRRWRXtdiss((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRD�sc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_short_hf(RRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRG�sc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_long_hf(RRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRHsc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_ushort_hf(RRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRIsc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_float_hf(RRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRJsc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_double_hf(RRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRK	sc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_longlong_hf(RRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyREsc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_ulonglong_hf(RRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRFsc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_boolean_hf(RRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRLsc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_char_hf(RRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRMsc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_octet_hf(RRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRNscCsM|j|j�d�}|jj|jd|d|d|d|d|�dS(NR3R1RRR[R\(R8R�RR-t!template_get_CDR_enum_symbolic_hf(RRRRWRXR^R?((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRRsc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_string_hf(RRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyROsc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_wstring_hf(RRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRP"sc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_wchar_hf(RRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRQ'sc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_TypeCode_hf(RRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRS,sc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-t"template_get_CDR_sequence_octet_hf(RRRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRT/sc
Cs/|jj|jd|d|d|d|�dS(NRRR[R\(RR-ttemplate_get_CDR_sequence_hf(RRRRWRXR^((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRU2scCs�|jrAdG|GdG|GHdG|j�GHdG|j�j�GHn|j�}|j�r~|j|j�j�j�|�nB|jr�dG|GdG|GHdG|j�GHn|j||j��dS(NsXXX get_CDR_alias_hf, type = s pn = s$XXX get_CDR_alias_hf, type.decl() = s,XXX get_CDR_alias_hf, type.decl().alias() = (R/RJR>R�RZR?R=(RRRRJ((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRV5s	%	c	Cs�|jr8dGHdG|GHdG|j�GHdG|j�GHn|j|d�}||_|jslg|j|<n|jj|j	d|d|j
��|jj�t|j|�dkr�|jj|j
�|j|�|jj|j�n|j�j�}|jj|jd	|j
��|j||d|j��|j�tjkr�|j�}|jj|jd	|j
��|jj|jd
|j��|j|j|j�d�n
|j�tjkr|jj|jd
|j��|j|j|j�d�n�|j�tjkrf|jj|jd
|j��|j|j|j�d�nc|j�tj kr�|jj|j!d
|j��|j|j|j�d�n|j�tj"kr|jj|j#d
|j��|j|j|j�d�n�|j�tj$kre|jj|j%d
|j��|j|j|j�d�nd|j�tj&kr�|jj|j'd
|j��|j|j|j�d�ndG|j�GHx�|j(�D]�}x�|j)�D]�}t*|j+�t,j-�rm|jrRd
G|j+�j�GHdG|j+�j
�GHdG|j+�j�GHn|j.||j+��}n|j+�}|j�tj&kr�|dkr�d}q�|dkr�d}q�d|d}n
d|}|j/�s|jj|j0d
|j�d|�|jj�n|jj|j1�|j|j2�|d|j3�j��|j/�s�|jj4�|jj|j5�q�|jj|j6�q�Wq�W|jj4�|jj|j7�dS(NsXXX genUnionHelper calledsXXX Union type =sXXX Union type.switchType()sXXX Union Scoped NameR3R?RYitunametdiscnameR�sXXX Unknown st.kind() = sXXX clv.identifier()sXXX clv.repoId()sXXX clv.scopedName()s
s'\n's	s'\t't's%i tlabelval(8R/t
switchTypeR�R8R�RRRR-t$template_union_helper_function_startRdRmRR�R�R�R�t!template_comment_union_code_startR�R=R7RRRJt(template_comment_union_code_discriminantt*template_union_code_save_discriminant_enumR�tc_s_discR�t*template_union_code_save_discriminant_longR�t+template_union_code_save_discriminant_ulongR�t+template_union_code_save_discriminant_shortR�t,template_union_code_save_discriminant_ushortR�t-template_union_code_save_discriminant_booleanR�t*template_union_code_save_discriminant_charRQRRR�R�RR�R�tdefaultt/template_comment_union_code_label_compare_startt/template_comment_union_code_label_default_starttcaseTypeRSRqt-template_comment_union_code_label_compare_endt-template_comment_union_code_label_default_endt"template_union_helper_function_end(	RRTR?RtstdRURVtclvt
string_clv((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�[s�				%

!!!!!!!			
%*

cCs`|jrAdG|GdG|GHdG|j�GHdG|j�j�GHn|j�}|j�r |j|j��}d|}|jj|jd|d|�|jj|jd|d|�|j	|j
|d	�|jj�|j|j�j�j
�|�|jj�|jj|j�n<|jrLdG|GdG|GHdG|j�GHn|j||�dS(
NsXXX get_CDR_alias, type = s pn = s!XXX get_CDR_alias, type.decl() = s)XXX get_CDR_alias, type.decl().alias() = s%i R�R�R�R�(R/RJR>R�R�RR-R�R�R�R�RmR�R?RqR�(RRRRJR�R�((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR��s&	

"
	cCs�t|j�tj�r9|j�j�j�j�}n|j�}|j|d�}|jj|j	d|�|jj|j
d|�|jj|jd|�dS(NR3R4(R�RJRR=R>R?R8RR-ttemplate_structure_startttemplate_decode_structttemplate_structure_end(RRRRCR?((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR	s!cCs#|jrdGHn|j|d�}||_|jsEg|j|<n|jj|jd|d|j��|jj	�t
|j|�dkr�|jj|j�|j|�|jj|j
�nx6|j�D](}x|j�D]}|j�r�|j|j��}d|}|jj|jd|j�d|�|jj|jd|j�d	|�|j|j|j�d
�|jj	�|j|j�|d|j��|jj�|jj|j�q�|j|j�|d|j��q�Wq�W|jj�|jj|j�dS(NsXXX genStructHelperR3R?RXis%i R�R�R�R�(R/R8R�RRRR-t%template_struct_helper_function_startRdRmRR�R�R�RLRGR�R�R�R=R�R�R�R�R�RqR�t#template_struct_helper_function_end(RRR?RMRJR�R�((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�)s6			%


%%
$
,
cCs�|jj|jd|�|jj|jd|�|j|j|d�|j|j|d�|jj�|j|j	�j
�|�|jj�|jj|j�dS(NR:R�(
RR-R;t$template_get_CDR_sequence_loop_startR�tc_i_limR�RmR�R�R
Rqt"template_get_CDR_sequence_loop_end(RRR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRYs

cCsx|jj|jd|�|jj|jd|�|j|j|d�|jd|d�|jd|d�dS(NR:R�sgchar * binary_seq_sgchar * text_seq_(RR-R;ttemplate_get_CDR_sequence_octetR�R�(RRR((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRjs
cCs(tjtj|j��d|�}|S(Ns::(tstringtreplaceRt
ccolonNameR�(RtnodetsepR?((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR8}s$cCs2|jj|jd|jd|jd|j�dS(NRRR(RR-ttemplate_plugin_registerRR
R(R((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pytgen_plugin_register�sc	Cs�|jj|jd|j�|jj�xB|j|�D]1}|jj|jd|jd|jd|�q9W|jj|jd|jd|j�|jj	�|jj|j
�dS(NRRR�(RR-t template_proto_reg_handoff_startRRmtget_intlistttemplate_proto_reg_handoff_bodyR
t$template_proto_reg_handoff_heuristicRqttemplate_proto_reg_handoff_end(RR'R�((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR&�s
/%
cCsC|j|d�}|tj|d�d}|tj|d� }|j�}|j�tjkr�|j�tjkr�|j||j	�|d|j
�d|d�q�|j|d|d|j
�d|d�nx`|j�D]R}|j|j�|j
�|d|j
�d|j
�|d|j
��q�WdS(NR3it.s.returnR5sReturn value(
R8R�tfindR6R7RR9R:RZR4R=R<R�(RR>R?R�R@RA((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pytgenOp_hf�s##cCs�x�|j�D]�}|j|d�}|tj|d�d}|tj|d� }|j|j�|j�|d|j�dd|d|j��|j�s
|j|j�|j�|d|j�dd	|d|j��q
q
WdS(
NR3iR�s.getRCs.setRDRERF(RGR8R�R�RZR�R=RH(RRIRJR?Rt((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pytgenAt_hf�s.cCs�|j|d�}|tj|d�d}|tj|d� }x}|j�D]o}xf|j�D]X}|j|j�|j�d|j�|j�d|j�|d|j��qbWqOWdS(NR3iR�(R8R�R�RLRGRZR�R=(RRR?RXRMRJ((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pytgenSt_hf�s&cCs�|j|d�}|tj|d�d}|tj|d� }x�|j�D]w}xn|j�D]`}|j|j�|j�d|j�|d|j�d|j�|d|j��qbWqOWdS(NR3iR�(R8R�R�RLRGRZR�R=(RROR?R�RMRJ((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pytgenEx_hf�s&cCs|j|d�}|tj|d� }tj|dd�}|j|j�j�|j�|d|j�|d|j��x�|j�D]�}x�|j	�D]r}|j|j
�|j�d|j�j�|d|j�d|j�j�|d|j�j��q�Wq�WdS(NR3R�(R8R�trfindR�RZRtR�R=RQRRR�RS(RRTR?RYRURV((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pytgenUnion_hf�s&,%cCsp|jj|jd|j�|jj|j�x|D]}|j|�q6W|jj|j�x|D]}|j|�qgW|jj|j�x*|D]"}|j	�r�|j
|�q�q�W|j|�}|jj|j�x*|D]"}	|	j	�r�|j
|	�q�q�W|jj|j�x|D]}
|j|
�q'W|jj|jd|jd|jd|j�dS(NRRR(RR-ttemplate_proto_register_startRR[R�R\R�R]RLR�R^R_R�R`R�ttemplate_proto_register_endRR
(RR'R(R*R+R>RIRR
RORT((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR%�s(




cCsri}xO|D]G}|j�}|d }tj|�}|j|�s
d||<q
q
W|j�}|j�|S(Ni����i(R�Rt	slashNamethas_keyR�tsort(RR'tint_hashR>tsctsc1tsntret((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�s


cCsi}x\|D]T}xK|j�D]=}|j|�s d||<|jr]d|j�GHq]q q Wq
W|j�}|j�|S(NisXXX Exception = (R�R�R/R=R�R�(RR'tex_hashR>ROR�((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR^.s

	
cCs%d}x|D]}||}q
W|S(Ni((RtsizelisttvalRz((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR�Ds
cCs|ddS(Nii((Rtdignum((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyR(PscCs|jj|jd|�dS(Ntmessage(RR-ttemplate_debug_TODO(RR�((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pytgenTODOZscCs|jj|jd|�dS(NR�(RR-ttemplate_debug_WARNING(RR�((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRbss/*
 * @repoid@
 */s4/* Operation specific Variable declarations Begin */sx/* Operation specific Variable declarations End */

(void)item; /* Avoid coverity param_set_but_unused parse warning */
s�static void
decode_@sname@(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, proto_item *item _U_, int *offset _U_, MessageHeader *header, const gchar *operation _U_, gboolean stream_is_big_endian _U_)
{s}
sf/* register me as handler for these interfaces */
void proto_reg_handoff_giop_@dissector_name@(void)
{s�
/* Register for Explicit Dissection */
register_giop_user_module(dissect_@dissector_name@, "@protocol_name@", "@interface@", proto_@dissector_name@ );     /* explicit dissector */s�
/* Register for Heuristic Dissection */
register_giop_user(dissect_@dissector_name@, "@protocol_name@" ,proto_@dissector_name@);     /* heuristic dissector */s�
/* Initialise the protocol and subtree pointers */
static int proto_@dissector_name@ = -1;
static gint ett_@dissector_name@ = -1;
si
/* Initialise the initial Alignment */
static guint32  boundary = GIOP_HEADER_SIZE;  /* initial value */s

#if 0

WS_DLL_PUBLIC_NOEXTERN void
plugin_register(void)
{
   if (proto_@dissector_name@ == -1) {
     proto_register_giop_@dissector_name@();
   }
}

WS_DLL_PUBLIC_NOEXTERN void
plugin_reg_handoff(void){
   proto_register_handoff_giop_@dissector_name@();
}
#endif
sy
/* Register the protocol with Wireshark */
void proto_register_giop_@dissector_name@(void)
{
   /* setup list of header fields */
   static hf_register_info hf[] = {
        /* field that indicates the currently ongoing request/reply exchange */
		{&hf_operationrequest, {"Request_Operation","giop-@dissector_name@.Request_Operation",FT_STRING,BASE_NONE,NULL,0x0,NULL,HFILL}},s�
   };

   /* setup protocol subtree array */

   static gint *ett[] = {
      &ett_@dissector_name@,
   };

   /* Register the protocol name and description */
   proto_@dissector_name@ = proto_register_protocol("@description@" , "@protocol_name@", "giop-@dissector_name@" );
   proto_register_field_array(proto_@dissector_name@, hf, array_length(hf));
   proto_register_subtree_array(ett,array_length(ett));
}
s        /* Operation filters */s        /* Attribute filters */s        /* Struct filters */s$        /* User exception filters */s        /* Union filters */s�if (strcmp(operation, "@opname@") == 0
    && (!idlname || strcmp(idlname, "@interface@") == 0)) {
   item = process_RequestOperation(tvb, pinfo, ptree, header, operation);  /* fill-up Request_Operation field & info column */
   tree = start_dissecting(tvb, pinfo, ptree, offset);
   decode_@sname@(tvb, pinfo, tree, item, offset, header, operation, stream_is_big_endian);
   return TRUE;
}
sswitch(header->message_type) {s�default:
    /* Unknown GIOP Message */
    expert_add_info_format(pinfo, item, PI_MALFORMED, PI_ERROR, "Unknown GIOP message %d", header->message_type);sbreak;s$} /* switch(header->message_type) */s
case Request:scase Reply:scase NO_EXCEPTION:scase USER_EXCEPTION:s�default:
    /* Unknown Exception */
    expert_add_info_format(pinfo, item, PI_MALFORMED, PI_ERROR, "Unknown exception %d", header->rep_status);s
    break;sswitch(header->rep_status) {s�default:
    /* Unknown Reply Status */
    expert_add_info_format(pinfo, item, PI_MALFORMED, PI_ERROR, "Unknown reply status %d", header->rep_status);s,}   /* switch(header->rep_status) */

break;suproto_tree_add_uint(tree, hf_@hfname@, tvb, *offset-4, 4, get_CDR_ulong(tvb,offset,stream_is_big_endian, boundary));
stproto_tree_add_int(tree, hf_@hfname@, tvb, *offset-2, 2, get_CDR_short(tvb,offset,stream_is_big_endian, boundary));
s/* Function returns void */
ssproto_tree_add_int(tree, hf_@hfname@, tvb, *offset-4, 4, get_CDR_long(tvb,offset,stream_is_big_endian, boundary));
svproto_tree_add_uint(tree, hf_@hfname@, tvb, *offset-2, 2, get_CDR_ushort(tvb,offset,stream_is_big_endian, boundary));
svproto_tree_add_float(tree, hf_@hfname@, tvb, *offset-4, 4, get_CDR_float(tvb,offset,stream_is_big_endian, boundary));
sxproto_tree_add_double(tree, hf_@hfname@, tvb, *offset-8, 8, get_CDR_double(tvb,offset,stream_is_big_endian, boundary));
szproto_tree_add_int64(tree, hf_@hfname@, tvb, *offset-8, 8, get_CDR_long_long(tvb,offset,stream_is_big_endian, boundary));
s|proto_tree_add_uint64(tree, hf_@hfname@, tvb, *offset-8, 8, get_CDR_ulong_long(tvb,offset,stream_is_big_endian, boundary));
s[proto_tree_add_boolean(tree, hf_@hfname@, tvb, *offset-1, 1, get_CDR_boolean(tvb,offset));
sUproto_tree_add_uint(tree, hf_@hfname@, tvb, *offset-1, 1, get_CDR_char(tvb,offset));
sVproto_tree_add_uint(tree, hf_@hfname@, tvb, *offset-1, 1, get_CDR_octet(tvb,offset));
sUget_CDR_any(tvb, pinfo, tree, item, offset, stream_is_big_endian, boundary, header);
s�get_CDR_fixed(tvb, pinfo, item, &seq, offset, @digits@, @scale@);
proto_tree_add_text(tree,tvb,*offset-@length@, @length@, "@varname@ < @digits@, @scale@> = %s",seq);
s�u_octet4 = get_CDR_enum(tvb,offset,stream_is_big_endian, boundary);
/* coverity[returned_pointer] */
item = proto_tree_add_uint(tree, hf_@hfname@, tvb, *offset-4, 4, u_octet4);
sUgiop_add_CDR_string(tree, tvb, offset, stream_is_big_endian, boundary, hf_@hfname@);
s�u_octet4 = get_CDR_wstring(tvb, &seq, offset, stream_is_big_endian, boundary, header);
proto_tree_add_text(tree,tvb,*offset-u_octet4,u_octet4,"@varname@ (%u) = %s",
      u_octet4, (u_octet4 > 0) ? seq : "");
sNs_octet1 = get_CDR_wchar(tvb, &seq, offset, header);
if (tree) {
    if (s_octet1 > 0)
        proto_tree_add_text(tree,tvb,*offset-1-s_octet1,1,"length = %u",s_octet1);

    if (s_octet1 < 0)
        s_octet1 = -s_octet1;

    if (s_octet1 > 0)
        proto_tree_add_text(tree,tvb,*offset-s_octet1,s_octet1,"@varname@ = %s",seq);
}
s_u_octet4 = get_CDR_typeCode(tvb, pinfo, tree, offset, stream_is_big_endian, boundary, header);
sJget_CDR_object(tvb, pinfo, tree, offset, stream_is_big_endian, boundary);
s�u_octet4_loop_@seqname@ = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary);
/* coverity[returned_pointer] */
item = proto_tree_add_uint(tree, hf_@seqname@, tvb,*offset-4, 4, u_octet4_loop_@seqname@);
sLfor (i_@seqname@=0; i_@seqname@ < u_octet4_loop_@seqname@; i_@seqname@++) {
s}if (u_octet4_loop_@seqname@ > 0 && tree) {
    get_CDR_octet_seq(tvb, &binary_seq_@seqname@, offset,
        u_octet4_loop_@seqname@);
    text_seq_@seqname@ = make_printable_string(binary_seq_@seqname@,
        u_octet4_loop_@seqname@);
    proto_tree_add_text(tree, tvb, *offset - u_octet4_loop_@seqname@,
        u_octet4_loop_@seqname@, "@seqname@: %s", text_seq_@seqname@);
}
s5for (i_@aname@=0; i_@aname@ < @aval@; i_@aname@++) {
s /* Array: @aname@[ @asize@]  */
s/*  Begin struct "@name@"  */s/*  End struct "@name@"  */s/*  Begin union "@name@"  */s/*  End union "@name@"  */ss        {&hf_@hfname@, {"@descname@","giop-@dissector_name@.@filtername@",FT_UINT32,BASE_DEC,NULL,0x0,NULL,HFILL}},sr        {&hf_@hfname@, {"@descname@","giop-@dissector_name@.@filtername@",FT_INT16,BASE_DEC,NULL,0x0,NULL,HFILL}},sr        {&hf_@hfname@, {"@descname@","giop-@dissector_name@.@filtername@",FT_INT32,BASE_DEC,NULL,0x0,NULL,HFILL}},ss        {&hf_@hfname@, {"@descname@","giop-@dissector_name@.@filtername@",FT_UINT16,BASE_DEC,NULL,0x0,NULL,HFILL}},ss        {&hf_@hfname@, {"@descname@","giop-@dissector_name@.@filtername@",FT_FLOAT,BASE_NONE,NULL,0x0,NULL,HFILL}},st        {&hf_@hfname@, {"@descname@","giop-@dissector_name@.@filtername@",FT_DOUBLE,BASE_NONE,NULL,0x0,NULL,HFILL}},sr        {&hf_@hfname@, {"@descname@","giop-@dissector_name@.@filtername@",FT_INT64,BASE_DEC,NULL,0x0,NULL,HFILL}},ss        {&hf_@hfname@, {"@descname@","giop-@dissector_name@.@filtername@",FT_UINT64,BASE_DEC,NULL,0x0,NULL,HFILL}},sn        {&hf_@hfname@, {"@descname@","giop-@dissector_name@.@filtername@",FT_BOOLEAN,8,NULL,0x01,NULL,HFILL}},sr        {&hf_@hfname@, {"@descname@","giop-@dissector_name@.@filtername@",FT_UINT8,BASE_DEC,NULL,0x0,NULL,HFILL}},sr        {&hf_@hfname@, {"@descname@","giop-@dissector_name@.@filtername@",FT_UINT8,BASE_HEX,NULL,0x0,NULL,HFILL}},s�        {&hf_@hfname@, {"@descname@","giop-@dissector_name@.@filtername@",FT_UINT32,BASE_DEC,VALS(@valstringarray@),0x0,NULL,HFILL}},st        {&hf_@hfname@, {"@descname@","giop-@dissector_name@.@filtername@",FT_STRING,BASE_NONE,NULL,0x0,NULL,HFILL}},s�        {&hf_@hfname@, {"Seq length of @descname@","giop-@dissector_name@.@filtername@",FT_UINT32,BASE_DEC,NULL,0x0,NULL,HFILL}},s�/* packet-@dissector_name@.c
 *
 * $Id$
 *
 * Routines for IDL dissection
 *
 * Autogenerated from idl2wrs
 * Copyright 2001 Frank Singleton <frank.singleton@@ericsson.com>
 */

sh/*
 * Wireshark - Network traffic analyzer
 * By Gerald Combs
 * Copyright 1999 - 2012 Gerald Combs
 */
s�/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
sz
#include "config.h"

#include <gmodule.h>

#include <string.h>
#include <glib.h>
#include <epan/packet.h>
#include <epan/proto.h>
#include <epan/dissectors/packet-giop.h>
#include <epan/expert.h>

/* plugins are DLLs */
#define WS_BUILD_DLL
#include "ws_symbol_export.h"

#ifdef _MSC_VER
/* disable warning: "unreference local variable" */
#pragma warning(disable:4101)
#endif
s`/*
 * Called once we accept the packet as being for us; it sets the
 * Protocol and Info columns and creates the top-level protocol
 * tree item.
 */
static proto_tree *
start_dissecting(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ptree, int *offset)
{

    proto_item *ti = NULL;
    proto_tree *tree = NULL;            /* init later, inside if(tree) */

    col_set_str(pinfo->cinfo, COL_PROTOCOL, "@disprot@");

    /*
     * Do not clear COL_INFO, as nothing is being written there by
     * this dissector yet. So leave it as is from the GIOP dissector.
     * TODO: add something useful to COL_INFO
     *     col_clear(pinfo->cinfo, COL_INFO);
     */

    if (ptree) {
        ti = proto_tree_add_item(ptree, proto_@dissname@, tvb, *offset, -1, ENC_NA);
        tree = proto_item_add_subtree(ti, ett_@dissname@);
    }
    return tree;
}

static proto_item*
process_RequestOperation(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ptree, MessageHeader *header, const gchar *operation)
{
    proto_item *pi;
    if(header->message_type == Reply) {
        /* fill-up info column */
        col_append_fstr(pinfo->cinfo, COL_INFO, " op = %s",operation);
    }
    /* fill-up the field */
    pi=proto_tree_add_string(ptree, hf_operationrequest, tvb, 0, 0, operation);
    PROTO_ITEM_SET_GENERATED(pi);
    return pi;
}

static gboolean
dissect_@dissname@(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ptree, int *offset, MessageHeader *header, const gchar *operation, gchar *idlname)
{
    proto_item *item _U_;
    proto_tree *tree _U_;
    gboolean stream_is_big_endian = is_big_endian(header); /* get endianess */

    /* If we have a USER Exception, then decode it and return */
    if ((header->message_type == Reply) && (header->rep_status == USER_EXCEPTION)) {
       return decode_user_exception(tvb, pinfo, ptree, offset, header, operation, stream_is_big_endian);
    }
sswitch(header->message_type) {
scase Request:
case Reply:
sbreak;
s�case CancelRequest:
case LocateRequest:
case LocateReply:
case CloseConnection:
case MessageError:
case Fragment:
   return FALSE;      /* not handled yet */

default:
   return FALSE;      /* not handled yet */

}   /* switch */
s4
    return FALSE;

}  /* End of main dissector  */
s*/*  Begin Exception Helper Functions  */

s(
/*  End Exception Helper Functions  */
sT/*
 * Main delegator for exception handling
 *
 */
static gboolean
decode_user_exception(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *ptree _U_, int *offset _U_, MessageHeader *header, const gchar *operation _U_, gboolean stream_is_big_endian _U_)
{
    proto_tree *tree _U_;

    if (!header->exception_id)
        return FALSE;
s�if (strcmp(header->exception_id, "@exname@") == 0) {
   tree = start_dissecting(tvb, pinfo, ptree, offset);
   decode_ex_@sname@(tvb, pinfo, tree, offset, header, operation, stream_is_big_endian);   /*  @exname@  */
   return TRUE;
}
s7
    return FALSE;    /* user exception not found */
}
s/* Exception = @exname@ */
static void
decode_ex_@sname@(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header _U_, const gchar *operation _U_, gboolean stream_is_big_endian _U_)
{
    proto_item *item _U_;
s�/* Struct = @stname@ */
static void
decode_@sname@_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, proto_item *item _U_, int *offset _U_, MessageHeader *header _U_, const gchar *operation _U_, gboolean stream_is_big_endian _U_)
{
s�/* Union = @unname@ */
static void
decode_@sname@_un(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header _U_, const gchar *operation _U_, gboolean stream_is_big_endian _U_)
{
    proto_item* item _U_;
s0static const value_string @valstringname@[] = {
s!   { @intval@, "@description@" },s   { 0,       NULL },
};
s/*
 * IDL Enums Start
 */
s/*
 * IDL Enums End
 */
s/*
 * Enum = @ename@
 */s/*
 * IDL Attributes Start
 */
s6static const char get_@sname@_at[] = "_get_@atname@" ;s6static const char set_@sname@_at[] = "_set_@atname@" ;s
/*
 * IDL Attributes End
 */
s if (strcmp(operation, get_@sname@_at) == 0 && (header->message_type == Reply) && (header->rep_status == NO_EXCEPTION) ) {
   tree = start_dissecting(tvb, pinfo, ptree, offset);
   decode_get_@sname@_at(tvb, pinfo, tree, offset, header, operation, stream_is_big_endian);
   return TRUE;
}
s�if (strcmp(operation, set_@sname@_at) == 0 && (header->message_type == Request) ) {
   tree = start_dissecting(tvb, pinfo, ptree, offset);
   decode_set_@sname@_at(tvb, pinfo, tree, offset, header, operation, stream_is_big_endian);
   return TRUE;
}
s)/*  Begin Attribute Helper Functions  */
s(
/*  End Attribute Helper Functions  */
s
/* Attribute = @atname@ */
static void
decode_@sname@_at(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header _U_, const gchar *operation _U_, gboolean stream_is_big_endian _U_)
{
    proto_item* item _U_;
s
/* TODO - @message@ */
s/* WARNING - @message@ */
s$/*
 * IDL Union Start - @uname@
 */
s#
/*
 * IDL union End - @uname@
 */
s-/*
 * IDL Union - Discriminant - @uname@
 */
sbdisc_s_@discname@ = (gint32) u_octet4;     /* save Enum Value  discriminant and cast to gint32 */
s]disc_s_@discname@ = (gint32) s_octet4;     /* save gint32 discriminant and cast to gint32 */
s^disc_s_@discname@ = (gint32) u_octet4;     /* save guint32 discriminant and cast to gint32 */
s]disc_s_@discname@ = (gint32) s_octet2;     /* save gint16 discriminant and cast to gint32 */
s^disc_s_@discname@ = (gint32) u_octet2;     /* save guint16 discriminant and cast to gint32 */
s]disc_s_@discname@ = (gint32) u_octet1;     /* save guint1 discriminant and cast to gint32 */
s'if (disc_s_@discname@ == @labelval@) {
s?    return;     /* End Compare for this discriminant type */
}
s 
/* Default Union Case Start */
s/* Default Union Case End */
sC
static int hf_operationrequest = -1;/* Request_Operation field */
sstatic int hf_@name@ = -1;sj
static proto_tree *start_dissecting(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ptree, int *offset);

s)/* Struct prototype declaration Start */
s'/* Struct prototype declaration End */
s�/* Struct = @stname@ */
static void decode_@name@_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, proto_item *item _U_, int *offset _U_, MessageHeader *header _U_, const gchar *operation _U_, gboolean stream_is_big_endian _U_);
sZdecode_@name@_st(tvb, pinfo, tree, item, offset, header, operation, stream_is_big_endian);s'/* Union prototype declaration Start */s%/* Union prototype declaration End */s�
/* Union = @unname@ */
static void decode_@name@_un(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header _U_, const gchar *operation _U_, gboolean stream_is_big_endian _U_);
sV
decode_@name@_un(tvb, pinfo, tree, offset, header, operation, stream_is_big_endian);
(
t__name__t
__module__R/t
c_u_octet8t
c_s_octet8R3t
c_s_octet4t
c_u_octet2t
c_s_octet2t
c_u_octet1R7tc_floattc_doubleR*R�R�tc_u_discRyRR,RRRRRBRKRNRPRWRRR!R$RRR RR�RR�RR�R�R�R�R"R#R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RRRRRRR<RRZRDRGRHRIRJRKRERFRLRMRNRRRORPRQRSRTRURVR�R�R	R�RRR8R�R&R�R�R�R�R�R%R�R^R�R(R�RR�R�R�R�R�R�R�R�R�RiRjR�R�R�R[R\R]R_R`R�R�R�R�R�R�R�R�R�R�R�R�R�R�t(template_helper_switch_msgtype_reply_endR�t/template_helper_switch_rep_status_default_startt-template_helper_switch_rep_status_default_endR�RRRRRRR R!R"R#R.R/R0R)R2R4R5R6R8R9R;R�R�R�R�R�R�R�R�R@RBR]R_R`RaRbRcRdReRfRgRhRiRjRkRlRmRoRnR.R0R1R2RlRnRoRpRrRsR�R�R�R�R�R�R�R�R�RuR�R�R�R�R~R�RRuRvRwRxR�R�R�R�R�R�R�R�Rvttemplate_comment_union_code_endRwRxRzR{R|R}RR~R�R�R�R�RZR;RaRbReRcR�RfRhRgRA(((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyRvs		;		
	
							D			,		&	!		$		;		H									
	5M																						 I																			&	�	&		0			
										*				
		


=





	
((
t__doc__tomniidlRRRRtsysR�RR(((s3/usr/lib64/python2.7/site-packages/wireshark_gen.pyt<module>7s";

ZeroDay Forums Mini