KDECore
ksockaddr.cpp File Reference
#include "ksockaddr.h"
#include <config.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <sys/un.h>
#include <unistd.h>
#include <qglobal.h>
#include <qfile.h>
#include "kdebug.h"
#include "klocale.h"
#include "netsupp.h"
#include "ksockaddr.moc"
Include dependency graph for ksockaddr.cpp:
Go to the source code of this file.
Defines | |
#define | CLOBBER_IN6 |
#define | INET6_ADDRSTRLEN 46 |
#define | MIN_SOCKADDR_IN6_LEN (offsetof(sockaddr_in6, sin6_addr) + sizeof(((sockaddr_in6*)0)->sin6_addr)) |
#define | MIN_SOCKADDR_LEN (offsetof(sockaddr, sa_family) + sizeof(((sockaddr*)0)->sa_family)) |
#define | offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) |
#define | V6_CAN_CONVERT_TO_V4(addr) (KDE_IN6_IS_ADDR_V4MAPPED(addr) || KDE_IN6_IS_ADDR_V4COMPAT(addr)) |
Define Documentation
#define CLOBBER_IN6 |
Definition at line 47 of file ksockaddr.cpp.
#define INET6_ADDRSTRLEN 46 |
Definition at line 75 of file ksockaddr.cpp.
#define MIN_SOCKADDR_IN6_LEN (offsetof(sockaddr_in6, sin6_addr) + sizeof(((sockaddr_in6*)0)->sin6_addr)) |
Definition at line 65 of file ksockaddr.cpp.
#define MIN_SOCKADDR_LEN (offsetof(sockaddr, sa_family) + sizeof(((sockaddr*)0)->sa_family)) |
Definition at line 59 of file ksockaddr.cpp.
#define offsetof | ( | TYPE, | |||
MEMBER | ) | ((size_t) &((TYPE *)0)->MEMBER) |
Definition at line 70 of file ksockaddr.cpp.
#define V6_CAN_CONVERT_TO_V4 | ( | addr | ) | (KDE_IN6_IS_ADDR_V4MAPPED(addr) || KDE_IN6_IS_ADDR_V4COMPAT(addr)) |
Definition at line 52 of file ksockaddr.cpp.