diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-04-05 21:20:23 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-04-05 21:20:23 +0000 |
commit | 40f0c13132088ee3c5938c9c17dfdd986427672e (patch) | |
tree | d54e6818bcc14086f2b8b1dbaf7704c90fdd72a8 /epan/dissectors/packet-v5ef.c | |
parent | f691d045805f4fcbcd68bc0e832afc5d308875c3 (diff) |
Rename v52_handle to reflect that it's a handle for V5DL, not V5.2
payload.
Clean up indentation (use 8-space tab-based indentation throughout).
svn path=/trunk/; revision=41964
Diffstat (limited to 'epan/dissectors/packet-v5ef.c')
-rw-r--r-- | epan/dissectors/packet-v5ef.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-v5ef.c b/epan/dissectors/packet-v5ef.c index 9606b3c6e2..9dadc50390 100644 --- a/epan/dissectors/packet-v5ef.c +++ b/epan/dissectors/packet-v5ef.c @@ -53,7 +53,7 @@ static int hf_v5ef_ea2 = -1; static gint ett_v5ef = -1; static gint ett_v5ef_address = -1; -static dissector_handle_t v52_handle, lapd_handle; +static dissector_handle_t v5dl_handle, lapd_handle; /* * Bits in the address field. @@ -143,7 +143,7 @@ dissect_v5ef(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) next_tvb = tvb_new_subset_remaining(tvb, v5ef_header_len); - if(efaddr>8175) call_dissector(v52_handle,next_tvb, pinfo, tree); + if(efaddr>8175) call_dissector(v5dl_handle,next_tvb, pinfo, tree); else call_dissector(lapd_handle,next_tvb, pinfo, tree); } @@ -153,7 +153,7 @@ proto_reg_handoff_v5ef(void); void proto_register_v5ef(void) { - static hf_register_info hf[] = { + static hf_register_info hf[] = { { &hf_v5ef_direction, { "Direction", "v5ef.direction", FT_UINT8, BASE_DEC, VALS(v5ef_direction_vals), 0x0, @@ -178,12 +178,12 @@ proto_register_v5ef(void) { &hf_v5ef_ea2, { "EA2", "v5ef.ea2", FT_UINT16, BASE_DEC, NULL, V5EF_EA2, "Second Address Extension bit", HFILL }}, - }; + }; - static gint *ett[] = { - &ett_v5ef, - &ett_v5ef_address, - }; + static gint *ett[] = { + &ett_v5ef, + &ett_v5ef_address, + }; proto_v5ef = proto_register_protocol("V5 Envelope Function (v5ef)", "v5ef", "v5ef"); @@ -206,7 +206,7 @@ proto_reg_handoff_v5ef(void) dissector_add_uint("wtap_encap", WTAP_ENCAP_V5_EF, v5ef_handle); lapd_handle = find_dissector("lapd"); - v52_handle = find_dissector("v5dl"); + v5dl_handle = find_dissector("v5dl"); init = TRUE; } } |