sipxportlib
Version 3.3
|
#include "os/OsIntTypes.h"
#include <arpa/inet.h>
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <os/HostAdapterAddress.h>
#include <os/OsSysLog.h>
Functions | |
bool | getAllLocalHostIps (const HostAdapterAddress *localHostAddresses[], int &numAddresses) |
bool | getContactAdapterName (UtlString &adapterName, const UtlString &ipAddress, bool unusedHere) |
bool getAllLocalHostIps | ( | const HostAdapterAddress * | localHostAddresses[], |
int & | numAddresses | ||
) |
Get the addresses associated with all of the IP interfaces.
The core work is done by the SIOCGIFCONF ioctl, documented in the netdevice(7) manual page, with additional hints in ioctl(2), ip(7) and inet(3).