*
* $Id$
*
- * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
/*
* This file contains helper routines that are used by the DCERPC over SMB
- * dissectors for ethereal.
+ * dissectors for wireshark.
*/
/*
* as used in dcerpc but it has shown VERY useful to also use it for tracking
* GUIDs such as for the file ids in smb2.
*/
-#define HND_TYPE_CTX_HANDLE 0
-#define HND_TYPE_GUID 1
+typedef enum {
+ HND_TYPE_CTX_HANDLE,
+ HND_TYPE_GUID
+} e_hnd_type;
+
static int
dissect_nt_hnd(tvbuff_t *tvb, gint offset, packet_info *pinfo,
proto_tree *tree, guint8 *drep, int hfindex,
e_ctx_hnd *pdata, proto_item **pitem,
- gboolean is_open, gboolean is_close, int type)
+ gboolean is_open, gboolean is_close, e_hnd_type type)
{
proto_item *item=NULL;
proto_tree *subtree;
hnd.attributes=0;
offset=dissect_ndr_uuid_t(tvb, offset, pinfo, subtree, drep, hfindex, &hnd.uuid);
break;
+ default:
+ DISSECTOR_ASSERT_NOT_REACHED();
+ return offset;
}
/*
{ "Unknown char", "nt.unknown.char",
FT_UINT8, BASE_HEX, NULL, 0x0,
"Unknown char. If you know what this is, contact "
- "ethereal developers.", HFILL }},
+ "wireshark developers.", HFILL }},
/* Misc */