coxley / asn_report

Analyzes traffic via netflow or live capture and graphs ASN's
MIT License
20 stars 3 forks source link

Code refactor and organizational names #1

Closed coxley closed 9 years ago

coxley commented 9 years ago

Description

This PR from develop adds some features:

In addition, this also refactors and cleans up some code. Specifically it adds the class ASNLookup which transparently glues together maxmind org lookup and ip to asn lookup into a nice interface. This allows in code to do something like:


>>> lookup = ASNLookup(ipaddr='8.8.8.8')
>>> lookup.orgname
'Google Inc.'
>>> lookup.asnum
15169
>>> lookup.parent_pfx
'8.8.8.0/24'