Technical data
SunOS 5.5 Protocols if_tcp(7P)
The ifconf structure has the form:
/∗
∗ Structure used in SIOCGIFCONF request.
∗ Used to retrieve interface configuration
∗ for machine (useful for programs which
∗ must know all networks accessible).
∗/
struct ifconf {
int ifc_len; /∗ size of associated buffer ∗/
union {
caddr_t ifcu_buf;
struct ifreq ∗ifcu_req;
} ifc_ifcu;
#define ifc_buf ifc_ifcu.ifcu_buf /∗ buffer address ∗/
#define ifc_req ifc_ifcu.ifcu_req /∗ array of structures returned ∗/
};
ERRORS EPERM The effective user id of the calling process in not superuser.
ENXIO The ifr_name member of the ifreq structure contains an invalid value.
EBADADDR Wrong address family or malformed address.
EBUSY For SIOCSIFFLAGS, this error is returned when the order of bringing the
primary/physical interface (e.g. le0) and a secondary/logical interface
associated with the same physical interface (e.g. le0:1) up or down is
violated. The physical interface must be configured up first and cannot
be configured down until all the corresponding logical interfaces have
been configured down.
EINVAL For SIOCGIFCONF, this error is returned when the size of the buffer
pointed to by the ifc_buf member of the ifconf structure is too small.
For SIOCSIFMTU, this error is returned when the requested MTU size is
invalid. This error indicates theMTU size is greater than theMTU size
supported by theDLPI provider or less than 68.
SEE ALSO ifconfig(1M), in.routed(1M), ioctl(2), arp(7P), dlpi(7P), ip(7P), streamio(7I)
modified 11 Oct 1994 7P-141










