PAL.C.T MINI SHELL
��
��Tc@sRddkZddkZd�Zd�Zd�Zd�Zd�Zd�ZdS(i����NcCs�t|ti�o
|}nP|o|i�}nyt|�}Wn%yti|�}WqldSXnX|djodS|S(Ni����i��(t
isinstancettypestIntTypetstriptinttsockett
getservbyname(tporttid((s1/usr/share/system-config-firewall/fw_functions.pyt getPortIDs
cCs�t|ti�o&t|�}|djo|fSdS|id�}g}xtt|�dd�D]}tdi|| ��}di||�}t|�djo�t|�}|djoi|djo\||jo|i||f�q.||jo|i||f�q.|i|f�qkqg|djo,|i|f�|t|�joPqkqgqgWt|�djodSt|�djodS|dS(Nii����t-i(
RRRR tsplittxrangetlentjointappendtNone(tportsRtsplitstmatchedtitid1tport2tid2((s1/usr/share/system-config-firewall/fw_functions.pytgetPortRange's8
cCs+ytit|�|�}WndSX|S(N(Rt
getservbyportRR(Rtprototname((s1/usr/share/system-config-firewall/fw_functions.pytgetServiceNameHs
cCsPyt|d�}WntSXx!|i�D]}|i|�q+W|i�tS(Ntr(topentFalset
xreadlinestwritetclosetTrue(tfdtfilenamet source_fdtline((s1/usr/share/system-config-firewall/fw_functions.pytcatFileOs
cCs�|djo�|id�}t|�djotSx\tt|��D]D}yt||�}WntSX|djp
|djotSqGWntS(Ntt.iii�(RR
RRRR#(tipRRtl((s1/usr/share/system-config-firewall/fw_functions.pytcheckIPYs
cCsh|pt|�djotSx/dddddgD]}||jotSq6W|djotStS(Nit t/t!t:t*t+(R
RR#(tifacetch((s1/usr/share/system-config-firewall/fw_functions.pytcheckInterfacegs
(RRR RRR(R-R6(((s1/usr/share/system-config-firewall/fw_functions.pyt<module>s !
�
y���~�or�5�J�={��E��e�u磝Qk��ᯘG{�?���+�]������ן�?w�M3X^��歌>{�7پ�K�>�o��n�\����j�y��R���g/�=��f�O��r�o��NV�v��~�Y+��NG�u���Ý����HW��y�w�[eQ�ʨ�S�b��>������>�}G�mx[o[<��{���Ϯ_��qF���vMIEND�B`�