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

Fixing decoding of unknown attributes

parent f6c2783b
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ import (
"strconv"
"strings"
"github.com/sirupsen/logrus"
"github.com/taktv6/tflow2/convert"
)
......@@ -19,10 +20,11 @@ func decodePathAttrs(buf *bytes.Buffer, tpal uint16) (*PathAttribute, error) {
p := uint16(0)
for p < tpal {
pa, consumed, err = decodePathAttr(buf)
p += consumed
if err != nil {
return nil, fmt.Errorf("Unable to decode path attr: %v", err)
logrus.Errorf("Unable to decode path attr: %v", err)
continue
}
p += consumed
if ret == nil {
ret = pa
......
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