Index Index for
Section 9
Index Alphabetical
listing for I
Bottom of page Bottom of
page

ifreq(9s)

NAME

ifreq - Network: Defines an interface request for socket ioctl commands

SYNOPSIS

______________________________ Member Name Data Type ______________________________ ifr_name[IFNAMSIZ] char ifr_ifru union ______________________________

MEMBERS

ifr_name Specifies the name of the network interface. ifr_ifru Specifies one of the following: · A sockaddr data structure that specifies the socket address. The <if.h> file defines the alternate name ifr_addr to refer to this member. · A sockaddr data structure that specifies the other end of a point- to-point link. The <if.h> file defines the alternate name ifr_dstaddr to refer to this member. · A sockaddr data structure that specifies the broadcast address. The <if.h> file defines the alternate name ifr_broadaddr to refer to this member. · Flags that describe the state and characteristics of the network interface, such as up, all multicasts, promiscuous mode, and so on. The <if.h> file defines the alternate name ifr_flags to refer to this member and the bit values for this structure member. · A routing metric (not used by network device drivers). The <if.h> file defines the alternate name ifr_metric to refer to this member. · The address of a data buffer for use by the device driver. The <if.h> file defines the ifr_data alternate name to refer to this member. · An integer argument value for use by the device driver. The <if.h> file defines the alternate name ifr_value to refer to this member.

DESCRIPTION

The ifreq data structure defines the information specific to the SIOCPHYSADDR, SIOCADDMULTI, SIOCDELMULTI, SIOCSIFFLAGS, SIOCSIPMTU, and SIOCSMACSPEED ioctl commands.

FILES

<net/if.h>

SEE ALSO

Data Structures: sockaddr(9s)

Index Index for
Section 9
Index Alphabetical
listing for I
Top of page Top of
page