Add HP Switch Protocol SAP value

svn path=/trunk/; revision=19812
This commit is contained in:
Jaap Keuter 2006-11-05 18:26:21 +00:00
parent a977f17295
commit 12f3d9fe37
3 changed files with 10 additions and 8 deletions

View File

@ -20,7 +20,7 @@
*
* 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.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifdef HAVE_CONFIG_H
@ -48,6 +48,7 @@ static gint ett_hpext = -1;
const value_string xsap_vals[] = {
{ HPEXT_DXSAP, "RBOOT Destination Service Access Point" },
{ HPEXT_SXSAP, "RBOOT Source Service Access Point" },
{ HPEXT_HPSW, "HP Switch Protocol" },
{ HPEXT_SNMP, "SNMP" },
{ 0x00, NULL }
};
@ -102,10 +103,10 @@ proto_register_hpext(void)
{ &hf_hpext_sxsap,
{ "SXSAP", "hpext.sxsap", FT_UINT16, BASE_HEX,
VALS(xsap_vals), 0x0, "", HFILL }},
VALS(xsap_vals), 0x0, "", HFILL }}
};
static gint *ett[] = {
&ett_hpext,
&ett_hpext
};
proto_hpext = proto_register_protocol(

View File

@ -20,9 +20,10 @@
*
* 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.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#define HPEXT_DXSAP 0x608
#define HPEXT_SXSAP 0x609
#define HPEXT_HPSW 0x623
#define HPEXT_SNMP 0x165A

View File

@ -20,7 +20,7 @@
*
* 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.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifdef HAVE_CONFIG_H
@ -257,12 +257,12 @@ proto_register_hpsw(void)
VALS(hpsw_tlv_type_vals), 0x0, "", HFILL }},
{ &hf_hpsw_tlvlength,
{ "Length", "hpsw.tlv_len", FT_UINT8, BASE_DEC,
NULL, 0x0, "", HFILL }},
NULL, 0x0, "", HFILL }}
};
static gint *ett[] = {
&ett_hpsw,
&ett_hpsw_tlv,
&ett_hpsw_tlv
};
proto_hpsw = proto_register_protocol( "HP Switch Protocol", "HPSW", "hpsw");
@ -279,5 +279,5 @@ proto_reg_handoff_hpsw(void)
hpsw_handle = find_dissector("hpsw");
dissector_add("hpext.dxsap", 0x0623, hpsw_handle);
dissector_add("hpext.dxsap", HPEXT_HPSW, hpsw_handle);
}