List Network Interfaces (QtocLstNetIfc) API

  Required Parameter Group:


  Service Program: QTOCNETSTS

  Threadsafe: Yes

The List Network Interfaces (QtocLstNetIfc) API returns a list of all logical TCP/IP interfaces with details. This API returns all IPv4 logical interfaces using one output format name, and all IPv6 logical interfaces using a different output format name.

As of V6R1, TCP/IP stack must not necessarily be active for this API to be called, so TCP84C0 will no longer be issued. This API can be used to retrieve the information stored in the TCP/IP configuration files.


Authorities and Locks

User Space Library Authority
*EXECUTE
User Space Authority
*CHANGE
User Space Lock
*SHRNUP

Required Parameter Group

Qualified user space name
INPUT; CHAR(20)

The user space that is to receive the created list. The first ten characters contain the user space name, and the second ten characters contain the name of the library in which the user space is located. You can use these special values for the library name:


Format name
INPUT; CHAR(8)

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


Error code
I/O; CHAR(*)

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



Format of Interface Lists

To request a list of all logical interfaces, use format NIFC0100.

The interface description list consists of:

For details about the user area and generic header, see User spaces. For details about the remaining items, see the following sections.

When you retrieve list entry information from a user space, you must use the entry size returned in the generic header. The size of each entry may be padded at the end. If you do not use the entry size, the result may not be valid. For examples of how to process lists, see Examples: APIs and exit programs.


Input Parameter Section



Header Section



Format of Returned Connection Data

To retrieve the list of TCP/IPv4 network interfaces, request format NIFC0100, and you will get a repeating list of NIFC0100 tables, each one returning information about a single IPv4 network interface. To retrieve the list of TCP/IPv6 network interfaces, request format NIFC0200, and you will get a repeating list of NIFC0200 tables, each one returning information about a single IPv6 network interface.


NIFC0100 Format

The following information about each TCP/IPv4 logical interface is returned for the NIFC0100 format. 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 NIFC0100 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.

Alias name CCSID. Coded character set ID for the alias name.

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:

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:

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.

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

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:

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 user space 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 Start of changeEthernetEnd of change 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:

Start of change 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:

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:



NIFC0200 Format

The following information about each TCP/IPv6 logical interface is returned for the NIFC0200 format. For detailed descriptions of the fields in the table, see Field Descriptions.



Format of Preferred Physical Interface List Entry

The preferred physical interface list entry describes the data returned for each entry in the preferred physical interface list of the NIFC0200 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. See the Address State field description for more information. 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 state. The current state of this IPv6 address. This field is no longer available and will always be set to 4.

Possible value is:

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. See the Address State field description for more information. 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.

Alias name CCSID. Coded character set ID for the alias name.

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

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:

Start of change Current proxy agent line virtual LAN identifier. The virtual LAN to which the proxy agent line belongs according to IEEE standard 802.1Q.

The following are possible returned values:

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.

Duplicate address detection transmits. Specifies the number of Duplicate Address Detection (DAD) transmissions the stack has sent out on this interface.

Note: As of V5R4, this data is no longer available and is always set to 0.

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 description CCSID. Coded character set ID for the interface description field.

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 interface list entry. The length of a preferred physical interface 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:

Multicast - number of references. The number of Sockets clients that have joined this multicast group.

The following is a special value:

Note: As of V5R4, this data is no longer available and is always set to 0.

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 interface list. The number of entries in the preferred physical interface list.

Offset to preferred physical interface list. The offset from the start of the user space to the beginning of the preferred physical interface 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 interface name. Name of a communications line description in the preferred physical interface list.

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:


Error Messages




API introduced: V5R1