aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bfd.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2011-11-28 17:59:54 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2011-11-28 17:59:54 +0000
commit2b89c2a0c94fa72880cc4566ee0514b340c69070 (patch)
treeb146bf32d53ea6c5a732d1d65c5d6fbb91a09ba0 /epan/dissectors/packet-bfd.c
parent9549d911d740dc1bbb4e3af4a91c8d62a9d5e9d5 (diff)
From Krishnamurthy Mayya:
Part of patch: 2. BFD extension has been added as per RFC 6428, to decode the BFD packet with ACH encapsulation(without IP/UDP header encapsulation). The channel type in ACH header identifies the BFD payload as BFD CC or CV packet. Also decoding for MPLS-TP source MEP-ID TLV in BFD CV packet has been added. applied with a change to add packet-bfd.h https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6610#add_comment git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40029 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-bfd.c')
-rw-r--r--epan/dissectors/packet-bfd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bfd.c b/epan/dissectors/packet-bfd.c
index 08db74e778..9594010512 100644
--- a/epan/dissectors/packet-bfd.c
+++ b/epan/dissectors/packet-bfd.c
@@ -37,6 +37,8 @@
#include <epan/packet.h>
#include <epan/expert.h>
+#include "packet-bfd.h"
+
#define UDP_PORT_BFD_1HOP_CONTROL 3784 /* draft-katz-ward-bfd-v4v6-1hop-00.txt */
#define UDP_PORT_BFD_MULTIHOP_CONTROL 4784 /* draft-ietf-bfd-multihop-05.txt */
@@ -357,7 +359,8 @@ static void dissect_bfd_authentication(tvbuff_t *tvb, packet_info *pinfo, proto_
}
-void dissect_bfd_control(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+void
+dissect_bfd_control(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
gint bfd_version = -1;
gint bfd_diag = -1;
@@ -553,7 +556,8 @@ void dissect_bfd_control(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* BFD CV Source MEP-ID TLV Decoder,
As per RFC 6428 : http://tools.ietf.org/html/rfc6428
sections - 3.5.1, 3.5.2, 3.5.3 */
-void dissect_bfd_mep (tvbuff_t *tvb, proto_tree *tree)
+void
+dissect_bfd_mep (tvbuff_t *tvb, proto_tree *tree)
{
gint offset = 0, mep_offset = 0;
gint mep_type = -1;