Skip to content
Snippets Groups Projects
Commit f4fc3601 authored by Oliver Herms's avatar Oliver Herms
Browse files

Fixing build

parent de909324
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ go_library( ...@@ -19,7 +19,7 @@ go_library(
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = [ deps = [
"//util/decoder:go_default_library", "//util/decoder:go_default_library",
"@com_github_bio_routing_tflow2//convert:go_default_library", "//vendor/github.com/taktv6/tflow2/convert:go_default_library",
], ],
) )
......
...@@ -4,19 +4,22 @@ import ( ...@@ -4,19 +4,22 @@ import (
"bytes" "bytes"
"github.com/bio-routing/bio-rd/util/decoder" "github.com/bio-routing/bio-rd/util/decoder"
"github.com/bio-routing/tflow2/convert" "github.com/taktv6/tflow2/convert"
) )
const ( const (
// CommonHeaderLen is the length of a common header
CommonHeaderLen = 6 CommonHeaderLen = 6
) )
// CommonHeader represents a common header
type CommonHeader struct { type CommonHeader struct {
Version uint8 Version uint8
MsgLength uint32 MsgLength uint32
MsgType uint8 MsgType uint8
} }
// Serialize serializes a common header
func (c *CommonHeader) Serialize(buf *bytes.Buffer) { func (c *CommonHeader) Serialize(buf *bytes.Buffer) {
buf.WriteByte(c.Version) buf.WriteByte(c.Version)
buf.Write(convert.Uint32Byte(c.MsgLength)) buf.Write(convert.Uint32Byte(c.MsgLength))
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"github.com/bio-routing/bio-rd/util/decoder" "github.com/bio-routing/bio-rd/util/decoder"
"github.com/bio-routing/tflow2/convert" "github.com/taktv6/tflow2/convert"
) )
const ( const (
......
package server package server
import ( import (
"fmt"
"net" "net"
"time" "time"
...@@ -33,6 +34,8 @@ func (r *router) serve() { ...@@ -33,6 +34,8 @@ func (r *router) serve() {
return return
} }
// TODO: Finish implementation
fmt.Printf("%v\n", bmpMsg)
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment