Package rpki.resource_set

Classes

class  resource_bag
class  resource_range
class  resource_range_as
class  resource_range_ip
class  resource_range_ipv4
class  resource_range_ipv6
class  resource_set
class  resource_set_as
class  resource_set_ip
class  resource_set_ipv4
class  resource_set_ipv6
class  roa_prefix
class  roa_prefix_ipv4
class  roa_prefix_ipv6
class  roa_prefix_set
class  roa_prefix_set_ipv4
class  roa_prefix_set_ipv6

Functions

def _bs2long
def _long2bs
def _rsplit
def test1
def test2

Variables

string inherit_token = "<inherit>"
 Token used to indicate inheritance in read and print syntax.

Detailed Description

Classes dealing with sets of resources.

The basic mechanics of a resource set are the same for any of the
resources we handle (ASNs, IPv4 addresses, or IPv6 addresses), so we
can provide the same operations on any of them, even though the
underlying details vary.

We also provide some basic set operations (union, intersection, etc).

$Id: resource_set.py 2776 2009-09-19 03:26:51Z sra $

Copyright (C) 2009  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
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

Portions copyright (C) 2007--2008  American Registry for Internet Numbers ("ARIN")

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND ARIN DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS.  IN NO EVENT SHALL ARIN BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

Function Documentation

def rpki.resource_set._bs2long (   bs,
  addrlen,
  fill 
) [private]
Utility function to convert a bitstring (POW.pkix tuple
representation) into a Python long.

Definition at line 514 of file resource_set.py.

def rpki.resource_set._long2bs (   number,
  addrlen,
  prefixlen = None,
  strip = None 
) [private]
Utility function to convert a Python long into a POW.pkix tuple
bitstring.  This is a bit complicated because it supports the
fiendishly compact encoding used in RFC 3779.

Definition at line 526 of file resource_set.py.

def rpki.resource_set._rsplit (   rset,
  that 
) [private]
Utility function to split a resource range into two resource ranges.

Definition at line 190 of file resource_set.py.

def rpki.resource_set.test1 (   t,
  s1,
  s2 
)

Definition at line 884 of file resource_set.py.

def rpki.resource_set.test2 (   t,
  s1,
  s2 
)

Definition at line 917 of file resource_set.py.


Variable Documentation

Token used to indicate inheritance in read and print syntax.

Definition at line 48 of file resource_set.py.


Generated on Tue Jan 12 07:56:02 2010 for RPKI Engine by  doxygen 1.6.1