Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qnetworkinterface_linux.cpp File Reference

(fd34c2fd3532c5b6430e90b28947c1e9404514dd)

#include "qnetworkinterface.h"
#include "qnetworkinterface_p.h"
#include "qnetworkinterface_unix_p.h"
#include <qendian.h>
#include <qobjectdefs.h>
#include <qscopeguard.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>
Include dependency graph for qnetworkinterface_linux.cpp:

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 , BufferSize = 8192 }
enum  { BufferSize = 8192 , 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)

Macro Definition Documentation

◆ ARPHRD_6LOWPAN

#define ARPHRD_6LOWPAN   825 /* v3.14: IPv6 over LoWPAN */

Definition at line 29 of file qnetworkinterface_linux.cpp.

◆ ARPHRD_IEEE802154

#define ARPHRD_IEEE802154   804 /* v2.6.31 */

Definition at line 28 of file qnetworkinterface_linux.cpp.

◆ ARPHRD_PHONET

#define ARPHRD_PHONET   820 /* v2.6.29: PhoNet media type */

Definition at line 26 of file qnetworkinterface_linux.cpp.

◆ ARPHRD_PHONET_PIPE

#define ARPHRD_PHONET_PIPE   821 /* v2.6.29: PhoNet pipe header */

Definition at line 27 of file qnetworkinterface_linux.cpp.

Enumeration Type Documentation

◆ anonymous enum [1/2]

anonymous enum
Enumerator
BufferSize 
BufferSize 

Definition at line 33 of file qnetworkinterface_linux.cpp.

◆ anonymous enum [2/2]

anonymous enum
Enumerator
BufferSize 
BufferSize 

Definition at line 33 of file qnetworkinterface_linux.cpp.

Function Documentation

◆ getAddresses()

void getAddresses ( int sock,
char * buf,
QList< QNetworkInterfacePrivate * > & result )
static

Definition at line 272 of file qnetworkinterface_linux.cpp.

◆ getInterfaces()

QList< QNetworkInterfacePrivate * > getInterfaces ( int sock,
char * buf )
static

◆ probeIfType()

QNetworkInterface::InterfaceType probeIfType ( int socket,
struct ifreq * req,
short arptype )
static

Definition at line 37 of file qnetworkinterface_linux.cpp.