summaryrefslogtreecommitdiffhomepage
path: root/gomrt/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'gomrt/main.go')
-rw-r--r--gomrt/main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/gomrt/main.go b/gomrt/main.go
index 1f3e7e19..86fad3a2 100644
--- a/gomrt/main.go
+++ b/gomrt/main.go
@@ -77,7 +77,7 @@ func main() {
go func() {
for {
- buf := make([]byte, mrt.COMMON_HEADER_LEN)
+ buf := make([]byte, mrt.MRT_COMMON_HEADER_LEN)
_, err := file.Read(buf)
if err == io.EOF {
break
@@ -86,7 +86,7 @@ func main() {
os.Exit(1)
}
- h := &mrt.Header{}
+ h := &mrt.MRTHeader{}
err = h.DecodeFromBytes(buf)
if err != nil {
fmt.Println("failed to parse")
@@ -100,14 +100,14 @@ func main() {
os.Exit(1)
}
- msg, err := mrt.ParseBody(h, buf)
+ msg, err := mrt.ParseMRTBody(h, buf)
if err != nil {
fmt.Println("failed to parse:", err)
os.Exit(1)
}
if msg.Header.Type == mrt.TABLE_DUMPv2 {
- subType := mrt.SubTypeTableDumpv2(msg.Header.SubType)
+ subType := mrt.MRTSubTypeTableDumpv2(msg.Header.SubType)
var af *api.AddressFamily
switch subType {
case mrt.PEER_INDEX_TABLE: