KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21573/task/21573/root/usr/share/system-config-network/netconfpkg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/task/21573/root/usr/share/system-config-network/netconfpkg/ipcalc.pyc
mò
\Tc@s\dkZdkZdfd„ƒYZd„ZedjoeƒndZdZdZdS(NtIPCalccBsAtZdZeed„Zd„Zd„Zd„Zd„ZRS(s«A wrapper class that encapsulates the command line
    functionality of the ipcalc command, providing access to computing
    network prefixes, netmasks, etc. from python.cCs||_||_||_dS(s·Initialize an IPCalc object.  Address must be provided, and
        in order for most of the other calculations to be possible,
        one of prefix or netmask must also be provided.N(taddresstselft_addresstprefixt_prefixtnetmaskt_netmask(RRRR((t5/usr/share/system-config-network/netconfpkg/ipcalc.pyt__init__s		cCs­|io|iSn•|ip?tid|iƒiƒ}ti	d|ƒi
ƒd|_ntid|i|ifƒiƒ}ti	d|ƒi
ƒd|_|iSdS(Nsipcalc -m %ss
NETMASK=(\S+)isipcalc -p %s %ssPREFIX=(\d+)(RRRtostpopenRtreadttexttretmatchtgroups(RR
((RRs

#%cCsˆ|io|iSnp|ip tid|iƒiƒ}n tid|i|ifƒ}ti	d|ƒi
ƒd|_|iSdS(Nsipcalc -m %ssipcalc -m %s/%ss
NETMASK=(\S+)i(RRRR
RRRR
RRR(RR
((RR,s

 cCsW|ip|iƒntid|i|ifƒiƒ}ti	d|ƒi
ƒdS(Nsipcalc -n %s/%ss
NETWORK=(\S+)i(RRRR
RRRR
RRR(RR
((Rtnetwork8s
%cCsW|ip|iƒntid|i|ifƒiƒ}ti	d|ƒi
ƒdS(Nsipcalc -b %s/%ssBROADCAST=(\S+)i(RRRR
RRRR
RRR(RR
((Rt	broadcast>s
%(	t__name__t
__module__t__doc__tNoneR	RRRR(((RRs	
		cCsRtdddƒ}dG|iƒGHdG|iƒGHdG|iƒGHdG|iƒGHdS(	s#Test function for the IPCalc class.s
207.175.42.15Rs
255.255.254.0sprefix:snetmask:sbcast:snetwork:N(RtipcRRRR(R((RttestDst__main__s Harald Hoyer <harald@redhat.com>s$Date: 2005/03/03 17:25:25 $s$Revision: 1.6 $(R
RRRRt
__author__t__date__t__version__(RRRRRRR
((Rt?s		2	



Anon7 - 2021