qc_find_ati_netft_sensors qc_get_parameter navigation bar

Table of Contents

qc_get_network_interfaces

Gets a list of network interfaces available.

Syntax

interfaces = qc_get_network_interfaces(family) % restrict the list to the given address family
interfaces = qc_get_network_interfaces         % do not restrict the list
    

Description

Returns a list of the network interfaces available as a structure array containing information about each interface, such as its IP address and interface index.

The family argument may be used to restrict the list to a particular address family. Valid values for the family argument are:

Values

Description

'both' or 'af_unspec'

Return both IPv4 and IPv6 interfaces.

'ipv4' or 'af_inet'

Return only IPv4 interfaces.

'ipv6' or 'af_inet6'

Return only IPv6 interfaces.

Parameters

family

A string indicating the address family to which to restrict the list.

Outputs

interfaces

A structure array containing information about each of the network interfaces.

Examples

interfaces = qc_get_network_interfaces('ipv4');  % Returns information about IPv4 interfaces.
    

 

navigation bar