Use explicit casts.
svn path=/trunk/; revision=48334
#define ORG_SPEC_TLV 0x1F
#define TEST_TLV 0x20
+void proto_register_cfm(void);
+void proto_reg_handoff_cfm(void);
+
static int proto_cfm = -1;
static const value_string opcodetypenames[] = {
}
/* Format the Info String */
- src_str = (const char*)ip_to_str(pinfo->src.data);
+ src_str = (const char*)ip_to_str((const guint8 *)pinfo->src.data);
if ( !g_ascii_strcasecmp(global_host_ip, src_str) ) {
src_str = "Host";
} else if ( !g_ascii_strcasecmp(global_ig_ip, src_str) ) {
src_str = "IG";
}
- dest_str = (const char*)ip_to_str(pinfo->dst.data);
+ dest_str = (const char*)ip_to_str((const guint8 *)pinfo->dst.data);
if ( !g_ascii_strcasecmp(global_host_ip, dest_str) ) {
dest_str = "Host";
} else if ( !g_ascii_strcasecmp(global_ig_ip, dest_str) ) {
{0, NULL}
};
+void proto_register_cnip(void);
void proto_reg_handoff_cnip(void);
static gint hf_cnip_len = -1;
#define TYPE_SIGN_SHA256 0x0200
#define TYPE_ENCR_AES256 0x0210
+void proto_register_collectd(void);
+
typedef struct value_data_s {
gchar *host;
gint host_off;
const tap_data_t *td;
string_counter_t *sc;
- td = user_data;
+ td = (const tap_data_t *)user_data;
if (td == NULL)
return (-1);
return (0);
}
- entry = ep_alloc0 (sizeof (*entry));
+ entry = (string_counter_t *)ep_alloc0 (sizeof (*entry));
entry->string = ep_strdup (new_value);
entry->count = 1;
entry->next = *ret_list;
#define CSPT_REPORT
+void proto_register_componentstatus(void);
+void proto_reg_handoff_componentstatus(void);
/* Initialize the protocol and registered fields */
static int proto_componentstatusprotocol = -1;
#include <epan/packet.h>
#include <epan/ipproto.h>
-void proto_register_chpa(void);
-void proto_reg_handoff_chpa(void);
+void proto_register_cpha(void);
+void proto_reg_handoff_cpha(void);
static int proto_cphap = -1;