proto_tree *ipmi_tree = NULL, *field_tree = NULL;
proto_item *ti = NULL, *tf;
gint offset = 0;
- gint auth_offset = 0;
/* tvbuff_t *next_tvb; */ /* modified by lane */
guint32 session_id;
/*payloadtype for RMCPP*/
- guint8 authtype, payloadtype = 0, netfn, cmd, ccode, len, response;
+ guint8 authtype, payloadtype = 0, netfn, cmd, ccode, len, response, auth_offset = 0;
gboolean payloadtype_auth, payloadtype_enc = 0;
/* session authtype, 0=no authcode present */
case OSPF_HELLO:
dissect_ospf_hello(tvb, ospf_header_length, ospf_tree, version,
- ospflen - ospf_header_length);
+ (guint16)(ospflen - ospf_header_length));
break;
case OSPF_DB_DESC:
- dissect_ospf_db_desc(tvb, ospf_header_length, ospf_tree, version,
- ospflen - ospf_header_length);
+ dissect_ospf_db_desc(tvb, (int)ospf_header_length, ospf_tree, version,
+ (guint16)(ospflen - ospf_header_length));
break;
case OSPF_LS_REQ:
- dissect_ospf_ls_req(tvb, ospf_header_length, ospf_tree, version,
- ospflen - ospf_header_length);
+ dissect_ospf_ls_req(tvb, (int)ospf_header_length, ospf_tree, version,
+ (guint16)(ospflen - ospf_header_length));
break;
case OSPF_LS_UPD:
- dissect_ospf_ls_upd(tvb, ospf_header_length, ospf_tree, version,
- ospflen - ospf_header_length);
+ dissect_ospf_ls_upd(tvb, (int)ospf_header_length, ospf_tree, version,
+ (guint16)(ospflen - ospf_header_length));
break;
case OSPF_LS_ACK:
- dissect_ospf_ls_ack(tvb, ospf_header_length, ospf_tree, version,
- ospflen - ospf_header_length);
+ dissect_ospf_ls_ack(tvb, (int)ospf_header_length, ospf_tree, version,
+ (guint16)(ospflen - ospf_header_length));
break;
default:
* need to track it
*/
if(!pinfo->fd->flags.visited && si->cmd==0x75 && !si->request){
- offset=dissect_smb_tid(tvb, pinfo, htree, offset, si->tid, TRUE, FALSE);
+ offset=dissect_smb_tid(tvb, pinfo, htree, offset, (guint16)si->tid, TRUE, FALSE);
} else {
- offset=dissect_smb_tid(tvb, pinfo, htree, offset, si->tid, FALSE, FALSE);
+ offset=dissect_smb_tid(tvb, pinfo, htree, offset, (guint16)si->tid, FALSE, FALSE);
}
/* PID */