Project

General

Profile

Feature #389 ยป 0002-batadv-Parse-priority-field-of-fragmented-packets.patch

Sven Eckelmann, 06/09/2019 09:23 PM

View differences:

epan/dissectors/packet-batadv.c
static int hf_batadv_unicast_frag_orig = -1;
static int hf_batadv_unicast_frag_seqno = -1;
static int hf_batadv_unicast_frag_no = -1;
static int hf_batadv_unicast_frag_priority = -1;
static int hf_batadv_unicast_frag_total_size = -1;
static int hf_batadv_unicast_tvlv_version = -1;
......
unicast_frag_packeth->no = tvb_get_guint8(tvb, offset);
proto_tree_add_item(batadv_unicast_frag_tree, hf_batadv_unicast_frag_no,
tvb, offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(batadv_unicast_frag_tree,
hf_batadv_unicast_frag_priority,
tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
set_address_tvb(&unicast_frag_packeth->dest, AT_ETHER, 6, tvb, offset);
......
FT_UINT8, BASE_DEC, NULL, 0xF0,
NULL, HFILL }
},
{ &hf_batadv_unicast_frag_priority,
{ "Priority", "batadv.unicast_frag.priority",
FT_UINT8, BASE_DEC, NULL, 0xE,
NULL, HFILL }
},
{ &hf_batadv_unicast_frag_total_size,
{ "Complete Size", "batadv.unicast_frag.total_size",
FT_UINT16, BASE_DEC, NULL, 0x0,
    (1-1/1)