From Mark C. Brown: add the HP-PB FDDI card type, although we currently

don't have any code to handle it (other than to report that fact...).

Also, refer to the subsystem type code as such, not as a "network type".

svn path=/trunk/; revision=12178
This commit is contained in:
Guy Harris 2004-10-01 22:01:25 +00:00
parent 6aad0b0543
commit d525c0129e
2 changed files with 10 additions and 1 deletions

View File

@ -509,9 +509,17 @@ nettl_read_rec_header(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr,
pseudo_header->x25.flags =
(lapb_hdr.from_dce & 0x20 ? FROM_DCE : 0x00);
break;
case NETTL_SUBSYS_HPPB_FDDI :
/* HP-PB FDDI has a different trace records for inbound vs outbound
Still need to work out a way 'round that...
*/
*err = WTAP_ERR_UNSUPPORTED_ENCAP;
*err_info = g_strdup_printf("nettl: HP-PB FDDI [Subsystem %u] currently unsupported",
encap[3]);
return -1;
default:
*err = WTAP_ERR_UNSUPPORTED_ENCAP;
*err_info = g_strdup_printf("nettl: network type %u unknown or unsupported",
*err_info = g_strdup_printf("nettl: subsystem %u unknown or unsupported",
encap[3]);
return -1;
}

View File

@ -87,6 +87,7 @@
#define NETTL_SUBSYS_IETHER 253
/* FDDI cards */
#define NETTL_SUBSYS_HPPB_FDDI 95
#define NETTL_SUBSYS_PCI_FDDI 176
/* Token Ring cards */