#include #include main (int argc, char **argv) { char *names[]={ "INV_ETHER_EC 0 /* IP6 integral controller */", "INV_ETHER_ENP 1 /* CMC board */", "INV_ETHER_ET 2 /* IP5 integral controller */", "INV_HYPER_HY 3 /* HyperNet controller */", "INV_CRAYIOS_CFEI3 4 /* Cray Front End Interface, v3 */", "INV_FDDI_IMF 5 /* Interphase/Martin 3211 FDDI */", "INV_ETHER_EGL 6 /* Interphase V/4207 Eagle */", "INV_ETHER_FXP 7 /* CMC C/130 FXP */", "INV_FDDI_IPG 8 /* Interphase/SGI 4211 Peregrine FDDI */", "INV_TOKEN_FV 9 /* Formation fv1600 Token-Ring board */", "INV_FDDI_XPI 10 /* XPI GIO bus FDDI */", "INV_TOKEN_GTR 11 /* GTR GIO bus TokenRing */", "INV_ETHER_GIO 12 /* IP12/20 optional GIO ethernet controller */", "INV_ETHER_EE 13 /* Everest IO4 EPC SEEQ/EDLC */", "INV_HIO_HIPPI 14 /* HIO HIPPI for Challenge/Onyx */", "INV_ATM_GIO64 15 /* ATM OC-3c Mez card */", "INV_ETHER_EP 16 /* 8-port E-Plex Ethernet */", "INV_ISDN_SM 17 /* Siemens PEB 2085 */", "INV_TOKEN_MTR 18 /* EISA TokenRing */", "INV_ETHER_EF 19 /* reserved */", "INV_ISDN_48XP 20 /* Xircom PRI-48XP */" }; inventory_t *inv; do { inv = getinvent(); } while ( (inv!=NULL) && ( inv->inv_class != INV_NETWORK )); printf("%s\t%d\n",names[inv->inv_type], inv->inv_controller); }