[Previous] [Contents] [Index] [Next]

Nic_t

Structure for nicinfo queries

Synopsis:

typedef uchar_t     mac_addr_t[8];
typedef struct _nic Nic_t;
typedef void        Nic_Ext_t;

struct _nic {
    Nic_Ext_t       *ext
    uint_t          flags;
    uint_t          filter;
    uint_t          astate;
    uint_t          media;
    uint_t          media_rate;
    uint_t          mtu;
    uint_t          lan;
    uint_t          node;
    Config_Info_t   cfg;
    uint_t          phy;
    uint_t          rsvd[32];
    uint_t          mac_length;
    mac_addr_t      permanent_address;
    mac_addr_t      current_address;
    NetStats_t      nstats;
};

Description:

The Nic_t structure is the main structure used to store nicinfo information. The members include:

ext
A pointer to adapter-specific information.
flags
A combination of the following:
filter
Not currently used.
astate
The adapter state.
media
The type of media, which indicates which member of the union in NetStats_t to use:
media_rate
The media rate, in Kbits/second. For example, 10Mbit/second is represented by a media_rate of 10,000.
mtu
The maximum transfer unit.
lan
The LAN number?
node
The physical node ID.
cfg
Configuration information for the device.
phy
The physical layer device -- one of:
mac_length
The length of the MAC address, in bytes.
permanent_address
The MAC address read from the hardware.
current_address;
The permanent MAC address or the address specified on the command line.
nstats
The network statistics; see NetStats_t.

Classification:

QNX

See also:

CustNicStats_t, EthernetStats_t, GenStats_t, NetStats_t


[Previous] [Contents] [Index] [Next]