aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ber.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-05-14 23:38:39 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-05-14 23:38:39 +0000
commit0f9577e5b1be936928bc49f0c2992e79e3b365e6 (patch)
tree197727405fa8c120c20e82a73b8287f5f231afcd /packet-ber.h
parent9bd912b22b29e6c2d079600d6cf4048b437555ea (diff)
More updates to packetcable kerberos
in particular, packetcable use a slightly diufferent KDC-REQ-BODY where the field till[5] is optional. Make it optional in the dissector as well since ethereal will still be able to dissecto normal kerberos pdus where it is not optional svn path=/trunk/; revision=10899
Diffstat (limited to 'packet-ber.h')
-rw-r--r--packet-ber.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/packet-ber.h b/packet-ber.h
index f6e5ada548..f50a6623d5 100644
--- a/packet-ber.h
+++ b/packet-ber.h
@@ -2,7 +2,7 @@
* Helpers for ASN.1/BER dissection
* Ronnie Sahlberg (C) 2004
*
- * $Id: packet-ber.h,v 1.5 2004/03/26 00:21:53 guy Exp $
+ * $Id: packet-ber.h,v 1.6 2004/05/14 23:38:39 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -26,6 +26,14 @@
#ifndef __PACKET_BER_H__
#define __PACKET_BER_H__
+#define NOT_DECODED_YET(x) \
+proto_tree_add_text(tree, tvb, offset, 0, "something unknown here [%s]",x); \
+fprintf(stderr,"Not decoded yet in packet : %d [%s]\n", pinfo->fd->num,x); \
+if (check_col(pinfo->cinfo, COL_INFO)){ \
+ col_append_fstr(pinfo->cinfo, COL_INFO, "[UNKNOWN BER: %s]", x); \
+} \
+tvb_get_guint8(tvb, 9999);
+
typedef int (*ber_callback)(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset);
#define BER_CLASS_UNI 0