From David Moreau (bug 2621):

add support for MSDP protocol based on TFTP



svn path=/trunk/; revision=25500
This commit is contained in:
Sake Blok 2008-06-21 10:04:27 +00:00
parent 70ec244f8f
commit 058c5d0401
1 changed files with 8 additions and 0 deletions

View File

@ -81,6 +81,7 @@ static dissector_handle_t tftp_handle;
#define TFTP_ACK 4
#define TFTP_ERROR 5
#define TFTP_OACK 6
#define TFTP_INFO 255
static const value_string tftp_opcode_vals[] = {
{ TFTP_RRQ, "Read Request" },
@ -89,6 +90,7 @@ static const value_string tftp_opcode_vals[] = {
{ TFTP_ACK, "Acknowledgement" },
{ TFTP_ERROR, "Error Code" },
{ TFTP_OACK, "Option Acknowledgement" },
{ TFTP_INFO, "Information (MSDP)" },
{ 0, NULL }
};
@ -289,6 +291,12 @@ dissect_tftp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
opcode, tftp_info);
break;
case TFTP_INFO:
if (tree)
tftp_dissect_options(tvb, pinfo, offset, tftp_tree,
opcode, tftp_info);
break;
case TFTP_DATA:
blocknum = tvb_get_ntohs(tvb, offset);
if (tree) {