Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
multi_interface_roam.ipaddr._BaseV4 Class Reference
Inheritance diagram for multi_interface_roam.ipaddr._BaseV4:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def is_link_local
def is_loopback
def is_multicast
def is_private
def is_reserved
def is_unspecified
def max_prefixlen
def packed
def version

Private Member Functions

def _explode_shorthand_ip_string
def _ip_int_from_string
def _is_valid_ip
def _string_from_ip_int

Private Attributes

 _max_prefixlen
 _version

Static Private Attributes

tuple _ALL_ONES = (2**32)

Detailed Description

Base IPv4 object.

The following methods are used by IPv4 objects in both single IP
addresses and networks.

Definition at line 939 of file ipaddr.py.


Constructor & Destructor Documentation

def multi_interface_roam.ipaddr._BaseV4.__init__ (   self,
  address 
)

Reimplemented in multi_interface_roam.ipaddr.IPv4Address.

Definition at line 951 of file ipaddr.py.


Member Function Documentation

def multi_interface_roam.ipaddr._BaseV4._explode_shorthand_ip_string (   self,
  ip_str = None 
) [private]

Definition at line 955 of file ipaddr.py.

def multi_interface_roam.ipaddr._BaseV4._ip_int_from_string (   self,
  ip_str 
) [private]
Turn the given IP string into an integer for comparison.

Args:
    ip_str: A string, the IP ip_str.

Returns:
    The IP ip_str as an integer.

Raises:
    AddressValueError: if the string isn't a valid IP string.

Definition at line 960 of file ipaddr.py.

def multi_interface_roam.ipaddr._BaseV4._is_valid_ip (   self,
  address 
) [private]
Validate the dotted decimal notation IP/netmask string.

Args:
    address: A string, either representing a quad-dotted ip
or an integer which is a valid IPv4 IP address.

Returns:
    A boolean, True if the string is a valid dotted decimal IP
    string.

Definition at line 1000 of file ipaddr.py.

def multi_interface_roam.ipaddr._BaseV4._string_from_ip_int (   self,
  ip_int 
) [private]
Turns a 32-bit integer into dotted decimal notation.

Args:
    ip_int: An integer, the IP address.

Returns:
    The IP address as a string in dotted decimal notation.

Definition at line 984 of file ipaddr.py.

Test if the address is reserved for link-local.

Returns:
    A boolean, True if the address is link-local per RFC 3927.

Definition at line 1100 of file ipaddr.py.

Test if the address is a loopback address.

Returns:
    A boolean, True if the address is a loopback per RFC 3330.

Definition at line 1090 of file ipaddr.py.

Test if the address is reserved for multicast use.

Returns:
    A boolean, True if the address is multicast.
    See RFC 3171 for details.

Definition at line 1068 of file ipaddr.py.

Test if this address is allocated for private networks.

Returns:
    A boolean, True if the address is reserved per RFC 1918.

Definition at line 1056 of file ipaddr.py.

Test if the address is otherwise IETF reserved.

 Returns:
     A boolean, True if the address is within the
     reserved IPv4 Network range.

Definition at line 1045 of file ipaddr.py.

Test if the address is unspecified.

Returns:
    A boolean, True if this is the unspecified address as defined in
    RFC 5735 3.

Definition at line 1079 of file ipaddr.py.

Definition at line 1032 of file ipaddr.py.

The binary representation of this address.

Definition at line 1036 of file ipaddr.py.

Definition at line 1041 of file ipaddr.py.


Member Data Documentation

tuple multi_interface_roam::ipaddr._BaseV4::_ALL_ONES = (2**32) [static, private]

Definition at line 949 of file ipaddr.py.

Definition at line 951 of file ipaddr.py.

Definition at line 951 of file ipaddr.py.


The documentation for this class was generated from the following file:


multi_interface_roam
Author(s): Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:18