summaryrefslogtreecommitdiffhomepage
path: root/packet
diff options
context:
space:
mode:
Diffstat (limited to 'packet')
-rw-r--r--packet/validate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/validate.go b/packet/validate.go
index 20464574..9ca968b2 100644
--- a/packet/validate.go
+++ b/packet/validate.go
@@ -133,7 +133,7 @@ func ValidateFlags(t BGPAttrType, flags uint8) (bool, string) {
// check flags are correct
if f, ok := pathAttrFlags[t]; ok {
- if f != flags {
+ if f != (flags & ^uint8(BGP_ATTR_FLAG_EXTENDED_LENGTH)) {
eMsg := "flags are invalid. attribtue type : " + strconv.Itoa(int(t))
return false, eMsg
}