test commit
This commit is contained in:
parent
900b824604
commit
fccd461e1a
2 changed files with 13 additions and 4 deletions
|
@ -1 +1,2 @@
|
|||
tcpdump -nn -v -i eth0 -s 1500 -c 1 'ether[20:2] == 0x2000'
|
||||
|
||||
|
|
|
@ -155,19 +155,27 @@ headers.check(r._headers, 300000)
|
|||
|
||||
print '\tgeoipv4 test:',
|
||||
r = b.open('http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-11&arch=i386&ip=64.34.163.94')
|
||||
if r.readlines()[0].count('country = US'):
|
||||
if r.readline().count('country = US'):
|
||||
print OK
|
||||
else:
|
||||
print FAILED
|
||||
headers.check(r._headers, 300000)
|
||||
|
||||
print '\tgeoipv6 test:',
|
||||
r = b.open('http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-11&arch=i386&ip=2610:28:200:1:216:3eff:fe62:9fdd')
|
||||
if r.readlines()[0].count('country = US'):
|
||||
if r.readline().count('country = US'):
|
||||
print OK
|
||||
else:
|
||||
print FAILED
|
||||
headers.check(r._headers, 300000)
|
||||
|
||||
print '\tASN test:',
|
||||
r = b.open('http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-11&arch=i386&ip=64.34.163.94')
|
||||
|
||||
if r.readline().count('Using ASN 30099') and r.readline().count('serverbeach1'):
|
||||
tmp = r.readline()
|
||||
#if r.readline().count('Using ASN 30099') and r.readline().count('serverbeach1'):
|
||||
if tmp.count('Using ASN 30099') and tmp.count('serverbeach1'):
|
||||
print OK
|
||||
else:
|
||||
print FAILED
|
||||
print tmp
|
||||
headers.check(r._headers, 300000)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue