Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include "qnetworkinterface.h"
#include "qnetworkinterface_p.h"
#include "qnetworkinterface_unix_p.h"
#include <qendian.h>
#include <qobjectdefs.h>
#include <qvarlengtharray.h>
#include <asm/types.h>
#include <linux/if.h>
#include <linux/if_arp.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <linux/wireless.h>
#include <sys/socket.h>
Go to the source code of this file.
Macros | |
#define | ARPHRD_PHONET 820 /* v2.6.29: PhoNet media type */ |
#define | ARPHRD_PHONET_PIPE 821 /* v2.6.29: PhoNet pipe header */ |
#define | ARPHRD_IEEE802154 804 /* v2.6.31 */ |
#define | ARPHRD_6LOWPAN 825 /* v3.14: IPv6 over LoWPAN */ |
Enumerations | |
enum | { BufferSize = 8192 } |
Functions | |
static QNetworkInterface::InterfaceType | probeIfType (int socket, struct ifreq *req, short arptype) |
static QList< QNetworkInterfacePrivate * > | getInterfaces (int sock, char *buf) |
static void | getAddresses (int sock, char *buf, QList< QNetworkInterfacePrivate * > &result) |
#define ARPHRD_6LOWPAN 825 /* v3.14: IPv6 over LoWPAN */ |
Definition at line 27 of file qnetworkinterface_linux.cpp.
Referenced by probeIfType().
#define ARPHRD_IEEE802154 804 /* v2.6.31 */ |
Definition at line 26 of file qnetworkinterface_linux.cpp.
Referenced by probeIfType().
#define ARPHRD_PHONET 820 /* v2.6.29: PhoNet media type */ |
Definition at line 24 of file qnetworkinterface_linux.cpp.
Referenced by probeIfType().
#define ARPHRD_PHONET_PIPE 821 /* v2.6.29: PhoNet pipe header */ |
Definition at line 25 of file qnetworkinterface_linux.cpp.
Referenced by probeIfType().
anonymous enum |
Enumerator | |
---|---|
BufferSize |
Definition at line 31 of file qnetworkinterface_linux.cpp.
|
static |
Definition at line 292 of file qnetworkinterface_linux.cpp.
References AF_INET6, BufferSize, QNetworkInterfacePrivate::calculateDnsEligibility(), QDeadlineTimer::Forever, ptr(), Q_ASSERT, Q_UNLIKELY, qWarning, and sock.
|
static |
Definition at line 224 of file qnetworkinterface_linux.cpp.
References BufferSize, if(), Q_UNLIKELY, and sock.
|
static |
Definition at line 35 of file qnetworkinterface_linux.cpp.
References ARPHRD_6LOWPAN, ARPHRD_IEEE802154, ARPHRD_PHONET, ARPHRD_PHONET_PIPE, QNetworkInterface::CanBus, QNetworkInterface::Ethernet, QNetworkInterface::Fddi, QNetworkInterface::Ieee80211, QNetworkInterface::Ieee802154, QNetworkInterface::Loopback, QNetworkInterface::Phonet, QNetworkInterface::Ppp, qt_safe_ioctl(), QNetworkInterface::SixLoWPAN, QNetworkInterface::Slip, socket, QNetworkInterface::Unknown, QNetworkInterface::Virtual, and QNetworkInterface::Wifi.