MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/usr/lib/python2.4/site-packages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/lib/python2.4/site-packages/wireshark_gen.pyc
m
NEc@sWdZdklZlZlZlZdkZdkZdkZdfdYZ	dS(s Wireshark IDL compiler back-end.(sidlastsidltypesidlutilsoutputNtwireshark_gen_CcBs&tZdZdZdZdZdZdZdZdZ	d	Z
d
ZdZdZ
d
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ 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/Z0d0d1Z1d2Z2d3Z3d4Z4d5Z5d6Z6d7Z7d8Z8d9Z9d:Z:d;Z;d<Z<d=Z=d>Z>d?Z?d@Z@dAZAdBZBdCZCdDZDdEZEdFZFdGZGdHZHdIZIdJZJdKZKdLZLdMZMdNZNdOZOdPZPdQZQdRZRdSZSdTZTdUZUdVZVdWZWdXZXdYZYdZZZd[Z[d\Z\d]Z]d^Z^d_Z_d`Z`daZadbZbdcZcddZddeZedfZfdgZgdhZhdiZidjZjdkZkdlZldmZmdnZndoZodmZpdpZqdqZrdmZsdrZtdmZudsZvdtZwdmZxduZldtZmdvZydwZzdtZ{dxZ|dyZ}dzZ~d{Zd|Zd}Zd~ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd`ZdZdZd`ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd`ZdZdZd`ZdZdZd`ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd`ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZRS(Nisguint64   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^titid|_||_||_||_
||_g|_h|_
d|_dS(Nii(toutputtStreamttempfilet
TemporaryFiletselftsttst_savet
protocol_namet	protonametdissector_nametdissnametdescriptiontexlisttfn_hasht
fn_hash_built(RRRR
R((t1/usr/lib/python2.4/site-packages/wireshark_gen.pyt__init__s						cCs[|i||||i||i|d|_|i	|_
|i|i|i
|i|i||||||i|i|i||i||i||i||i||i||i||i||||i||i||i||i|i|i||idS(Ni(Rt
genHelperstoplisttstlisttunlisttgenExceptionHelperstgenAttributeHelperstatlistRRRt	genHeadertgenEthCopyrighttgenGPLtgenIncludestgenDeclarestenlisttgenProtocoltgenRegisteredFieldst	genOpListt	genExListt	genAtListt	genEnListtgenExceptionDelegatortgenMainEntryStarttgenOpDelegatortgenAtDelegatortgenMainEntryEndtgen_proto_registertgen_proto_reg_handofftgen_plugin_register(RRRRRR((RtgenCodes6

	


















cCs3|ii|id|i|io	dGHndS(NR
s
XXX genHeader(RRtoutttemplate_HeaderRtDEBUG(R((RRs
cCs*|io	dGHn|ii|idS(NsXXX genEthCopyright(RR0RR.ttemplate_wireshark_copyright(R((RRs
	cCs*|io	dGHn|ii|idS(Ns
XXX genGPL(RR0RR.ttemplate_GPL(R((RRs
	cCs*|io	dGHn|ii|idS(NsXXX genIncludes(RR0RR.ttemplate_Includes(R((RRs
	c	Cs|io	dGHn|ii|i|ii|ixE|D]=}|i|d}|ii|i	d|i
d|q@W|ii|i|ii|ixE|D]=}|i|d}|ii|id|i
d|qW|ii|idS(NsXXX genDeclarest_tstnametnametunname(RR0RR.t#template_prototype_start_dissectingttemplate_prototype_struct_startRt	namespacetsnamettemplate_prototype_struct_bodytrepoIdttemplate_prototype_struct_endttemplate_prototype_union_startRtunttemplate_prototype_union_bodyttemplate_prototype_union_end(	RRRRRRR;R@R((RR"s
	))cCs3|ii|id|i|ii|idS(NR
(RRR.ttemplate_protocolRttemplate_init_boundary(R((RRDscCs|ii|idS(N(RRR.ttemplate_registered_fields(R((RR NscCsi|ii|id|id|i|ii|ii|i|ii|i|iidS(NRtdisprot(	RRR.ttemplate_main_dissector_startRR	t
inc_indentt,template_main_dissector_switch_msgtype_startt:template_main_dissector_switch_msgtype_start_request_reply(RR((RR&Ws
%
cCsW|ii|i|ii|ii|i|ii|ii|idS(N(RRR.t8template_main_dissector_switch_msgtype_end_request_replyt
dec_indentt8template_main_dissector_switch_msgtype_all_other_msgtypettemplate_main_dissector_end(R((RR)cs


cCsx|ii|ixK|D]C}|i|d}|i}|ii|i
d|d|qW|ii|idS(NR4R;topname(RRR.t!template_comment_operations_startRtnR:R;t
identifierROttemplate_operations_declarettemplate_comment_operations_end(RRROR;RQ((RR!xs#cCs|ii|i|i|}x|D]}|io1dG|i	GHdG|i
GHdG|iGHn|ioG|i
|d}|i	}|ii|id|d|i	q)q)W|ii|idS(NsXXX Exception sXXX Exception IdentifiersXXX Exception Scoped NameR4R;texname(RRR.t5template_comment_user_exceptions_string_declare_starttget_exceptionListRR
texR0R=RRt
scopedNametmembersR:R;RUt template_user_exceptions_declaret3template_comment_user_exceptions_string_declare_end(RRRUR;RXR
((RR"s

-cCs|ii|ix|D]}x|iD]s}|i|d}|i
}|ii|id|d||i
p#|ii|id|d|q-q-WqW|ii|idS(NR4R;tatname(RRR.t!template_comment_attributes_startRRQtdeclaratorstiR:R;RRR]t$template_attributes_declare_Java_gettreadonlyt$template_attributes_declare_Java_setttemplate_comment_attributes_end(RRR;R]R`RQ((RR#s

+c	Cs|ii|ix|D]}|i|d}|ii|id|i	|ii|i
d|xK|iD]=}|ii|i
dt|i||d|iqwW|ii|id|qW|ii|idS(NR4tenamet
valstringnametintvalR(RRR.ttemplate_comment_enums_startRtenumR:R;ttemplate_comment_enum_commentR=ttemplate_value_string_starttenumeratorst
enumeratorttemplate_value_string_entrytstrtvalFromEnumRRttemplate_value_string_endttemplate_comment_enums_end(RRR;RmRi((RR$s
;cCs|ii|i|ii|i|}x|D]}|i	o1dG|i
GHdG|iGHdG|iGHn|i
oG|i|d}|i
}|ii|id|d|i
q6q6W|ii|ii|idS(NsXXX Exception sXXX Exception IdentifiersXXX Exception Scoped NameR4R;RU(RRR.t'template_main_exception_delegator_startRHRWRR
RXR0R=RRRYRZR:R;RUttemplate_ex_delegate_codeRLt%template_main_exception_delegator_end(RRRUR;RXR
((RR%s


-
cCs|io
dG|GHn|ii|ix\|D]T}xK|iD]=}|i	||d|i
p|i	||dqDqDWq1W|ii|idS(Ns"XXX genAttributeHelpers: atlist = tgettset(RR0RRR.t template_attribute_helpers_starttattribR_tdecltgenAtHelperRbttemplate_attribute_helpers_end(RRRzRy((RR#s



cCs|io	dGHn|d|i|d}||_|ipg|i|<n|i	i
|id|d|i|i	i
|i	i
|i|i||i	i
|i|i	i
|i|io|i|i}d|}|i	i
|id|id||i	i
|id|id||i|i|id	|i	i
|i|i|i|i	i|i	i
|in|i|i|i|i	i|i	i
|i dS(
NsXXX genAtHelperR4R;R]s%i tanametasizetavalt;(!RR0torderR:RzR;t
curr_snameRRRR.t(template_attribute_helper_function_startR=RHt#template_helper_function_vars_startt	dumpCvarst!template_helper_function_vars_endt0template_exception_helper_function_get_endianesstsizestget_indices_from_sizestindiceststring_indicesttemplate_get_CDR_array_commentRRttemplate_get_CDR_array_starttaddvartc_itgetCDR3RytattrTypeRLttemplate_get_CDR_array_endt&template_attribute_helper_function_end(RRyRzRR;RR((RR{:s2
		
%



%%


cCs|i|}|io
dG|GHn|ii|ix,|D]$}|i	o|i
|q@q@W|ii|idS(Ns"XXX genExceptionHelpers: exlist = (RRWRR
R0RR.t template_exception_helpers_startRXRZtgenExHelperttemplate_exception_helpers_end(RRR
RX((RRts


cCs,|io	dGHn|i|d}||_|ipg|i|<n|ii	|i
d|d|i|ii|ii	|i
|i||ii	|i|ii	|ixD|iD]6}x-|iD]}|io|i|i}d|}|ii	|id|id||ii	|id|id||i|i|id	|ii|i|i|id|i|ii |ii	|i!q|i|i|id|iqWqW|ii |ii	|i"dS(
NsXXX genExHelperR4R;RUs%i R}R~RR(#RR0R:RXR;RRRRR.t(template_exception_helper_function_startR=RHRRRRRZtmR_RzRRRRRRRRRRRt
memberTypeRLRt&template_exception_helper_function_end(RRXRzR;RRR((RRs:
		
%





%%
*
2
cCs^x|D]}|i|qWx|D]}|i|q%Wx|D]}|i	|qCWdS(N(
RtopRtgenOperationRRtgenStructHelperRR@tgenUnionHelper(RRRRR@RR((RRscCs|io	dGHn|i|d}|ipg|i|<n||_|i}|i
i|id|i
|i
i|id||i
i|i
i|i|i||i
i|i|i
i|i|i
i|i|i
i|i||i
i|i|i
i|i
i|i|i
i|i
i|i|i
i|i|i
i|i||i
i|i|i
i|i
i|i|i
i|i||i
i|i|i
i|i
i|i |i
i|i!|i
i|i"|i
i|i
i|i#|i
i|i$|i
i|i%|i
i|i
i|i&d|dS(NsXXX genOperation calledR4trepoidR;('RR0R:topnodeR;RRRRRRORR.t template_helper_function_commentR=ttemplate_helper_function_startRHRRRt$template_helper_switch_msgtype_startt,template_helper_switch_msgtype_request_starttgenOperationRequestt*template_helper_switch_msgtype_request_endRLt*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(RRROR;((RRsR
	
	













cCsx||iD]n}|io[|io1dG|GHdG|iGHdG|iiGHn|i|i|i	q
q
WdS(NsXXX parameter = sXXX parameter type = sXXX parameter type kind = (
Rt
parameterstptis_inRR0t	paramTypetkindRRR(RRR((RRs


	cCs|i}|io4dG|GHdG|GHdG|iGHdG|iGHn|itijo|i	||i
n|i|dxA|iD]3}|io |i|i|iqqWdS(NsXXX opnode  = sXXX return type  = sXXX return type.unalias  = sXXX return type.kind()  = tOperation_Return_Value(Rt
returnTypetrtRR0tunaliasRtidltypettk_aliast
get_CDR_aliasR6RRRtis_outRRR(RRRR((RR-s
		

cCsIxB|iD]4}|io!x|iD]}d}q-Wq
q
WdS(Ni(RtraisesRXRZRtt(RRRRXR((RREs


cCskxd|D]\}di|id }|i}|i|d}|i
i|id|d|qWdS(Nt/iR4t	interfaceR;(
RRtjoinRYtinameRRRORR:R;RR.ttemplate_op_delegate_code(RRRR;ROR((RR'PscCsx|D]~}xu|iD]g}|i}|i|d}|i	i
|id||ip|i	i
|i
d|qqWqWdS(NR4R;(RtaR_R`RRR]RR:R;RR.ttemplate_at_delegate_code_getRbttemplate_at_delegate_code_set(RRRR;R]R`((RR([s

cCs6||i|ijo|i|ii|ndS(N(tvarRRRtappend(RR((RRiscCsHxA|iiD]0}d|GHx|i|D]}d|GHq-WqWdS(NsFN = s-> (RRtkeystfntv(RRR((Rtdumpvarsrs	cCs,x%|i|D]}|ii|qWdS(N(RRR;RRR.(RR;R((RR}scCsp|io2dG|GdG|iGHdG|GdG|iGHnt|tio|ii	|}|SndS(NsXXX valFromEnum, enumNode = s from s"XXX valFromEnum, enumeratorNode = (RR0tenumNodeR=tenumeratorNodet
isinstancetidlastt
EnumeratorRltindextvalue(RRRR((RRps
tfredcCs|ii}|}|io
dG|GHn|ti	jo|i
|n|tijo|i|n|ti
jo|i|ng|tijo|i|nF|tijo|i|n%|tijo|i|n|tijo|i|n|tijo|i|n|tijo|i|n|tijo|i|i|nw|tijo|i|nV|tijo|i |n5|ti!jo|i"|n|ti#jo|i$|n|ti%jo|i&|n|ti'jo|i(|n|ti)jo|i*|n|ti+jo|i,||nl|ti-jo|i.||nH|ti/jo|i0|n'|ti1jo6|ii2iti!jo|i3||n|ti1jo|i4||n|ti5jo|i6||n|ti7jo|i8||nu|ti9jo|i:||nQ|ti;jo+|io
dG|GHn|i<||n|i=dd|dS(NsXXX getCDR3: kind = sXXXXX Alias type XXXXX sUnknown typecode = s%i (>ttypeRRtptR6tpnRR0Rttk_ulongt
get_CDR_ulongttk_longlongtget_CDR_longlongttk_ulonglongtget_CDR_ulonglongttk_voidt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_arrayt
get_CDR_arrayttk_uniont
get_CDR_unionRRt
genWARNING(RRR6RR((RRsv

2

cCs-|ii|id||i|idS(Ntvarname(RRR.ttemplate_get_CDR_ulongRRt
c_u_octet4(RR((RRscCs-|ii|id||i|idS(NR(RRR.ttemplate_get_CDR_shortRRt
c_s_octet2(RR((RRscCs|ii|id|dS(NR(RRR.ttemplate_get_CDR_voidR(RR((RRscCs-|ii|id||i|idS(NR(RRR.ttemplate_get_CDR_longRRt
c_s_octet4(RR((RRscCs-|ii|id||i|idS(NR(RRR.ttemplate_get_CDR_ushortRRt
c_u_octet2(RR((RRscCs-|ii|id||i|idS(NR(RRR.ttemplate_get_CDR_floatRRtc_float(RR((RRscCs-|ii|id||i|idS(NR(RRR.ttemplate_get_CDR_doubleRRtc_double(RR((RR"scCs-|ii|id||i|idS(NR(RRR.ttemplate_get_CDR_longlongRRt
c_s_octet8(RR((RR&scCs-|ii|id||i|idS(NR(RRR.ttemplate_get_CDR_ulonglongRRt
c_u_octet8(RR((RR*scCs-|ii|id||i|idS(NR(RRR.ttemplate_get_CDR_booleanRRt
c_u_octet1(RR((RR.sc
Cs|io+dG|GHdG|iGHdG|iGHnd|i}d|i}d|i|i}|i	i
|id|d|d|d||i
|idS(	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 Rtdigitstscaletlength(RR0RR%R&t
string_digitststring_scalet
dig_to_lent
string_lengthRR.ttemplate_get_CDR_fixedRRtc_seq(RRRR(R)R+((RR2s
	+cCs-|ii|id||i|idS(NR(RRR.ttemplate_get_CDR_charRRR$(RR((RR@scCs-|ii|id||i|idS(NR(RRR.ttemplate_get_CDR_octetRRR$(RR((RRDscCs|ii|id|dS(NR(RRR.ttemplate_get_CDR_anyR(RR((RRHscCsE|i|id}|ii|id||i|i	dS(NR4tvalstringarray(
RR:RRR;RR.ttemplate_get_CDR_enum_symbolicRR(RRRR;((RRKscCs=|ii|id||i|i|i|idS(NR(RRR.ttemplate_get_CDR_stringRRRR-(RR((RRSscCs=|ii|id||i|i|i|idS(NR(RRR.ttemplate_get_CDR_wstringRRRR-(RR((RRXscCs=|ii|id||i|i|i|idS(NR(RRR.ttemplate_get_CDR_wcharRRt
c_s_octet1R-(RR((RR]scCs-|ii|id||i|idS(NR(RRR.ttemplate_get_CDR_TypeCodeRRR(RR((RRbscCs|ii|idS(N(RRR.ttemplate_get_CDR_object(RRR((RRfscCs-|ii|id||i|idS(Ntseqname(RRR.t template_get_CDR_sequence_lengthRRR(RR((Rtget_CDR_sequence_leniscCs|io3dG|GdG|GHdG|iGHdG|iGHnt|itio"|ii	i
i}n
|i}|io
dG|GHn|i|d}|ii|id||ii|id||ii|id|dS(NsXXX Union type =s pn = sXXX Union type.decl()sXXX Union Scoped NamesXXX Union ntype =R4R6(RR0RRRzRYRRt
Declaratortaliast	aliasTypetntypeR:R;RR.ttemplate_union_startttemplate_decode_unionttemplate_union_end(RRRR;R?((RRos
"

c	Cs|io+dG|GHdG|iGHdG|iGHn|i|d}||_|ipg|i	|<n|i
i|id|d|i
|i
i|i
i|i|i||i
i|i|i
i|i|ii}|i
i|id|i
|i||i|itijol|i}|i
i|id|i
|i
i|id|i|i|i|id	n|iti joA|i
i|i!d|i|i|i|id	n|iti"joA|i
i|i#d|i|i|i|id	nl|iti$joA|i
i|i%d|i|i|i|id	n|iti&joA|i
i|i'd|i|i|i|id	n|iti(joA|i
i|i)d|i|i|i|id	ng|iti*joA|i
i|i+d|i|i|i|id	nd
G|iGHx|i,D]}x|i.D]}t0|i1t2i3oi|ioCdG|i1iGHdG|i1i
GHd
G|i1iGHn|i4||i1}n
|i1}|iti*jo@|djo
d}q|djo
d}qd|d}nd|}|i7p6|i
i|i8d|id||i
in|i
i|i9|i|i:|i;i|i7p$|i
i<|i
i|i=q|i
i|i>qWqW|i
i<|i
i|i?dS(NsXXX Union type =sXXX Union type.decl()sXXX Union Scoped NameR4R;R7tunametdiscnameRsXXX Unknown st.kind() = sXXX clv.identifier()sXXX clv.repoId()sXXX clv.scopedName()s
s'\n's	s'\t't's%i tlabelval(@RR0R@RzRYR:R;RRRRR.t$template_union_helper_function_startR=RHRRRt,template_union_helper_function_get_endianesst
switchTypeRt!template_comment_union_code_startRRRRRRtstdt(template_comment_union_code_discriminantt*template_union_code_save_discriminant_enumRtc_s_discRt*template_union_code_save_discriminant_longRt+template_union_code_save_discriminant_ulongRt+template_union_code_save_discriminant_shortRt,template_union_code_save_discriminant_ushortRt-template_union_code_save_discriminant_booleanRt*template_union_code_save_discriminant_chartcasestuctlabelstclRRRRRptclvt
string_clvtdefaultt/template_comment_union_code_label_compare_startt/template_comment_union_code_label_default_starttcaseTypet
declaratorRLt-template_comment_union_code_label_compare_endt-template_comment_union_code_label_default_endt"template_union_helper_function_end(	RR@RKR;RXRRZRVRY((RRs
		
%

"""""""








%"


cCsl|io9dG|GdG|GHdG|iGHdG|iiGHn|i}|io|i|i}d|}|i
i|id|d||i
i|i
d|d||i|i|d	|i
i|i|iii||i
i|i
i|inE|io$dG|GdG|GHdG|iGHn|i||idS(
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~RR(RR0RRRzR=RRRRRR.RRRRRHRR>RLRRR(RRRRzRR((RRs&



"

cCst|itio"|iiii}n
|i}|i	|d}|ii|i
d||ii|id||ii|id|dS(NR4R6(RRRzRR<R=R>R?RR:R;RR.ttemplate_structure_startttemplate_decode_structttemplate_structure_end(RRRR;R?((RREs"cCs,|io	dGHn|i|d}||_|ipg|i|<n|ii|i	d|d|i
|ii|ii|i|i
||ii|i|ii|ixD|iD]6}x-|iD]}|io|i|i}d|}|ii|id|id||ii|id|id||i|i|id	|ii|i|i|id|i|ii|ii|i q|i|i|id|iqWqW|ii|ii|i!dS(
NsXXX genStructHelperR4R;R5s%i R}R~RR("RR0R:RR;RRRR.t%template_struct_helper_function_startR=RHRRRt-template_struct_helper_function_get_endianessRZRR_RzRRRRRRRRRRRRRLRt#template_struct_helper_function_end(RRRzR;RRR((RR_s:
		
%





%%
*
2
cCs|ii|id||ii|id||i|i|d|i|i|d|ii	|i
|ii
||ii|ii|idS(NR9R(RRR.R:Rt$template_get_CDR_sequence_loop_startRtc_i_limRRHRRRRRLt"template_get_CDR_sequence_loop_end(RRR((RR	s

cCsx|ii|id||ii|id||i|i|d|id|d|id|ddS(NR9Rsgchar * binary_seq_sgchar * text_seq_(RRR.R:Rttemplate_get_CDR_sequence_octetRRj(RRR((RRs
cCs&|iodGHdG|iGHndS(NsXXX get_CDR_array called sXXX array size = (RR0RzR(RRRz((RR
s
cCs(titi|id|}|S(Ns::(tstringtreplacetidlutilt
ccolonNametnodeRYtsepR;(RRqRrR;((RR:s$cCs2|ii|id|id|id|idS(NRRR
(RRR.ttemplate_plugin_registerRR	R(R((RR,sc	Cs|ii|id|i|iixB|i|D]1}|ii|i	d|id|i
d|q9W|ii|id|id|i
|ii|ii|i
dS(NR
RR(RRR.t template_proto_reg_handoff_startRRHtget_intlistRRttemplate_proto_reg_handoff_bodyR	t$template_proto_reg_handoff_heuristicRLttemplate_proto_reg_handoff_end(RRR((RR+s
/%
cCs2|ii|id|id|id|idS(NRRR
(RRR.ttemplate_proto_registerRR	R(R((RR*scCsth}xQ|D]I}|i}|d }ti|}|i	|pd||<q
q
W|i
}|i|S(Nii(
tint_hashRRRYtsctsc1Rot	slashNametsnthas_keyRtrettsort(RRRzRR~R{R|R((RRus

cCsh}x`|D]X}xO|iD]A}|i|p+d||<|iod|iGHqaq q Wq
W|i	}|i|S(NisXXX Exception = (tex_hashRRRRXRRR0RRRRR(RRRRRXR((RRWs



cCs%d}x|D]}||}q
W|S(Ni(tvaltsizelistR`(RRR`R((RR*s
cCs|ddS(Nii(tdignum(RR((RR*6scCs|ii|id|dS(Ntmessage(RRR.ttemplate_debug_TODOR(RR((RtgenTODO@scCs|ii|id|dS(NR(RRR.ttemplate_debug_WARNINGR(RR((RRHss /*
 * IDL Operations Start
 */
 s-static const char @sname@_op[] = "@opname@" ;s
/*
 * IDL Operations End
 */
s/*
 * @repoid@
 */
s6
/* Operation specific Variable declarations Begin */
s4
/* Operation specific Variable declarations End */
sstatic void decode_@sname@(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header, gchar *operation _U_) {

    gboolean stream_is_big_endian;          /* big endianess */
s}
so
/* register me as handler for these interfaces */

void proto_register_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
}
s
/* Initialise the protocol and subtree pointers */

static int proto_@dissector_name@ = -1;

static gint ett_@dissector_name@ = -1;
sk
/* Initialise the initial Alignment */

static guint32  boundary = GIOP_HEADER_SIZE;  /* initial value */
sM

/* Initialise the Registered fields */

/* TODO - Use registered fields */
s
#ifndef ENABLE_STATIC

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

G_MODULE_EXPORT void
plugin_reg_handoff(void){
   proto_register_handoff_giop_@dissector_name@();
}
#endif
s

/* Register the protocol with Wireshark */

void proto_register_giop_@dissector_name@(void) {

   /* setup list of header fields */

#if 0
   static hf_register_info hf[] = {

      /* no fields yet */

   };
#endif

   /* 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@" );

#if 0
   proto_register_field_array(proto_@dissector_name@, hf, array_length(hf));
#endif
   proto_register_subtree_array(ett,array_length(ett));

}
sif (strcmp(operation, @sname@_op) == 0
    && (!idlname || strcmp(idlname, "@interface@") == 0)) {
   tree = start_dissecting(tvb, pinfo, ptree, offset);
   decode_@sname@(tvb, pinfo, tree, offset, header, operation);
   return TRUE;
}
sNstream_is_big_endian = is_big_endian(header);

switch(header->message_type) {
sSdefault:

    /* Unknown GIOP Exception */

    g_warning("Unknown GIOP Message");
sbreak;
s%} /* switch(header->message_type) */
scase Request:
scase Reply:
scase NO_EXCEPTION:
scase USER_EXCEPTION:
sLdefault:

    /* Unknown Exception */

    g_warning("Unknown Exception ");
s    break;
sQdefault:

    /* Unknown GIOP Message */

    g_warning("Unknown GIOP Message");
sswitch(header->rep_status) {
sQdefault:

    /* Unknown Reply Status */

    g_warning("Unknown Reply Status");
s0
}   /* switch(header->message_type) */

break;
su_octet4 = get_CDR_ulong(tvb,offset,stream_is_big_endian, boundary);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-4,4,"@varname@ = %u",u_octet4);
}
ss_octet2 = get_CDR_short(tvb,offset,stream_is_big_endian, boundary);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-2,2,"@varname@ = %i",s_octet2);
}
s/* Function returns void */
ss_octet4 = get_CDR_long(tvb,offset,stream_is_big_endian, boundary);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-4,4,"@varname@ = %i",s_octet4);
}
su_octet2 = get_CDR_ushort(tvb,offset,stream_is_big_endian, boundary);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-2,2,"@varname@ = %u",u_octet2);
}
smy_float = get_CDR_float(tvb,offset,stream_is_big_endian, boundary);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-4,4,"@varname@ = %.6e",my_float);
}
smy_double = get_CDR_double(tvb,offset,stream_is_big_endian, boundary);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-8,8,"@varname@ = %.15e",my_double);
}
ss_octet8 = get_CDR_long_long(tvb,offset,stream_is_big_endian, boundary);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-8,8,"@varname@ = %" PRId64,s_octet8);
}
su_octet8 = get_CDR_ulong_long(tvb,offset,stream_is_big_endian, boundary);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-8,8,"@varname@ = %" PRIu64,u_octet8);
}
s~u_octet1 = get_CDR_boolean(tvb,offset);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-1,1,"@varname@ = %u",u_octet1);
}
s{u_octet1 = get_CDR_char(tvb,offset);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-1,1,"@varname@ = %u",u_octet1);
}
s|u_octet1 = get_CDR_octet(tvb,offset);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-1,1,"@varname@ = %u",u_octet1);
}
sEget_CDR_any(tvb,tree,offset,stream_is_big_endian, boundary, header);
sget_CDR_fixed(tvb, &seq, offset, @digits@, @scale@);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-@length@, @length@, "@varname@ < @digits@, @scale@> = %s",seq);
}

g_free(seq);          /*  free buffer  */
seq = NULL;
s
u_octet4 = get_CDR_enum(tvb,offset,stream_is_big_endian, boundary);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-4,4,"Enum value = %u (%s)",u_octet4,val_to_str(u_octet4,@valstringarray@,"Unknown Enum Value"));
}
su_octet4 = get_CDR_string(tvb, &seq, offset, stream_is_big_endian, boundary);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-u_octet4,u_octet4,"@varname@ (%u) = %s",
      u_octet4, (u_octet4 > 0) ? seq : "");
}

g_free(seq);          /*  free buffer  */
seq = NULL;
su_octet4 = get_CDR_wstring(tvb, &seq, offset, stream_is_big_endian, boundary, header);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-u_octet4,u_octet4,"@varname@ (%u) = %s",
      u_octet4, (u_octet4 > 0) ? seq : "");
}

g_free(seq);          /*  free buffer  */
seq = NULL;
ss_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);

}

g_free(seq);          /*  free buffer  */
seq = NULL;
sYu_octet4 = get_CDR_typeCode(tvb, tree, offset, stream_is_big_endian, boundary, header);

sKget_CDR_object(tvb, pinfo, tree, offset, stream_is_big_endian, boundary);

su_octet4_loop_@seqname@ = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary);
if (tree) {
   proto_tree_add_text(tree,tvb,*offset-4, 4 ,"Seq length of @seqname@ = %u",u_octet4_loop_@seqname@);
}
sLfor (i_@seqname@=0; i_@seqname@ < u_octet4_loop_@seqname@; i_@seqname@++) {
sif (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@);
    g_free(binary_seq_@seqname@);
    g_free(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@"  */
s/* packet-@dissector_name@.c
 * Routines for IDL dissection
 *
 * Autogenerated from idl2wrs
 * Copyright 2001 Frank Singleton <frank.singleton@@ericsson.com>
 */

si/*
 * Wireshark - Network traffic analyzer
 * By Gerald Combs
 * Copyright 1999 - 2006 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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
s@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#include <stdio.h>
#include <stdlib.h>
#include <gmodule.h>

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

#ifndef ENABLE_STATIC
G_MODULE_EXPORT const gchar version[] = "0.0.1";
#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) */

    if (check_col(pinfo->cinfo, COL_PROTOCOL))
        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
     *  if (check_col(pinfo->cinfo, COL_INFO))
     *     col_clear(pinfo->cinfo, COL_INFO);
     */

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

static gboolean dissect_@dissname@(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ptree, int *offset, MessageHeader *header, gchar *operation, gchar *idlname) {

    gboolean be;                        /* big endianess */
    proto_tree *tree _U_;

    be = is_big_endian(header);         /* get endianess - TODO use passed in stream_is_big_endian instead ? */

    /* 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);

    }
sswitch(header->message_type) {
scase Request:
case Reply:
s
break;
scase 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  */
s>/*  Begin Exception (containing members) String  Declare  */

s:static const char user_exception_@sname@[] = "@exname@" ; s;
/*  End Exception (containing members) String Declare  */
sn/*
 * 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, gchar *operation _U_ ) {

    gboolean be _U_;                        /* big endianess */
    proto_tree *tree _U_;

    if (!header->exception_id)
        return FALSE;
sif (strcmp(header->exception_id, user_exception_@sname@) == 0) {
   tree = start_dissecting(tvb, pinfo, ptree, offset);
   decode_ex_@sname@(tvb, pinfo, tree, offset, header, operation);   /*  @exname@  */
   return TRUE;
}
s9

    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_, gchar *operation _U_) {

    gboolean stream_is_big_endian;          /* big endianess */
sJstream_is_big_endian = is_big_endian(header);  /* get stream endianess */
s/* Struct = @stname@ */

static void decode_@sname@_st(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header _U_, gchar *operation _U_) {

    gboolean stream_is_big_endian;          /* big endianess */
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_, gchar *operation _U_) {

    gboolean stream_is_big_endian;          /* big endianess */
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);
   return TRUE;
}
sif (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);
   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_, gchar *operation _U_) {

    gboolean stream_is_big_endian;          /* big endianess */
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 */
 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_, int *offset _U_, MessageHeader *header _U_, gchar *operation _U_);
sA

decode_@name@_st(tvb, pinfo, tree, offset, header, operation);
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_, gchar *operation _U_);

s@
decode_@name@_un(tvb, pinfo, tree, offset, header, operation);
(t__name__t
__module__R0R"R RRRRR$R6RRR-RRjtc_u_discRNRR-RRRRRRR R&R)R!R"R#R$R%RR{RRRRRRRR'R(RRRRpRRRRRRRRRRRRRRRRRRRRRR;RRRRRR	RR
R:R,R+R*RuRWRR*RRRPRSRTRRRRRRtRvRwRxRCRDRERsRyRRRRRRRRRRRRRRt(template_helper_switch_msgtype_reply_endRt/template_helper_switch_rep_status_default_startt-template_helper_switch_rep_status_default_endRRRRRRRRRR!R#R.R/R0R,R2R3R4R5R7R8R:RiRkRlRRRRcReR@RBR/R1R2R3RGRIRJRKRMRNRRRVR[R\RsRtRuRRRRfRgRhRGRHRbRkRnRqRhRrRjR^RaRcRdRRRxR|Rt0template_attribute_helper_function_get_endianessRRRRJttemplate_comment_union_code_endRLRMRORPRQRRRTRSR\R`R]RaR8R9R>R<RdR?RBRARA(((RRvs		:		
	
		"	
						6		&	!		:		;		H									
	5L																						"		&		1				
							
			
%	


,


	



	

(
t__doc__tomniidlRRRoRtsysRmRR(RmRRRRRoRR((Rt?7s	;

Anon7 - 2021