AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database

Declaration for 

ifreq from NetLib:sys.h.if

(Struct)
/*
* Interface request structure used for socketioctl's
* All interface socketioctl's must have parameter
* definitions which begin with ifr_name.  The
* remainder may be interface specific.
*/

struct  ifreq #define IFNAMSIZ        16
char    ifr_name[IFNAMSIZ];             /* if name, e.g. "et0" */
union {
struct  sockaddr ifru_addr;
struct  sockaddr ifru_broadaddr;
short   ifru_flags;
#define IFF_LOOPBACK    0x8             /* is a loopback net */
#define IFF_POINTOPOINT 0x10            /* interface is point-to-point link */
#define IFF_NOTRAILERS  0x20            /* avoid use of trailers */
#define IFF_RUNNING     0x40            /* resources allocated */
#define IFF_NOARP       0x80            /* no address resolution protocol */
#define IFF_UP          0x1             /* interface is up */
#define IFF_BROADCAST   0x2             /* broadcast address valid */
#define IFF_DEBUG       0x4             /* turn on debugging */
int     ifru_metric;
char    *ifru_data;
} ifr_ifru;
#define ifr_addr        ifr_ifru.ifru_addr      /* address */
#define ifr_broadaddr   ifr_ifru.ifru_broadaddr /* broadcast address */
#define ifr_flags       ifr_ifru.ifru_flags     /* flags */
#define ifr_metric      ifr_ifru.ifru_metric    /* metric */
#define ifr_data        ifr_ifru.ifru_data      /* for use by interface */
};



Open original source file

See header files's help page


[sh-index] Back to list of manuals