From f4fc3601226c0dc2ec29d7b424be273860833b1d Mon Sep 17 00:00:00 2001
From: Oliver Herms <oliver.herms@exaring.de>
Date: Fri, 5 Oct 2018 17:15:27 +0200
Subject: [PATCH] Fixing build

---
 protocols/bmp/packet/BUILD.bazel        | 2 +-
 protocols/bmp/packet/common_header.go   | 5 ++++-
 protocols/bmp/packet/per_peer_header.go | 2 +-
 protocols/bmp/server/router.go          | 3 +++
 4 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/protocols/bmp/packet/BUILD.bazel b/protocols/bmp/packet/BUILD.bazel
index 4f2b195e..2d2f9e66 100644
--- a/protocols/bmp/packet/BUILD.bazel
+++ b/protocols/bmp/packet/BUILD.bazel
@@ -19,7 +19,7 @@ go_library(
     visibility = ["//visibility:public"],
     deps = [
         "//util/decoder:go_default_library",
-        "@com_github_bio_routing_tflow2//convert:go_default_library",
+        "//vendor/github.com/taktv6/tflow2/convert:go_default_library",
     ],
 )
 
diff --git a/protocols/bmp/packet/common_header.go b/protocols/bmp/packet/common_header.go
index 17d9a95e..5b268355 100644
--- a/protocols/bmp/packet/common_header.go
+++ b/protocols/bmp/packet/common_header.go
@@ -4,19 +4,22 @@ import (
 	"bytes"
 
 	"github.com/bio-routing/bio-rd/util/decoder"
-	"github.com/bio-routing/tflow2/convert"
+	"github.com/taktv6/tflow2/convert"
 )
 
 const (
+	// CommonHeaderLen is the length of a common header
 	CommonHeaderLen = 6
 )
 
+// CommonHeader represents a common header
 type CommonHeader struct {
 	Version   uint8
 	MsgLength uint32
 	MsgType   uint8
 }
 
+// Serialize serializes a common header
 func (c *CommonHeader) Serialize(buf *bytes.Buffer) {
 	buf.WriteByte(c.Version)
 	buf.Write(convert.Uint32Byte(c.MsgLength))
diff --git a/protocols/bmp/packet/per_peer_header.go b/protocols/bmp/packet/per_peer_header.go
index f17a9201..d03f8b43 100644
--- a/protocols/bmp/packet/per_peer_header.go
+++ b/protocols/bmp/packet/per_peer_header.go
@@ -4,7 +4,7 @@ import (
 	"bytes"
 
 	"github.com/bio-routing/bio-rd/util/decoder"
-	"github.com/bio-routing/tflow2/convert"
+	"github.com/taktv6/tflow2/convert"
 )
 
 const (
diff --git a/protocols/bmp/server/router.go b/protocols/bmp/server/router.go
index b720750f..8e12f604 100644
--- a/protocols/bmp/server/router.go
+++ b/protocols/bmp/server/router.go
@@ -1,6 +1,7 @@
 package server
 
 import (
+	"fmt"
 	"net"
 	"time"
 
@@ -33,6 +34,8 @@ func (r *router) serve() {
 			return
 		}
 
+		// TODO: Finish implementation
+		fmt.Printf("%v\n", bmpMsg)
 	}
 
 }
-- 
GitLab