summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-26 17:59:46 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-26 18:00:42 +0900
commit7b1ed59ef2191c232752f0eb841f19b10ec0937a (patch)
tree6f578c1a0f487c636b3f05229f67f8da9cc3626a
parentad706a62aba6c98c1a0a5ca39759e37c774d9775 (diff)
packet: fix the reggression of commit ad706a62aba6c98c1a0a5ca39759e37c774d9775
ignore EXTENDED Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-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
}