Lely core libraries
2.3.4
|
Go to the documentation of this file.
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_
int io_get_ifinfo(int maxinfo, struct io_ifinfo *info)
Obtains a list of network interfaces.
A structure describing a network interface.
@ IO_IF_BROADCAST
A valid broadcast address is set.
An opaque network address type.
io_addr_t netmask
The netmask used by the interface.
@ IO_IF_MULTICAST
The interface supports multicast.
@ IO_IF_LOOPBACK
The interface is a loopback interface.
@ IO_IF_UP
The interface is running.
int flags
The status of the interface (any combination of IO_IF_UP, IO_IF_BROADCAST, IO_IF_LOOPBACK,...
int domain
The domain of the interface (one of IO_SOCK_BTH, IO_SOCK_IPV4, IO_SOCK_IPV6 or IO_SOCK_UNIX).
@ IO_IF_POINTTOPOINT
The interface is a point-to-point link.
unsigned int index
The interface index.
#define IO_IF_NAME_STRLEN
The maximum number of bytes required to hold the name of a network interface, including the terminati...
io_addr_t broadaddr
The broadcast address of the interface.
io_addr_t addr
The address of the interface.
char name[IO_IF_NAME_STRLEN]
The interface name.