Add TLV 16 (Interface name)

svn path=/trunk/; revision=53881
This commit is contained in:
Jörg Mayer 2013-12-09 11:54:05 +00:00
parent a2b2dd4b28
commit 3be739ac8b
1 changed files with 7 additions and 1 deletions

View File

@ -63,6 +63,7 @@ static int hf_mndp_platform = -1;
static int hf_mndp_board = -1;
static int hf_mndp_unpack = -1;
static int hf_mndp_ipv6address = -1;
static int hf_mndp_interfacename = -1;
#define PROTO_SHORT_NAME "MNDP"
#define PROTO_LONG_NAME "Mikrotik Neighbor Discovery Protocol"
@ -129,12 +130,13 @@ static const ext_value_string mndp_body_tlv_vals[] = {
{ 12, "Board", &hf_mndp_board, NULL, NULL },
{ 14, "Unpack", &hf_mndp_unpack, NULL, NULL },
{ 15, "IPv6-Address", &hf_mndp_ipv6address, NULL, NULL },
{ 16, "Interface name", &hf_mndp_interfacename, NULL, NULL },
{ 0, NULL, NULL, NULL, NULL }
};
static const value_string mndp_unpack_vals[] = {
/* none|simple|uncompressed-headers|uncompressed-all */
/* none|simple|uncompressed-headers|uncompressed-all */
{ 1, "None" },
{ 0, NULL }
@ -343,6 +345,10 @@ proto_register_mndp(void)
{ "IPv6-Address", "mndp.ipv6address", FT_IPv6, BASE_NONE, NULL,
0x0, NULL, HFILL }},
{ &hf_mndp_interfacename,
{ "Interface name", "mndp.interfacename", FT_STRING, BASE_NONE, NULL,
0x0, NULL, HFILL }},
};
static gint *ett[] = {
&ett_mndp,