Indicate why the flags have a field width of 6.

Add the RFC numbers for the BFD RFCs, and a URL for the last I-D that
discussed version 0.

svn path=/trunk/; revision=42371
This commit is contained in:
Guy Harris 2012-05-01 01:04:24 +00:00
parent 7e1603af9b
commit 29d7ec110e
1 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,7 @@
/* packet-bfd.c /* packet-bfd.c
* Routines for Bidirectional Forwarding Detection (BFD) message dissection * Routines for Bidirectional Forwarding Detection (BFD) message dissection
* RFCs 5880, 5881, 5882, 5883, 5884, 5885
* (and http://tools.ietf.org/html/draft-ietf-bfd-base-01 for version 0)
* *
* Copyright 2003, Hannes Gredler <hannes@juniper.net> * Copyright 2003, Hannes Gredler <hannes@juniper.net>
* Copyright 2006, Balint Reczey <Balint.Reczey@ericsson.com> * Copyright 2006, Balint Reczey <Balint.Reczey@ericsson.com>
@ -701,34 +703,34 @@ proto_register_bfd(void)
}, },
{ &hf_bfd_flags_p, { &hf_bfd_flags_p,
{ "Poll", "bfd.flags.p", { "Poll", "bfd.flags.p",
FT_BOOLEAN, 6, TFS(&tfs_set_notset), 0x20, /* 6? */ FT_BOOLEAN, 6, TFS(&tfs_set_notset), 0x20, /* 6 flag bits; Sta is shown separately */
"If set, the transmitting system is expecting a packet with the Final (F) bit in reply", "If set, the transmitting system is expecting a packet with the Final (F) bit in reply",
HFILL } HFILL }
}, },
{ &hf_bfd_flags_f, { &hf_bfd_flags_f,
{ "Final", "bfd.flags.f", { "Final", "bfd.flags.f",
FT_BOOLEAN, 6, TFS(&tfs_set_notset), 0x10, /* 6? */ FT_BOOLEAN, 6, TFS(&tfs_set_notset), 0x10, /* 6 flag bits; Sta is shown separately */
"If set, the transmitting system is replying to a packet with the Poll (P) bit set", "If set, the transmitting system is replying to a packet with the Poll (P) bit set",
HFILL } HFILL }
}, },
{ &hf_bfd_flags_c, { &hf_bfd_flags_c,
{ "Control Plane Independent", "bfd.flags.c", { "Control Plane Independent", "bfd.flags.c",
FT_BOOLEAN, 6, TFS(&tfs_set_notset), 0x08, /* 6? */ FT_BOOLEAN, 6, TFS(&tfs_set_notset), 0x08, /* 6 flag bits; Sta is shown separately */
"If set, the BFD implementation is implemented in the forwarding plane", HFILL } "If set, the BFD implementation is implemented in the forwarding plane", HFILL }
}, },
{ &hf_bfd_flags_a, { &hf_bfd_flags_a,
{ "Authentication Present", "bfd.flags.a", { "Authentication Present", "bfd.flags.a",
FT_BOOLEAN, 6, TFS(&tfs_set_notset), 0x04, /* 6? */ FT_BOOLEAN, 6, TFS(&tfs_set_notset), 0x04, /* 6 flag bits; Sta is shown separately */
"The Authentication Section is present", HFILL } "The Authentication Section is present", HFILL }
}, },
{ &hf_bfd_flags_d, { &hf_bfd_flags_d,
{ "Demand", "bfd.flags.d", { "Demand", "bfd.flags.d",
FT_BOOLEAN, 6, TFS(&tfs_set_notset), 0x02, /* 6? */ FT_BOOLEAN, 6, TFS(&tfs_set_notset), 0x02, /* 6 flag bits; Sta is shown separately */
"If set, Demand mode is active in the transmitting system", HFILL } "If set, Demand mode is active in the transmitting system", HFILL }
}, },
{ &hf_bfd_flags_m, { &hf_bfd_flags_m,
{ "Multipoint", "bfd.flags.m", { "Multipoint", "bfd.flags.m",
FT_BOOLEAN, 6, TFS(&tfs_set_notset), 0x01, /* 6? */ FT_BOOLEAN, 6, TFS(&tfs_set_notset), 0x01, /* 6 flag bits; Sta is shown separately */
"Reserved for future point-to-multipoint extensions", HFILL } "Reserved for future point-to-multipoint extensions", HFILL }
}, },
{ &hf_bfd_detect_time_multiplier, { &hf_bfd_detect_time_multiplier,