32 #define IO_IF_NAME_STRLEN 256 34 #define IO_IF_NAME_STRLEN 16 76 #define IO_IFINFO_INIT \ 78 0, { '\0' }, 0, 0, IO_ADDR_INIT, IO_ADDR_INIT, IO_ADDR_INIT \ 103 #endif // !LELY_IO_IF_H_ io_addr_t broadaddr
The broadcast address of the interface.
io_addr_t addr
The address of the interface.
A structure describing a network interface.
The interface supports multicast.
An opaque network address type.
The interface is running.
io_addr_t netmask
The netmask used by the interface.
The interface is a loopback interface.
The interface is a point-to-point link.
#define IO_IF_NAME_STRLEN
The maximum number of bytes required to hold the name of a network interface, including the terminati...
int domain
The domain of the interface (one of IO_SOCK_BTH, IO_SOCK_IPV4, IO_SOCK_IPV6 or IO_SOCK_UNIX).
unsigned int index
The interface index.
char name[IO_IF_NAME_STRLEN]
The interface name.
int flags
The status of the interface (any combination of IO_IF_UP, IO_IF_BROADCAST, IO_IF_LOOPBACK, IO_IF_POINTTOPOINT and IO_IF_MULTICAST).
int io_get_ifinfo(int maxinfo, struct io_ifinfo *info)
Obtains a list of network interfaces.
This header file is part of the I/O library; it contains the network address declarations.
A valid broadcast address is set.