aboutsummaryrefslogtreecommitdiffstats
path: root/packet-q931.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-01-26 20:48:39 +0000
committerGuy Harris <guy@alum.mit.edu>2004-01-26 20:48:39 +0000
commit1f078d0fff1f2b2e0386ab25d172b75286474288 (patch)
treebdf502cf5a10bebe287c9a59fd4202d04e115e1d /packet-q931.c
parent3b1f5f17b36ed16cab82edf51b7b00a4f82dcfff (diff)
Add a dissector table for LAPD SAPIs, and move the #defines for them
into "lapd_sapi.h". Use that to register the Q.931 dissector atop LAPD. From Rolf Fiedler: ISDN TEI management frame support. svn path=/trunk/; revision=9864
Diffstat (limited to 'packet-q931.c')
-rw-r--r--packet-q931.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/packet-q931.c b/packet-q931.c
index de6da18189..66583f1d1e 100644
--- a/packet-q931.c
+++ b/packet-q931.c
@@ -2,7 +2,7 @@
* Routines for Q.931 frame disassembly
* Guy Harris <guy@alum.mit.edu>
*
- * $Id: packet-q931.c,v 1.65 2004/01/16 18:28:09 guy Exp $
+ * $Id: packet-q931.c,v 1.66 2004/01/26 20:48:38 guy Exp $
*
* Modified by Andreas Sikkema for possible use with H.323
*
@@ -38,6 +38,7 @@
#include "packet-q931.h"
#include "prefs.h"
+#include "lapd_sapi.h"
#include "packet-tpkt.h"
/* Q.931 references:
@@ -2935,6 +2936,11 @@ proto_register_q931(void)
void
proto_reg_handoff_q931(void)
{
+ dissector_handle_t q931_handle;
+
+ q931_handle = find_dissector("q931");
+ dissector_add("lapd.sapi", LAPD_SAPI_Q931, q931_handle);
+
/*
* Attempt to get a handle for the H.225 dissector.
* If we can't, the handle we get is null, and we'll just