libtools
Main Page
Modules
Classes
Files
File List
File Members
tools
iface.h
Go to the documentation of this file.
1
20
#ifndef __TOOLS_IFACE_H
21
#define __TOOLS_IFACE_H
22
23
#include <net/if.h>
24
#include <netinet/in.h>
25
33
#define IN_LOOPBACK(a) ((((in_addr_t)(a)) & 0x7f000000) == 0x7f000000)
34
36
struct
iface
{
38
char
name
[IFNAMSIZ];
39
41
in_addr_t
addr
;
42
};
43
54
int
iface_list
(
void
(*iface_cb)(
struct
iface
*,
void
*),
void
*priv);
55
58
#endif
/* __TOOLS_IFACE_H */
iface::addr
in_addr_t addr
IPv4 address.
Definition:
iface.h:41
iface_list
int iface_list(void(*iface_cb)(struct iface *, void *), void *priv)
list IPv4 network interfaces
iface
network interface
Definition:
iface.h:36
iface::name
char name[IFNAMSIZ]
network interface name
Definition:
iface.h:38
Generated by
1.8.11