Retrieve Network Interface Data (QtocRtvNetIfcDta) API

  Required Parameter Group:


  Service Program: QTOCNETSTS

  Threadsafe: Yes

The Retrieve Network Interface Data (QtocRtvNetIfcDta) API retrieves detailed information about a specified IPv4 or IPv6 network interface.

TCP/IP stack must not necessarily be active for this API to be called. This API can be used to retrieve the information stored in the TCP/IP configuration files.


Authorities and Locks

None.


Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The variable that is to receive the information requested. You can specify the size of this area to be smaller than the format requested if you specify the length of receiver variable parameter correctly. As a result, the API returns only the data that the area can hold.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable. If this value is larger than the actual size of the receiver variable, the result may not be predictable. The minimum length is 8 bytes.

Format name
INPUT; CHAR(8)

The format of the logical interface information to be returned. The format names supported are:


Interface request
INPUT; CHAR(*)

The Internet address and line description that identify the interface for which information is to be retrieved. See Interface Request Format for details about the format.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Interface Request Format

Information passed in the interface request parameter must be in one of the following formats. For detailed descriptions of the fields in the table, see Field Descriptions.

IPv4 Interface



Start of changeExtended IPv4 Interface



IPv6 Interface



Start of changeExtended IPv6 Interface



Field Descriptions

IPv4 address. The IPv4 address of the interface.

IPv6 address. The IPv6 address of the interface. Even though this field is defined as a character field, it must be stored in binary. It is recommended that you use the Sockets in6_addr structure.

Line name. Name of the communications line description that identifies the physical network associated with the interface. This field should only be used when trying to retrieve information about an IPv6 link-local interface, otherwise it should be blank-padded.

Protocol. The type and IP version of connection protocol.

Possible values are:

Reserved. An ignored field. It should be NULL padded.

Start of change Virtual LAN identifier. The virtual LAN to which this interface belongs according to IEEE standard 802.1Q. This field is only valid for interfaces defined for Ethernet lines.

The following are permissible values:


Format of Returned Interface Data

For detailed information about a specific IPv4 interface, use format NIFD0100.

For detailed information about a specific IPv6 interface, use format NIFD0200.


NIFD0100 Format

This format returns detailed information about the TCP/IPv4 interface. For detailed descriptions of the fields in the table, see Field Descriptions.



Format of Preferred Interface List Entry

The preferred interface list entry describes the data returned for each entry in the preferred interface list of the NIFD0100 format. For detailed descriptions of the fields in the table, see Field Descriptions.



Field Descriptions

Alias name. Name given to the interface to use as an alternate to the IP address.

Associated local interface. The Internet address, in dotted decimal notation, of the local interface that has been associated with this interface. The following is a special value:

Associated local interface binary. Binary representation of the associated local interface. The following is a special value:

Automatic start. Whether the interface is started automatically when the TCP/IP stack is activated. Possible values are:

Bytes available. All of the available bytes for use in your application.

Bytes returned. The number of bytes returned to the user. This may be some but not all the bytes available.

Change date. The date of the most recent change to this interface in the dynamic tables used by the TCP/IP protocol stack. It is returned as 8 characters in the form YYYYMMDD, where:

Change status. The status of the most recent change to this interface in the dynamic tables used by the TCP/IP protocol stack.

Change time. The time of the most recent change to this interface in the dynamic tables used by the TCP/IP protocol stack. It is returned as 6 characters in the form HHMMSS, where:

Configured MTU. The configured maximum transmission unit value specified for this interface. The following is a special value:

Directed broadcast address. The Internet address, in dotted decimal notation, used to broadcast to all systems attached to the same network or subnetwork as this interface. The following is a special value:

Directed broadcast address binary. Binary representation of the directed broadcast address. The following is a special value:

DHCP created. Specifies whether this interface was created using Dynamic Host Configuration Protocol (DHCP) or not. Possible values are:

DHCP dynamic DNS updates. Specifies whether dynamic updates to Domain Name System (DNS) tables are enabled or not. Possible values are:

DHCP lease expiration. This field specifies the date and time when the DHCP lease will expire. This is a system time-stamp.

DHCP lease expiration - date. This field specifies the date when the DHCP lease will expire.

DHCP lease expiration - time. This field specifies the time when the DHCP lease will expire.

DHCP lease obtained. This field specifies the date and time when the DHCP lease was obtained or renewed. This is a system time-stamp.

DHCP lease obtained - date. This field specifies the date when the DHCP lease was obtained or renewed.

DHCP lease obtained - time. This field specifies the time when the DHCP lease was obtained or renewed.

Start of changeDHCP server IP address. The Internet address, in dotted decimal notation, of the DHCP server from which the DHCP lease was obtained or renewed. This field will contain blanks for interfaces that are not created by DHCP.End of change

Host address. Host portion of the Internet address, in dotted decimal notation, as determined by the subnet mask specified for this interface.

Host address binary. Binary representation of the host address.

Interface line type. Type of line used by an interface. The following link protocols are supported:

Interface description. Configured free form comment field about this interface.

Interface MTU. Maximum transmission unit value specified for this interface. The following are special values:

Interface name. The first 10 characters of the name of this interface.

Interface name - full. The complete 24 character interface name.

Interface status. Current status of this logical interface.

Interface subnet mask. The subnet mask for the network, subnet, and host address fields of the Internet address, in dotted decimal notation, that defines the subnetwork for an interface.

Interface subnet mask binary. Binary representation of the interface subnet mask.

Interface type. The interface types are:

Interface type of service. The way in which the Internet hosts and routers should make trade-offs between throughput, delay, reliability and cost. The following are special values:

Internet address. The Internet address, in dotted decimal notation, of an interface.

Internet address binary. Binary representation of the Internet address.

Length of one preferred interface list entry. The length of a preferred interface list entry. For virtual interfaces, a length of zero means that a preferred interface list is not being used. For other types of interfaces, this field is set to zero.

Line description Name of the communications line description that identifies the physical network associated with an interface. The following are special values:

Network address. Internet address, in dotted decimal notation, of the IP network or subnetwork to which the interface is attached.

Network address binary. Binary representation of the network address.

Network name. The first 10 characters of the name of the network that this interface is a part of.

Network name - full. The complete 24 character name of the network that this interface is a part of.

Number of entries in preferred interface list. The number of entries in the preferred interface list. For virtual interfaces, zero means that a preferred interface list is not being used. For other types of interfaces, this field is set to zero.

Offset to preferred interface list. The offset from the start of the receiver variable to the beginning of the preferred interface list. For virtual interfaces, zero means that a preferred interface list is not being used. For other types of interfaces, this field is set to zero.

Packet rules. The kind of packet rules data available for a particular line.

Preferred interface list entry. Specifies information about an interface in the preferred interface list. The order in which the list entries are returned is also the order in which the system uses the interfaces as Proxy Agents.

Preferred interface Internet address. The Internet address, in dotted decimal notation, of an interface in the preferred interface list.

Preferred interface Internet address binary. The binary representation of an interface Internet address in the preferred interface list.

Start of changePreferred interface default route. This field describes whether the preferred proxy interfaces are based on the system's default route. Possible values are:

End of change

Proxy ARP allowed. This field applies to Opticonnect (*OPC) and Virtual interfaces only. For those types of interfaces, this field indicates whether Proxy ARP has been configured to be allowed or not allowed.

Proxy ARP enabled. Whether Proxy ARP is currently active for this interface. Proxy ARP allows physically distinct separate networks to appear as if they are a single logical network. It provides connectivity between physically separate network without creating any new logical networks and without updating any route tables.

Reserved. An ignored field.

TRLAN bit sequencing. The order the Address Resolution Protocol (ARP) puts bits into the hardware address for Token Ring. Possible values are:

Use DHCP unique identifier. Whether the DHCP unique identifier (DUID) is used as the client identification for the Dynamic Host Configuration Protocol (DHCP) or not. Possible values are:

Start of change Virtual LAN identifier. The virtual LAN to which this interface belongs according to IEEE standard 802.1Q. This field is only valid for interfaces defined for Ethernet lines.

The following are possible returned values:


NIFD0200 Format

This format returns detailed information about the TCP/IPv6 interface. For detailed descriptions of the fields in the table, see Field Descriptions.


Format of Preferred Physical Line List Entry

The preferred physical line list entry describes the data returned for each entry in the preferred physical line list of the NIFD0200 format. For detailed descriptions of the fields in the table, see Field Descriptions.



Field Descriptions

Address class. The class of IPv6 address that is assigned to this network interface.

Possible values are:

Address preferred lifetime. The length of time that a "valid" address is preferred, in seconds. When the preferred lifetime expires, the address becomes Deprecated. Valid values range from 0 through 4294967295 seconds. Negative values indicate that the Address preferred lifetime expired that number of seconds ago.

The following are special values:

Address preferred lifetime expiration date. The date when this address will no longer be preferred. If the Address preferred lifetime expiration date and time are in the future, the address is still preferred. If the Address preferred lifetime expiration date and time are in the past, then this address is no longer preferred. The Address preferred lifetime expiration date is returned as 8 characters in the form YYYYMMDD.

The meaning of the characters is as follows:

The following are special values:

Address preferred lifetime expiration time. The time when this address will no longer be in the preferred state. If the Address preferred lifetime expiration date and time are in the future, the address is still preferred. If the Address preferred lifetime expiration date and time are in the past, then this address is no longer preferred. The Address preferred lifetime expiration time is returned as 6 characters in the form HHMMSS.

The meaning of the characters is as follows:

The following are special values:

Address type. The type of IPv6 address that is assigned to this network interface.

Possible values are:

Address valid lifetime. The length of time, in seconds, that an address remains in a "valid" state (Preferred or Deprecated). When the valid lifetime expires, the address becomes Expired. Valid values range from 0 through 4294967295 seconds. Negative values indicate that the Address valid lifetime expired that number of seconds ago.

The following are special values:

Address valid lifetime expiration date. The date when this address will expire or did expire. If the Address valid lifetime expiration date and time are in the future, the address has not expired yet. If the Address valid lifetime expiration date and time are in the past, then this address has expired and is still being returned for a short period of time to indicate that the interface ceased to function because its valid lifetime expired. The Address valid lifetime expiration date is returned as 8 characters in the form YYYYMMDD.

The meaning of the characters is as follows:

The following are special values:

Address valid lifetime expiration time. The time when this address will expire or did expire. If the Address valid lifetime expiration date and time are in the future, the address has not expired yet. If the Address valid lifetime expiration date and time are in the past, then this address has expired and is still being returned for a short period of time to indicate that the interface ceased to function because its valid lifetime expired. The Address valid lifetime expiration time is returned as 6 characters in the form HHMMSS.

The meaning of the characters is as follows:

The following are special values:

Alias name. Name given to interface to use as an alternate to the IP address.

Automatic start. Whether the interface is started automatically when the TCP/IPv6 stack is activated. Possible values are:

Bytes available. All of the available bytes for use in your application.

Bytes returned. The number of bytes returned to the user. This may be some but not all the bytes available.

Change date. The date of the most recent change to this interface in the dynamic tables used by the TCP/IPv6 protocol stack. It is returned as 8 characters in the form YYYYMMDD, where:

Change time. The time of the most recent change to this interface in the dynamic tables used by the TCP/IPv6 protocol stack. It is returned as 6 characters in the form HHMMSS, where:

Current proxy agent line. Name of the communication line description that is used with the IPv6 interface for virtual IP address (VIPA) proxy Neighbor Discovery. The following is a special value:

DHCP lease obtained. This field specifies the date and time when the DHCP lease was obtained or renewed. This is a system time-stamp.

DHCP lease obtained - date. This field specifies the date when the DHCP lease was obtained or renewed.

DHCP lease obtained - time. This field specifies the time when the DHCP lease was obtained or renewed.

DHCP server unique identifier. This field specifies the DHCP unique identifier (DUID) of the DHCP server from which the IP address was obtained.

DHCP server unique identifier length. The length of the server's DHCP unique DHCP identifier.

Duplicate address detection maximum transmits. Specifies the maximum number of Duplicate Address Detection (DAD) transmissions the stack will send out on the interface.

Host IPv6 address. Host portion of the Internet address, in IPv6 address format, as determined by the prefix length configured for this interface. This field is NULL padded.

Host IPv6 address binary. Binary representation of the host IPv6 address. Even though this field is defined as a character field, a binary IPv6 address is returned in it.

Interface description Configured free form comment field about this interface.

Interface line type. Type of line used by the interface. The following link protocols are supported:

Interface prefix length. The prefix length defines how many bits of the interface IPv6 address are in the prefix. It is a zoned decimal number which specifies how many of the left-most bits of the address make up the prefix. The prefix length is used to generate network and host addresses. This field is NULL padded.

Interface prefix length binary. Binary representation of the interface prefix length.

Interface source Specifies how this interface was added to the TCP/IPv6 stack.

Possible values are:

Interface status. Current status of this logical interface.

Internet IPv6 address. The Internet address, in IPv6 address format, of the interface. The following is a special value:

Internet IPv6 address binary. Binary representation of the Internet IPv6 address. Even though this field is defined as a character field, a binary IPv6 address is returned in it.

Length of one preferred physical line list entry. The length of a preferred physical line list entry.

Line name. Name of the communications line description that identifies the physical network associated with an interface. This field is blank-padded.

The following are special values:

MTU - configured. The configured maximum transmission unit (MTU) value specified for this interface.

The following is a special value:

MTU - current. Maximum transmission unit (MTU) value currently in effect for this interface.

The following is a special value:

Network IPv6 address. Internet address, in IPv6 address format, of the IPv6 network or subnetwork to which the interface is attached. This field is NULL padded.

Network IPv6 address binary. Binary representation of the network IPv6 address. Even though this field is defined as a character field, a binary IPv6 address is returned in it.

Number of entries in preferred physical line list. The number of entries in the preferred physical line list.

Offset to preferred physical line list. The offset from the start of the receiver variable to the beginning of the preferred physical line list.

On-link. Whether or not this interface and all IPv6 addresses with the same prefix are on the same link. Possible values are:

Packet rules. The kind of packet rules data available for the particular line this interface is associated with.

Preferred physical line name. Name of a communications line description in the preferred physical line list.

Start of changePreferred virtual LAN identifier. The virtual LAN that is associated with the preferred physical line name according to IEEE standard 802.1Q. This field is only valid for Ethernet lines.

The following are possible returned values:

Reserved. An ignored field.

Start of change Virtual LAN identifier. The virtual LAN to which this interface belongs according to IEEE standard 802.1Q. This field is only valid for interfaces defined for Ethernet lines.

The following are possible returned values:


Start of changeUsage Notes

  1. If NIFD0100 or NIFD0150 is specified as the format parameter; the NIFD0100 format is returned for both. Refer to NIFD0100 Format for details on the returned format.
  2. If NIFD0200 or NIFD0250 is specified as the format parameter; the NIFD0200 format is returned for both. Refer to NIFD0200 Format for details on the returned format.
  3. The NIFD0150 format is required to specify a line description name and virtual LAN identifier in order to retrieve details for an *IP4DHCP interface.
  4. The NIFD0250 format is required to specify a virtual LAN identifier.End of change


Error Messages




API introduced: V6R1