Package nattraverso :: Module utils
[show private | hide private]
[frames | no frames]

Module nattraverso.utils

Various utility functions used in the nattraverso package.

Version: 0.1.0

Author: Raphael Slinckx

Contact: raphael@slinckx.net

Copyright: Copyright 2005

License: LGPL

Function Summary
  is_bogus_ip(ip)
Checks if the given ip address is bogus, i.e.
  is_rfc1918_ip(ip)
Checks if the given ip address is a rfc1918 one.

Variable Summary
str __revision__ = '$id'

Function Details

is_bogus_ip(ip)

Checks if the given ip address is bogus, i.e. 0.0.0.0 or 127.0.0.1.
Parameters:
ip - The ip address to test
           (type=a string "x.x.x.x")
Returns:
True if it's bogus, False otherwise

is_rfc1918_ip(ip)

Checks if the given ip address is a rfc1918 one.
Parameters:
ip - The ip address to test
           (type=a string "x.x.x.x")
Returns:
True if it's a LAN address, False otherwise

Variable Details

__revision__

Type:
str
Value:
'$id'                                                                  

Generated by Epydoc 2.1 on Tue Aug 30 14:56:47 2005 http://epydoc.sf.net