4 from pydhcplib.type_ipv4 import ipv4
10 address1 = ipv4("192.168.0.1")
11 print "a1 : ",address1
13 address2 = ipv4("10.0.0.1")
14 print "a2 : ",address2
16 address3 = ipv4([192,168,0,1])
17 print "a3 : ",address3
21 if address1 == address2 : print "test 1 : ",address1, "==",address2
22 else : print "test 1 : " ,address1, "!=",address2
24 if address1 == address3 : print "test 2 : ", address1, "==",address3
25 else : print "test 2 : ", address1, "!=",address3