Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/thread-self/root/proc/self/root/lib/python2.7/site-packages/pycriu/images/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/proc/self/root/lib/python2.7/site-packages/pycriu/images/pb2dict.pyo

�
k�x]c@spddlmZddlZddlmZmZddlmZddlZddl	Z	ddl
Z
ddlZddlZde
e�kr�eje_eje_nieej6eej6eej6eej6eej6eej6eej6eej6eej6eej6eej6eej 6Z!d�Z"d�Z#d�Z$d	�Z%d
�Z&d�Z'd�Z(d{d|d}gZ)d~dd�d�gZ*dd�fdd�fdd�fdd�fdd�fd d�fd"d�fd$d�fd&d�fd(d�fd*d�fd,d�fd.d�fd0d�fd2d�fgZ+d�d�d�d�d�gZ,d<d�fd=d�fd>d�fgZ-ie)d?6e*d@6e+dA6e,dB6e-dC6Z.iidDd6dEd6dFd#6dG6Z/iidHd6dId6dJd+6dKdL6dMdN6dO6idPd6dQd6dRd6dSd!6dMd+6dT6i
dUd6dVd6dWd6dXd6dYd!6dZd#6d[d%6d\d'6d]d)6d^d+6d_6id`d6dad#6dbdN6dcdd6de6Z0df�e1e/j2��D�Z3dg�e1e0j2��D�Z4ie/e3fdh6e0e4fdi6Z5dj�Z6dk�Z7dlZ8dm�Z9dn�Z:do�Z;dp�Z<dq�Z=dr�Z>ie=ds6Z?ie>ds6Z@dt�ZAdu�ZBdv�ZCeDeDdw�ZEeDeDdx�ZFdy�ZGdz�ZHdS(�i����(tFieldDescriptorN(tIPv4Addresst
ip_address(tIPv6AddresstencodebytescCs|j�jtjjS(N(t
GetOptionst
Extensionstopts_pb2tcriuthex(tfield((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt_marked_as_hex0scCs|j�jtjjS(N(RRRRtipadd(R
((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt
_marked_as_ip4scCs|j�jtjjS(N(RRRRtflags(R
((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt_marked_as_flags8scCs|j�jtjjS(N(RRRRtdev(R
((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt_marked_as_dev<scCs|j�jtjjS(N(RRRRtodev(R
((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt_marked_as_odev@scCs|j�jtjjS(N(RRRRtdict(R
((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt_marked_as_dictDscCs|j�jtjjS(N(RRRRtconv(R
((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt_custom_convHst	PROT_READit
PROT_WRITEit	PROT_EXECit
MAP_SHAREDtMAP_PRIVATEtMAP_ANONi t
MAP_GROWSDOWNit
VMA_AREA_NONEitVMA_AREA_REGULARtVMA_AREA_STACKtVMA_AREA_VSYSCALLt
VMA_AREA_VDSOit
VMA_AREA_HEAPitVMA_FILE_PRIVATEitVMA_FILE_SHAREDitVMA_ANON_SHAREDitVMA_ANON_PRIVATEi	tVMA_AREA_SYSVIPCi
tVMA_AREA_SOCKETit
VMA_AREA_VVARitVMA_AREA_AIORINGi
t
VMA_UNSUPPitO_WRONLYtO_RDWRtO_APPENDitO_DIRECTi@tO_LARGEFILEi�t	PE_PARENTtPE_LAZYt
PE_PRESENTs	mmap.prots
mmap.flagssmmap.statussrfile.flagss
pmap.flagstAlivetZombietStoppedt
task_statetUNIXtINETtINET6tNETLINKitPACKETitfamilytSTREAMtDGRAMtRAWt	SEQPACKETttypetESTABLISHEDtSYN_SENTtSYN_RECVt	FIN_WAIT1t	FIN_WAIT2t	TIME_WAITtCLOSEt
CLOSE_WAITtLAST_ACKtLISTENtstatetIPtTCPtUDPtUDPLITEi�tprotocCs5i|]+\}}d�t|j��D�|�qS(cSsi|]\}}||�qS(((t.0tk2tv2((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pys
<dictcomp>�s	(tlisttitems(RUtktv((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pys
<dictcomp>�s	cCs5i|]+\}}d�t|j��D�|�qS(cSsi|]\}}||�qS(((RURVRW((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pys
<dictcomp>�s	(RXRY(RURZR[((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pys
<dictcomp>�s	tgentskcCs�gg|D]}||d@r
|^q
D]}|d^q(}|tg|D]}|d^qK�M}|r�|jd|�ndj|�S(Niis0x%xs | (tsumtappendtjoin(tvaluet	flags_maptxtbs((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt	map_flags�s
>(cCsv|dkrdSt|�}tgg|jd�D]}|j�^q2D]'}tt|j||��d�^qH�S(Ntit|(RR^tsplittstriptinttstrtget(RaRbtbdRc((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pytunmap_flags�sicCsNt|�r,dtj|�tj|�fSd|t?|dt>d@fSdS(Ns%d:%di(Rtostmajortminortkern_minorbits(R
Ra((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt
decode_dev�s 
cCsdg|jd�D]}t|�^q}t|�rLtj|d|d�S|dt>|dBSdS(Nt:ii(RhRjRRotmakedevRr(R
RaRcR((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt
encode_dev�s(cCs
tj|�S(N(tbase64R(Ra((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt
encode_base64�scCs
tj|�S(N(Rwtdecodebytes(Ra((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt
decode_base64�scCs
tj|�S(N(tquopritencodestring(Ra((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pytencode_unix�scCs
tj|�S(N(R{tdecodestring(Ra((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pytdecode_unix�st	unix_namecCs"t|�}|rt|StSdS(N(RtencodeRx(R
tc((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt
get_bytes_enc�scCs"t|�}|rt|StSdS(N(RtdecodeRz(R
R�((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt
get_bytes_dec�scCs.dtkrt}nttf}t||�S(Nt
basestring(t__builtins__R�Rktbytest
isinstance(Ratstring_types((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt	is_strings	cCs�|st|�}n|jtjkr7t|||�S|jtjkrYt|�|�S|jtjkr�|jj	j
|d�jS|jt
krft
|j}|r\|tkr\|r�d|St|�r�t||�St|�}|r"yt|}Wntk
rd|SXt||�Snt|�}|r\t|d|jj
|||��Sn||�Std|j|jf��dS(Ns0x%xis!Field(%s) has unsupported type %d(RRDtFDtTYPE_MESSAGEtpb2dictt
TYPE_BYTESR�t	TYPE_ENUMt	enum_typetvalues_by_numberRltNonetnamet_basic_castRjRRsRt
flags_mapst	ExceptionReRt	dict_maps(R
Ratprettytis_hextcastRRbtdct((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt
_pb2dict_casts8


	(
c	Cs^|rtj�ni}x?|j�D]1\}}|jtjkr4g}|rt|�rt|�dkr�tj	|d�}t
|�}nbdtj	|d�d>tj	|d�d>tj	|d�d>tj	|d�}t|�}|j|j
�qIxB|D]"}|jt||||��qWnt||||�}|||j<q%W|S(	s^
    Convert protobuf msg to dictionary.
    Takes a protobuf message and returns a dict.
    iii iii`i@i (tcollectionstOrderedDictt
ListFieldstlabelR�tLABEL_REPEATEDR
tlentsockettntohlRRR_t
compressedR�R�(	tpbR�R�tdR
Ratd_valR[taddr((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyR�8s"B
#cCsm|jtjkr"t|�|�S|jtjkrM|jjj|d�j	S|jt
krMt
|j}|tkr@t|�r@t
|�r�t||�St|�}|r�yt|}Wntk
r�q�Xt||�Snt|�}|r3t|d|jj|d�}|dkr/||d�}n|S||d�S||�Sntd|j|jf��dS(Niis!Field(%s) has unsupported type %d(RDR�R�R�R�R�tvalues_by_nameRlR�tnumberR�RjR�RRvRR�R�RnRR�R�(R
RaR�RRbR�tret((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt
_dict2pb_castWs4


!

cCs"x|jjD]
}|j|kr(q
n||j}|jtjkr�t||jd
�}t|d�ret	|�ret
|d�}|jdkr�|jt
jt|���q
|jdkrLt|�}|jt
j|d?d@��|jt
j|d?d@��|jt
j|d
?d@��|jt
j|d?d@��q
td	|j��q
nx�|D]D}|jtjkr�t||j��ql|jt||��qlWq
|jtjkr�t||j�j�t|t||jd
��q
t||jt||��q
W|S(sd
    Convert dictionary to protobuf msg.
    Takes dict and protobuf message to be merged into.
    iiii iI����iisUnknown IP address version %dNi`i@i i(t
DESCRIPTORtfieldsR�R�R�R�tgetattrR�R�R
RtversionR_R�thtonlRjR�RDR�tdict2pbtaddR�tSetInParenttsetattr(R�R�R
Ratpb_valtvaltivalR[((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyR�s8
!

 (Ri(Ri(Ri(Ri(Ri(Ri (Riiiiiii i@i�iiiiii I�(R.i(R/i(R0i(R1i@(R2i�iii(Itgoogle.protobuf.descriptorRR�Rt	ipaddressRRRR�R�RoRwR{tdirR|RR~RyRjtTYPE_FIXED64tTYPE_FIXED32t
TYPE_SFIXED64t
TYPE_SFIXED32t
TYPE_INT64tTYPE_UINT64tTYPE_SINT64t
TYPE_INT32tTYPE_UINT32tTYPE_SINT32tboolt	TYPE_BOOLRktTYPE_STRINGR�RR
RRRRRt
mmap_prot_maptmmap_flags_maptmmap_status_maptrfile_flags_maptpmap_flags_mapR�tgen_mapstsk_mapsRXRYt	gen_rmapstsk_rmapsR�ReRnRrRsRvRxRzR}RR�R�R�R�R�tFalseR�R�R�R�(((s9/usr/lib/python2.7/site-packages/pycriu/images/pb2dict.pyt<module>s�











																										

								

				(	(

Hacked By AnonymousFox1.0, Coded By AnonymousFox