/* packet-wbxml.h * Routines for wbxml dissection * Copyright 2003, Olivier Biot * * $Id: packet-wbxml.h,v 1.1 2003/02/06 01:23:32 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs * * Wap Binary XML decoding functionality provided by Olivier Biot. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef PACKET_WBXML_H #define PACKET_WBXML_H /* See http://www.wapforum.org/wina/ for an up-to-date list. */ #define WBXML_WML_10 0x02 #define WBXML_WTA_10 0x03 #define WBXML_WML_11 0x04 #define WBXML_SI_10 0x05 #define WBXML_SL_10 0x06 #define WBXML_CO_10 0x07 #define WBXML_CHANNEL_10 0x08 #define WBXML_WML_12 0x09 #define WBXML_WML_13 0x0a #define WBXML_PROV_10 0x0b #define WBXML_WTAWML_12 0x0c #define WBXML_EMN_10 0x0d #define WBXML_DRMREL_10 0x0e static const value_string vals_wbxml_public_ids[] = { /* 0x00 = literal public identifier */ { 0x01, "Unknown / missing Public Identifier" }, { 0x02, "-//WAPFORUM//DTD WML 1.0//EN (WML 1.0)" }, { 0x03, "-//WAPFORUM//DTD WTA 1.0//EN (WTA Event 1.0) - Deprecated" }, { 0x04, "-//WAPFORUM//DTD WML 1.1//EN (WML 1.1)" }, { 0x05, "-//WAPFORUM//DTD SI 1.0//EN (Service Indication 1.0)" }, { 0x06, "-//WAPFORUM//DTD SL 1.0//EN (Service Loading 1.0)" }, { 0x07, "-//WAPFORUM//DTD CO 1.0//EN (Cache Operation 1.0)" }, { 0x08, "-//WAPFORUM//DTD CHANNEL 1.0//EN (Channel 1.1)" }, { 0x09, "-//WAPFORUM//DTD WML 1.2//EN (WML 1.2)" }, { 0x0a, "-//WAPFORUM//DTD WML 1.3//EN (WML 1.3)" }, { 0x0b, "-//WAPFORUM//DTD PROV 1.0//EN (Provisioning 1.0)" }, { 0x0c, "-//WAPFORUM//DTD WTA-WML 1.2//EN (WTA-WML 1.2)" }, { 0x0d, "-//WAPFORUM//DTD EMN 1.0//EN (Email Notification 1.0)" }, { 0x0e, "-//WAPFORUM//DTD DRMREL 1.0//EN (DRMREL 1.0)" }, { 0x00, NULL } }; static const value_string vals_wbxml_versions[] = { { 0x00, "1.0" }, { 0x01, "1.1" }, { 0x02, "1.2" }, { 0x03, "1.3" }, { 0x00, NULL } }; /* See WAP-104-WBXML */ static const value_string vals_wbxml10_global_tokens[] = { { 0x00, "SWITCH_PAGE" }, { 0x01, "END" }, { 0x02, "ENTITY" }, { 0x03, "STR_I" }, { 0x04, "LITERAL" }, { 0x40, "EXT_I_0" }, { 0x41, "EXT_I_1" }, { 0x42, "EXT_I_2" }, { 0x43, "PI" }, { 0x44, "LITERAL_C" }, { 0x80, "EXT_T_0" }, { 0x81, "EXT_T_1" }, { 0x82, "EXT_T_2" }, { 0x83, "STR_T" }, { 0x84, "LITERAL_A" }, { 0xC0, "EXT_0" }, { 0xC1, "EXT_1" }, { 0xC2, "EXT_2" }, { 0xC3, "RESERVED_2" }, { 0xC4, "LITERAL_AC" }, { 0x00, NULL } }; /* See WAP-135-WBXML, WAP-154-WBXML, WAP-192-WBXML */ static const value_string vals_wbxml1x_global_tokens[] = { { 0x00, "SWITCH_PAGE" }, { 0x01, "END" }, { 0x02, "ENTITY" }, { 0x03, "STR_I" }, { 0x04, "LITERAL" }, { 0x40, "EXT_I_0" }, { 0x41, "EXT_I_1" }, { 0x42, "EXT_I_2" }, { 0x43, "PI" }, { 0x44, "LITERAL_C" }, { 0x80, "EXT_T_0" }, { 0x81, "EXT_T_1" }, { 0x82, "EXT_T_2" }, { 0x83, "STR_T" }, { 0x84, "LITERAL_A" }, { 0xC0, "EXT_0" }, { 0xC1, "EXT_1" }, { 0xC2, "EXT_2" }, { 0xC3, "OPAQUE" }, { 0xC4, "LITERAL_AC" }, { 0x00, NULL } }; static const value_string vals_wmlc11_tags[] = { { 0x1C, "a" }, { 0x1D, "td" }, { 0x1E, "tr" }, { 0x1F, "table" }, { 0x20, "p" }, { 0x21, "postfield" }, { 0x22, "anchor" }, { 0x23, "access" }, { 0x24, "b" }, { 0x25, "big" }, { 0x26, "br" }, { 0x27, "card" }, { 0x28, "do" }, { 0x29, "em" }, { 0x2A, "fieldset" }, { 0x2B, "go" }, { 0x2C, "head" }, { 0x2D, "i" }, { 0x2E, "img" }, { 0x2F, "input" }, { 0x30, "meta" }, { 0x31, "noop" }, { 0x32, "prev" }, { 0x33, "onevent" }, { 0x34, "optgroup" }, { 0x35, "option" }, { 0x36, "refresh" }, { 0x37, "select" }, { 0x38, "small" }, { 0x39, "strong" }, { 0x3A, "" }, { 0x3B, "template" }, { 0x3C, "timer" }, { 0x3D, "u" }, { 0x3E, "setvar" }, { 0x3F, "wml" }, { 0x00, NULL } }; #endif