From 3b077386ea651511fe7f01b533595256fd44eb84 Mon Sep 17 00:00:00 2001
From: Oliver Herms <oliver.herms@exaring.de>
Date: Fri, 29 Jun 2018 17:41:26 +0200
Subject: [PATCH] Deactivating AS4Path decoding. Causes crashes in FSM.

---
 protocols/bgp/packet/path_attributes.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/protocols/bgp/packet/path_attributes.go b/protocols/bgp/packet/path_attributes.go
index 000f0d8e..56eb039c 100644
--- a/protocols/bgp/packet/path_attributes.go
+++ b/protocols/bgp/packet/path_attributes.go
@@ -71,10 +71,11 @@ func decodePathAttr(buf *bytes.Buffer, opt *types.Options) (pa *PathAttribute, c
 		if err := pa.decodeASPath(buf, asnLength); err != nil {
 			return nil, consumed, fmt.Errorf("Failed to decode AS Path: %v", err)
 		}
+	/* Don't decodeAS4Paths yet: The rest of the software does not support it right yet!
 	case AS4PathAttr:
 		if err := pa.decodeASPath(buf, 4); err != nil {
 			return nil, consumed, fmt.Errorf("Failed to decode AS4 Path: %v", err)
-		}
+		}*/
 	case NextHopAttr:
 		if err := pa.decodeNextHop(buf); err != nil {
 			return nil, consumed, fmt.Errorf("Failed to decode Next-Hop: %v", err)
-- 
GitLab