Ethereal-dev: [Ethereal-dev] nettl (HP-UX) patch - HP-PB FDDI

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Mark C. Brown" <mbrown@xxxxxxxxxx>
Date: Fri, 01 Oct 2004 17:04:47 -0400
Greetings,

Small patch to acknowledge that nettl.c does not currently
support th HP-PB FDDI card.  The driver has a different
trace record format for inbound vs outbound frames.

Gotta work on that...

-- 
"If a train station is where a train stops, | Mark C. Brown
 then what's a workstation?" -- D. Huber    | mbrown@xxxxxxxxxx
Index: nettl.c
===================================================================
--- nettl.c	(revision 12177)
+++ nettl.c	(working copy)
@@ -509,6 +509,14 @@
 	    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",
Index: nettl.h
===================================================================
--- nettl.h	(revision 12177)
+++ nettl.h	(working copy)
@@ -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 */