diff options
author | Bill Meier <wmeier@newsguy.com> | 2014-01-28 03:02:37 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2014-01-28 03:02:37 +0000 |
commit | c1e53e735922699971bf36846d481459dfc61c93 (patch) | |
tree | 2aaa07b6151134bbb9f317752f7a3199b5dd1a0c | |
parent | 953d54b12027ab6ed0fd5ed12104d91cc8ecb391 (diff) |
Re-arrange #if 0/#endif related to an hf[] entry so that checkhf doesn't complain.
svn path=/trunk/; revision=54988
-rw-r--r-- | epan/dissectors/packet-redbackli.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/dissectors/packet-redbackli.c b/epan/dissectors/packet-redbackli.c index c3df5266f2..aaa1f14083 100644 --- a/epan/dissectors/packet-redbackli.c +++ b/epan/dissectors/packet-redbackli.c @@ -245,14 +245,17 @@ void proto_register_redbackli(void) { { &hf_redbackli_sessid, { "Session Id", "redbackli.sessid", FT_UINT32, BASE_DEC, NULL, 0x0, "Session Identifier", HFILL }}, - { &hf_redbackli_dir, #if 0 /* XXX: If one goes by the heuristic then this field can be variable length ?? In the absence of any documentation We'll assume that's the case (even though 'direction' sounds like a fixed length field */ + { &hf_redbackli_dir, { "Direction", "redbackli.dir", FT_UINT8, BASE_DEC, NULL, 0x0, -#endif + NULL, HFILL }}, +#else + { &hf_redbackli_dir, { "Direction", "redbackli.dir", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }}, +#endif { &hf_redbackli_label, { "Label", "redbackli.label", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL }}, |