#include </home/clem/local/src/opie/libopie2/opienet/onetwork.h>
Inheritance diagram for Opie::Net::ONetworkInterface:


Public Member Functions | |
| ONetworkInterface (QObject *parent, const char *name) | |
| virtual | ~ONetworkInterface () |
| void | setMonitoring (OMonitoringInterface *monitoring) |
| OMonitoringInterface * | monitoring () const |
| bool | setPromiscuousMode (bool) |
| bool | promiscuousMode () const |
| bool | setUp (bool) |
| bool | isUp () const |
| bool | isLoopback () const |
| bool | isWireless () const |
| void | setIPV4Address (const QHostAddress &addr) |
| OHostAddress | ipV4Address () const |
| void | setMacAddress (const OMacAddress &addr) |
| OMacAddress | macAddress () const |
| void | setIPV4Netmask (const QHostAddress &netmask) |
| OHostAddress | ipV4Netmask () const |
| int | dataLinkType () const |
| ONetworkInterfaceDriverInfo | driverInfo () const |
Protected Member Functions | |
| ifreq & | ifr () const |
| virtual void | init () |
| bool | ioctl (int call) const |
| bool | ioctl (int call, struct ifreq &) const |
Protected Attributes | |
| const int | _sfd |
| ifreq | _ifr |
| OMonitoringInterface * | _mon |
Private Attributes | |
| Private * | d |
Friends | |
| class | OMonitoringInterface |
| class | OCiscoMonitoringInterface |
| class | OWlanNGMonitoringInterface |
| class | OHostAPMonitoringInterface |
| class | OOrinocoMonitoringInterface |
This class provides a wrapper for a network interface. All the cumbersume details of Linux ioctls are hidden under a convenient high-level interface.
Definition at line 141 of file onetwork.h.
|
||||||||||||
|
Constructor. Normally you don't create ONetworkInterface objects yourself, but access them via ONetwork::interface(). Definition at line 182 of file onetwork.cpp. |
|
|
Destructor. Definition at line 338 of file onetwork.cpp. |
|
|
Definition at line 312 of file onetwork.cpp. Referenced by Opie::Net::OWirelessNetworkInterface::mode(). |
|
|
Definition at line 367 of file onetwork.cpp. |
|
|
Definition at line 191 of file onetwork.cpp. References _ifr. |
|
|
Reimplemented in Opie::Net::OWirelessNetworkInterface. Definition at line 197 of file onetwork.cpp. References _ifr, _sfd, name, odebug, and oendl. Referenced by ONetworkInterface(). |
|
||||||||||||
|
Definition at line 210 of file onetwork.cpp. References _sfd, ioctl(), Opie::Net::Internal::DebugMapper::map(), name, odebug, and oendl. |
|
|
|
Definition at line 267 of file onetwork.cpp. Referenced by IfaceIPAddress::IfaceIPAddress(), IfaceIPAddress::returnPressed(), and OpieStumbler::slotCheckDHCP(). |
|
|
Definition at line 305 of file onetwork.cpp. Referenced by IfaceIPAddress::returnPressed(). |
|
|
Definition at line 234 of file onetwork.cpp. |
|
|
Definition at line 250 of file onetwork.cpp. Referenced by IfaceUpDownButton::clicked(). |
|
|
Definition at line 361 of file onetwork.cpp. References ioctl(). Referenced by Wellenreiter::Wellenreiter(). |
|
|
Definition at line 282 of file onetwork.cpp. References _ifr, ioctl(), and Opie::Net::OMacAddress::unknown. |
|
|
Definition at line 332 of file onetwork.cpp. References _mon. |
|
|
Definition at line 354 of file onetwork.cpp. Referenced by Wellenreiter::Wellenreiter(). |
|
|
Associate the IP address @ addr with the interface. Definition at line 257 of file onetwork.cpp. Referenced by IfaceIPAddress::returnPressed(). |
|
|
Associate the IPv4 netmask with the interface. Definition at line 295 of file onetwork.cpp. Referenced by IfaceIPAddress::returnPressed(). |
|
|
Associate the MAC address addr with the interface.
Definition at line 274 of file onetwork.cpp. References _ifr, ioctl(), and Opie::Net::OMacAddress::native(). |
|
|
Associates a monitoring interface with this network interface.
Definition at line 325 of file onetwork.cpp. References _mon, name, odebug, and oendl. Referenced by Opie::Net::OCiscoMonitoringInterface::OCiscoMonitoringInterface(), Opie::Net::OHostAPMonitoringInterface::OHostAPMonitoringInterface(), Opie::Net::OOrinocoMonitoringInterface::OOrinocoMonitoringInterface(), Opie::Net::OWlanNGMonitoringInterface::OWlanNGMonitoringInterface(), and Wellenreiter::startClicked(). |
|
|
Setting an interface to promiscuous mode enables the device to receive all packets on the shared medium - as opposed to packets which are addressed to this interface. Definition at line 345 of file onetwork.cpp. Referenced by Wellenreiter::stopClicked(), and Wellenreiter::Wellenreiter(). |
|
|
Setting an interface to up enables it to receive packets. Definition at line 241 of file onetwork.cpp. Referenced by IfaceUpDownButton::clicked(), OpieStumbler::slotJoinNetwork(), and Stumbler::start(). |
|
|
Reimplemented in Opie::Net::OWirelessNetworkInterface. Definition at line 144 of file onetwork.h. |
|
|
Reimplemented in Opie::Net::OWirelessNetworkInterface. Definition at line 146 of file onetwork.h. |
|
|
Reimplemented in Opie::Net::OWirelessNetworkInterface. Definition at line 143 of file onetwork.h. |
|
|
Reimplemented in Opie::Net::OWirelessNetworkInterface. Definition at line 147 of file onetwork.h. |
|
|
Reimplemented in Opie::Net::OWirelessNetworkInterface. Definition at line 145 of file onetwork.h. |
|
|
Definition at line 234 of file onetwork.h. Referenced by Opie::Net::OWirelessNetworkInterface::associatedAP(), dataLinkType(), driverInfo(), ifr(), init(), ioctl(), ipV4Address(), ipV4Netmask(), isLoopback(), isUp(), macAddress(), promiscuousMode(), setIPV4Address(), setIPV4Netmask(), setMacAddress(), setPromiscuousMode(), and setUp(). |
|
|
Definition at line 235 of file onetwork.h. Referenced by monitoring(), Opie::Net::OWirelessNetworkInterface::setChannel(), Opie::Net::OWirelessNetworkInterface::setMode(), and setMonitoring(). |
|
|
Definition at line 233 of file onetwork.h. Referenced by Opie::Net::OWirelessNetworkInterface::buildInformation(), init(), ioctl(), Opie::Net::OWirelessNetworkInterface::wioctl(), and ~ONetworkInterface(). |
|
|
Reimplemented in Opie::Net::OWirelessNetworkInterface. Definition at line 243 of file onetwork.h. |
1.4.2