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

(039f57da14ba35df8e979df7333ccc665889a72d)

#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
#define ARPHRD_PHONET_PIPE   821
#define ARPHRD_IEEE802154   804
#define ARPHRD_6LOWPAN   825

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 *bufbuf)
static void getAddresses (int sock, char *bufbuf, QList< QNetworkInterfacePrivate * > &resultresult)

Macro Definition Documentation

◆ ARPHRD_6LOWPAN

#define ARPHRD_6LOWPAN   825

Definition at line 29 of file qnetworkinterface_linux.cpp.

◆ ARPHRD_IEEE802154

#define ARPHRD_IEEE802154   804

Definition at line 28 of file qnetworkinterface_linux.cpp.

◆ ARPHRD_PHONET

#define ARPHRD_PHONET   820

Definition at line 26 of file qnetworkinterface_linux.cpp.

◆ ARPHRD_PHONET_PIPE

#define ARPHRD_PHONET_PIPE   821

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.