zephir.monitor.agents.ifconfig.ifconfig

Package zephir :: Package monitor :: Package agents :: Module ifconfig :: Class ifconfig |
[frames] | no frames]

# Class ifconfig

source code

ioctl stuff

Instance Methods
__init__(self) | source code
getInterfaceList(self) Get all interface names in a list | source code
getAddr(self, ifname) Get the inet addr for an interface | source code
getNetmask(self, ifname) Get the netmask for an interface | source code
getBroadcast(self, ifname) Get the broadcast addr for an interface | source code
getStatus(self, ifname) Check whether interface is UP | source code
getMTU(self, ifname) Get the MTU size of an interface | source code

Class Variables
| IFNAMSIZ = `16`
| SIOCGIFADDR = `35093`
| SIOCGIFBRDADDR = `35097`
| SIOCGIFCONF = `35090`
| SIOCGIFFLAGS = `35091`
| SIOCGIFMTU = `35105`
| SIOCGIFNETMASK = `35099`
| SIOCSIFADDR = `35094`
| SIOCSIFBRDADDR = `35098`
| SIOCSIFFLAGS = `35092`
| SIOCSIFMTU = `35106`
| SIOCSIFNETMASK = `35100`
| IFF_UP = `1`
| IFF_BROADCAST = `2`
| IFF_DEBUG = `4`
| IFF_LOOPBACK = `8`
| IFF_POINTOPOINT = `16`
| IFF_NOTRAILERS = `32`
| IFF_RUNNING = `64`
| IFF_NOARP = `128`
| IFF_PROMISC = `256`
| IFF_ALLMULTI = `512`
| IFF_MASTER = `1024`
| IFF_SLAVE = `2048`
| IFF_MULTICAST = `4096`
| IFF_PORTSEL = `8192`
| IFF_AUTOMEDIA = `16384`