02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

intro(5)<br />

SIOCSIFFLAGS<br />

SIOCGIFFLAGS<br />

SIOCGIFCONF<br />

intro(5)<br />

Set interface flags field. If the interface<br />

is marked down, any processes currently<br />

routing packets through the interface are<br />

notified.<br />

Get interface flags.<br />

Get interface configuration list. This request<br />

takes an ifconf structure (see<br />

below) as a value-result parameter. The<br />

if c _len field should be initially set to<br />

the size of the buffer pointed to by<br />

if c buf. On return it will contain the<br />

length, in bytes, of the configuration list.<br />

/*<br />

* Structure used in SIOCGIFCONF request.<br />

* Used to retrieve interface configuration<br />

* for machine (useful for programs which<br />

* must know all networks accessible).<br />

*/<br />

#define ifc buf ifc_ifcu.ifcu_buf /* buffer address */<br />

#define ifc_req ifc_ifcu.ifcu_req /* array of structures<br />

returned */<br />

struct ifconf {<br />

int<br />

/* size of associated<br />

buffer * /<br />

union<br />

caddr_t ifcu_buf;<br />

struct ifreq *ifcu_req;<br />

ifc ifcu;<br />

} ;<br />

SEE ALSO<br />

routed(1M), socket(2N), ioctl(2).<br />

February, 1990<br />

Revision C<br />

5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!