diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2014-12-02 22:18:55 +0100 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-12-02 21:24:25 +0000 |
commit | 43e759ef8b20ec88f8056f0962a62d12af38925e (patch) | |
tree | fb8ddc7fe308b797c07fc6f5ccc01b033858d6da /epan/dissectors/packet-l2tp.c | |
parent | 5abfc6028d849a7e4f4dded0922c572e874cbb83 (diff) |
L2TP: add dissection of H bits
As requested in https://ask.wireshark.org/questions/38280/l2tp-dmpt-header-h-bit
Change-Id: If6cb61c720505e547432e87faf2a36bb4ec6e7c5
Reviewed-on: https://code.wireshark.org/review/5574
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-l2tp.c')
-rw-r--r-- | epan/dissectors/packet-l2tp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/dissectors/packet-l2tp.c b/epan/dissectors/packet-l2tp.c index 97604e07b4..f3a4f40c1d 100644 --- a/epan/dissectors/packet-l2tp.c +++ b/epan/dissectors/packet-l2tp.c @@ -102,6 +102,7 @@ static int hf_l2tp_l2_spec_atm = -1; static int hf_l2tp_l2_spec_docsis_dmpt = -1; static int hf_l2tp_l2_spec_v = -1; static int hf_l2tp_l2_spec_s = -1; +static int hf_l2tp_l2_spec_h = -1; static int hf_l2tp_l2_spec_flow_id = -1; static int hf_l2tp_l2_spec_sequence = -1; static int hf_l2tp_l2_spec_t = -1; @@ -2120,6 +2121,9 @@ process_l2tpv3_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree_add_item(l2_specific, hf_l2tp_l2_spec_s, tvb, idx + cookie_len,1, ENC_BIG_ENDIAN); + proto_tree_add_item(l2_specific, hf_l2tp_l2_spec_h, tvb, + idx + cookie_len,1, ENC_BIG_ENDIAN); + proto_tree_add_item(l2_specific, hf_l2tp_l2_spec_flow_id, tvb, idx + cookie_len,1, ENC_BIG_ENDIAN); @@ -2844,6 +2848,10 @@ proto_register_l2tp(void) { "S-bit","l2tp.l2_spec_s", FT_BOOLEAN, 8, NULL, 0x40, "Sequence Bit", HFILL }}, + { &hf_l2tp_l2_spec_h, + { "H-bits","l2tp.l2_spec_h", FT_UINT8, BASE_HEX, NULL, 0x30, + "Extended Header Bits", HFILL }}, + { &hf_l2tp_l2_spec_t, { "T-bit","l2tp.l2_spec_t", FT_BOOLEAN, 8, NULL, 0x08, "Transport Type Bit", HFILL }}, |