Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (f - i) ioctl(2)
SIOCSIFADDR
Sets the interface address. The data structure pointed to by arg is of type ifreq.
Returns the error [EOPNOTSUPP].
SIOCSIFDSTADDR
Sets the destination address on a point-to-point interface. The data structure
pointed to by arg is of type ifreq. Returns the error [EOPNOTSUPP].
SIOCSIFFLAGS
Sets the interface ags. The data structure pointed to by arg is of type ifreq.
Returns the error [EOPNOTSUPP].
SIOCSIFBRDADDR
Sets the destination address on a broadcast interface. The data structure pointed
to by arg is of type ifreq. Returns the error [EOPNOTSUPP].
SIOCSIFNETMASK
Sets the network address mask, which species the portion of the IP host ID and
IP network number that should be masked to dene a subnet. The data structure
pointed to by arg is of type ifreq. Returns the error [EOPNOTSUPP].
SIOCSARP Sets the ARP protocol address entry in the translation table. The data structure
pointed to by arg is of type arpreq.
SIOCDARP Deletes the ARP protocol address entry from the translation table. The data
structure pointed to by arg is of type arpreq.
SIOCGIFADDR
Gets the interface address. The data structure pointed to by arg is of type ifreq.
Returns the error [ENXIO].
SIOCGIFDSTADDR
Gets the destination address on a point-to-point interface. The data structure
pointed to by arg is of type ifreq.
SIOCGIFFLAGS
Gets the interface ags. The data structure pointed to by arg is of type ifreq.
SIOCGIFBRDADDR
Gets the destination address on a broadcast interface. The data structure pointed
to by arg is of type ifreq.
SIOCGIFCONF
Gets the interface conguration list. The data structure pointed to by arg is of
type ifconf.
SIOCGIFNETMASK
Gets the network address mask, which species the portion of the IP host ID and
IP network number that should be masked to dene a subnet. The data structure
pointed to by arg is of type ifreq.
SIOCGARP Gets the ARP protocol address entry from the translation table. The data struc-
ture pointed to by arg is of type arpreq.
The values valid for the request parameter for tty devices are:
TIOCGWINSZ
Causes the current values for the Telserv window identied by the ledes param-
eter to be stored in the winsize structure pointed to by arg.
527186-003 Hewlett-Packard Company 361