aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ncp-int.h
diff options
context:
space:
mode:
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>2002-01-10 04:44:34 +0000
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>2002-01-10 04:44:34 +0000
commit920eb774859fd39571e469c6e506d6c75ba279fb (patch)
tree6d7240e50e195c75db9872b444c714926525e264 /packet-ncp-int.h
parent8bbfa3284acece7528d608d1c8758a735dfd1df9 (diff)
Allow NCP types to define bitfields. In order to implement
sub-trees, I added new functions to ptvcursor: ptvcursor_add_no_advance() ptvcursor_tvbuff() ptvcursor_current_offset() Note that no NCP type that actually uses bitfields has been checked in yet. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4509 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ncp-int.h')
-rw-r--r--packet-ncp-int.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/packet-ncp-int.h b/packet-ncp-int.h
index 57262d0734..4a4ba14a99 100644
--- a/packet-ncp-int.h
+++ b/packet-ncp-int.h
@@ -2,7 +2,7 @@
* Structures and functions for NetWare Core Protocol.
* Gilbert Ramirez <gram@alumni.rice.edu>
*
- * $Id: packet-ncp-int.h,v 1.5 2002/01/05 04:12:14 gram Exp $
+ * $Id: packet-ncp-int.h,v 1.6 2002/01/10 04:44:34 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -27,11 +27,20 @@
#ifndef __PACKET_NCP_INT_H__
#define __PACKET_NCP_INT_H__
-typedef struct {
- int *hf_ptr;
- gint length;
- gboolean endianness;
-} ptvc_record;
+typedef struct _ptvc_record ptvc_record;
+typedef struct _sub_ptvc_record sub_ptvc_record;
+
+struct _ptvc_record {
+ int *hf_ptr;
+ gint length;
+ gboolean endianness;
+ const sub_ptvc_record *sub_ptvc_rec;
+};
+
+struct _sub_ptvc_record {
+ gint *ett;
+ const ptvc_record *ptvc_rec;
+};
typedef struct {
guint8 error_in_packet;