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

Fixing build

parent de909324
Branches
Tags
No related merge requests found
......@@ -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",
],
)
......
......@@ -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))
......
......@@ -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 (
......
package server
import (
"fmt"
"net"
"time"
......@@ -33,6 +34,8 @@ func (r *router) serve() {
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.
Please register or to comment