diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-07-08 18:10:39 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-07-08 18:10:39 +0000 |
commit | 259609e6778a748494f1719c4588d6899319bfa7 (patch) | |
tree | 6c8fa4275fe94e4fa9c8ef6be5d932ccad3ec526 /packet-wsp.h | |
parent | b1dd70cb3eda3b6dcda64df24032d318efaa58e6 (diff) |
Don't define "vals_wsp_reason_codes[]" in "packet-wsp.h", define it in
"packet-wsp.c", and just *declare* it in "packet-wsp.h" - no need to
have everybody who includes "packet-wsp.h" get their own copy
(especially as they might not use it).
svn path=/trunk/; revision=7993
Diffstat (limited to 'packet-wsp.h')
-rw-r--r-- | packet-wsp.h | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/packet-wsp.h b/packet-wsp.h index d4b0f73e55..3874059dce 100644 --- a/packet-wsp.h +++ b/packet-wsp.h @@ -2,10 +2,10 @@ * * Declarations for disassembly of WSP component of WAP traffic. * - * $Id: packet-wsp.h,v 1.6 2002/08/28 21:00:37 jmayer Exp $ + * $Id: packet-wsp.h,v 1.7 2003/07/08 18:10:39 guy Exp $ * * Ethereal - Network traffic analyzer - * By Gerald Combs <gerald@zing.org> + * By Gerald Combs <gerald@ethereal.com> * Copyright 1998 Gerald Combs * * WAP dissector based on original work by Ben Fowler @@ -41,25 +41,9 @@ * Remaining PDUs */ -/* These reason codes are also used in the WTP dissector as the WTP user is +/* These reason codes are used in the WTP dissector as the WTP user is * assumed to be WSP */ -static const value_string vals_wsp_reason_codes[] = { - { 0xE0, "Protocol Error (Illegal PDU)" }, - { 0xE1, "Session disconnected" }, - { 0xE2, "Session suspended" }, - { 0xE3, "Session resumed" }, - { 0xE4, "Peer congested" }, - { 0xE5, "Session connect failed" }, - { 0xE6, "Maximum receive unit size exceeded" }, - { 0xE7, "Maximum outstanding requests exceeded" }, - { 0xE8, "Peer request" }, - { 0xE9, "Network error" }, - { 0xEA, "User request" }, - { 0xEB, "No specific cause, no retries" }, - { 0xEC, "Push message cannot be delivered" }, - { 0xED, "Push message discarded" }, - { 0xEE, "Content type cannot be processed" }, -}; +extern const value_string vals_wsp_reason_codes[]; /* * exported functionality |