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
This commit is contained in:
Guy Harris 2003-07-08 18:10:39 +00:00
parent b1dd70cb3e
commit 259609e677
2 changed files with 23 additions and 21 deletions

View File

@ -2,7 +2,7 @@
*
* Routines to dissect WSP component of WAP traffic.
*
* $Id: packet-wsp.c,v 1.70 2003/06/30 23:24:39 guy Exp $
* $Id: packet-wsp.c,v 1.71 2003/07/08 18:10:39 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -339,6 +339,24 @@ static const value_string vals_status[] = {
{ 0x00, NULL }
};
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" },
};
/*
* Field names.
*/

View File

@ -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