Package flumotion :: Package common :: Module netutils
[hide private]

Module netutils

source code

Miscellaneous network functions for use in flumotion.

Classes [hide private]
  RoutingTable
Functions [hide private]
 
find_all_interface_names()
Find the names of all available network interfaces
source code
 
get_address_for_interface(ifname)
Get the IP address for an interface
source code
 
guess_public_ip()
Attempt to guess a public IP for this system.
source code
 
guess_public_hostname()
Attempt to guess a public hostname for this system.
source code
 
ipv4StringToInt(s) source code
 
ipv4IntToString(n) source code
 
countTrailingZeroes32(n) source code
Function Details [hide private]

guess_public_ip()

source code 

Attempt to guess a public IP for this system. Returns "127.0.0.1" if it can't come up with anything better.