Structure for nicinfo queries
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;
};
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:
- NIC_FLAG_PIO -- NIC uses PIO Transfers.
- NIC_FLAG_DMA -- NIC uses DMA (8237) Transfers.
- NIC_FLAG_BMSTR -- NIC uses Busmaster Transfers.
- NIC_FLAG_MMAP -- NIC uses Memory Mapped Transfers.
- NIC_FLAG_FDX -- NIC supports full duplex operation.
- NIC_FLAG_BNC -- NIC is using BNC.
- NIC_FLAG_AUI -- NIC is using AUI.
- NIC_FLAG_UTP -- NIC is using UTP.
- NIC_FLAG_FIBRE -- NIC is using FIBRE.
- NIC_FLAG_MULTICAST -- NIC accepts multicast.
- NIC_FLAG_PROMISCUOUS -- NIC accepts all frames.
- NIC_FLAG_BROADCAST -- NIC accepts broadcast frames.
- 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:
- NIC_MEDIA_802_3 -- Ethernet
- NIC_MEDIA_802_5 -- token ring
- NIC_MEDIA_FDDI
- NIC_MEDIA_ATM
- NIC_MEDIA_ARCNET
- NIC_MEDIA_CUSTOM
- 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:
- PHY_NOT_INSTALLED
- PHY_INTEL_82553AB -- PHY 100, A or B step.
- PHY_INTEL_82553C -- PHY 100, C step.
- PHY_INTEL_82503 -- 10Mbps.
- PHY_NS_83840 -- 100BASE-TX, C step.
- PHY_SEEQ_80C240 -- 100BASE-T4.
- PHY_SEEQ_80C24 -- 10Mbps.
- PHY_NS_DP83840A
- 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.
QNX
CustNicStats_t,
EthernetStats_t,
GenStats_t,
NetStats_t