mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
Merge branch 'kfinisterre/WiresharkPlugin' into next
This commit is contained in:
commit
6adfa0a292
@ -81,7 +81,7 @@ LIBS =
|
||||
# a plugin.c file for a plugin.
|
||||
# All subsequent arguments are the files to scan.
|
||||
#
|
||||
plugin.c: $(DISSECTOR_SRC) Makefile.common $(top_srcdir)/tools/make-dissector-reg \
|
||||
plugin.c: $(DISSECTOR_SRC) Makefile.common \
|
||||
$(top_srcdir)/tools/make-dissector-reg.py
|
||||
@if test -n "$(PYTHON)"; then \
|
||||
echo Making plugin.c with python ; \
|
||||
|
@ -49,7 +49,7 @@ $(ENUMFIELDNAMES)
|
||||
|
||||
void proto_reg_handoff_op_uavobjects_$(NAMELC)(void);
|
||||
|
||||
static int dissect_uavo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
||||
static int dissect_uavo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
|
||||
{
|
||||
int offset = 0;
|
||||
|
||||
@ -108,5 +108,5 @@ void proto_reg_handoff_op_uavobjects_$(NAMELC)(void)
|
||||
uavo_handle = new_create_dissector_handle(dissect_uavo, proto_uavo);
|
||||
|
||||
/* Bind this protocol to its UAV ObjID in UAVTalk */
|
||||
dissector_add("uavtalk.objid", $(OBJIDHEX), uavo_handle);
|
||||
dissector_add_uint("uavtalk.objid", $(OBJIDHEX), uavo_handle);
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ LIBS =
|
||||
# a plugin.c file for a plugin.
|
||||
# All subsequent arguments are the files to scan.
|
||||
#
|
||||
plugin.c: $(DISSECTOR_SRC) Makefile.common $(top_srcdir)/tools/make-dissector-reg \
|
||||
plugin.c: $(DISSECTOR_SRC) Makefile.common \
|
||||
$(top_srcdir)/tools/make-dissector-reg.py
|
||||
@if test -n "$(PYTHON)"; then \
|
||||
echo Making plugin.c with python ; \
|
||||
|
@ -66,7 +66,7 @@ void proto_reg_handoff_op_uavtalk(void);
|
||||
|
||||
#define UAVTALK_HEADER_SIZE 8
|
||||
#define UAVTALK_TRAILER_SIZE 1
|
||||
static int dissect_op_uavtalk(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
||||
static int dissect_op_uavtalk(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
|
||||
{
|
||||
gint offset = 0;
|
||||
|
||||
|
@ -233,7 +233,7 @@ bool UAVObjectGeneratorWireshark::process_object(ObjectInfo *info, QDir outputpa
|
||||
} else if (info->fields[n]->type == FIELDTYPE_FLOAT32) {
|
||||
headerfields.append(QString("\t BASE_NONE, NULL, 0x0, NULL, HFILL \r\n"));
|
||||
} else {
|
||||
headerfields.append(QString("\t BASE_DEC_HEX, NULL, 0x0, NULL, HFILL\r\n"));
|
||||
headerfields.append(QString("\t BASE_DEC, NULL, 0x0, NULL, HFILL\r\n"));
|
||||
}
|
||||
headerfields.append(QString("\t },\r\n"));
|
||||
headerfields.append(QString("\t },\r\n"));
|
||||
@ -268,7 +268,7 @@ bool UAVObjectGeneratorWireshark::process_object(ObjectInfo *info, QDir outputpa
|
||||
} else if (info->fields[n]->type == FIELDTYPE_FLOAT32) {
|
||||
headerfields.append(QString("\t BASE_NONE, NULL, 0x0, NULL, HFILL \r\n"));
|
||||
} else {
|
||||
headerfields.append(QString("\t BASE_DEC_HEX, NULL, 0x0, NULL, HFILL\r\n"));
|
||||
headerfields.append(QString("\t BASE_DEC, NULL, 0x0, NULL, HFILL\r\n"));
|
||||
}
|
||||
headerfields.append(QString("\t },\r\n"));
|
||||
headerfields.append(QString("\t },\r\n"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user