aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/ipaddrs.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2012-11-15 22:13:53 +0000
committerRob Austein <sra@hactrn.net>2012-11-15 22:13:53 +0000
commit756fdbe0d7eda1e98663c62bb3e57f2c18e88ee1 (patch)
treec0af81a5987e9859d12a0323d0d240f58d8b2f36 /rpkid/rpki/ipaddrs.py
parent713507be1695d8f2f278ab925d58defc58eff2aa (diff)
parent11f3b8df179a16ebe1446dab620522ac97e3c327 (diff)
Merge tk274 performance work back to trunk. Closes #274.
svn path=/trunk/; revision=4878
Diffstat (limited to 'rpkid/rpki/ipaddrs.py')
-rw-r--r--rpkid/rpki/ipaddrs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/rpkid/rpki/ipaddrs.py b/rpkid/rpki/ipaddrs.py
index a192f92b..d096e1d4 100644
--- a/rpkid/rpki/ipaddrs.py
+++ b/rpkid/rpki/ipaddrs.py
@@ -13,7 +13,7 @@ once, here, thus avoiding a lot of duplicate code elsewhere.
$Id$
-Copyright (C) 2009 Internet Systems Consortium ("ISC")
+Copyright (C) 2009-2012 Internet Systems Consortium ("ISC")
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
@@ -52,6 +52,7 @@ class v4addr(long):
"""
bits = 32
+ ipversion = 4
def __new__(cls, x):
"""
@@ -91,6 +92,7 @@ class v6addr(long):
"""
bits = 128
+ ipversion = 6
def __new__(cls, x):
"""