From c8d69a3906dc9a6ea9a7257805fbb7682362c367 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Mon, 13 Jun 2016 20:22:55 +0900 Subject: packet: export pathAttrFlags Used to check if an attribute is known or unknown. Signed-off-by: FUJITA Tomonori --- packet/bgp/validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packet/bgp/validate.go') diff --git a/packet/bgp/validate.go b/packet/bgp/validate.go index 2c743c44..84a82c87 100644 --- a/packet/bgp/validate.go +++ b/packet/bgp/validate.go @@ -196,7 +196,7 @@ func ValidateFlags(t BGPAttrType, flags BGPAttrFlag) (bool, string) { } // check flags are correct - if f, ok := pathAttrFlags[t]; ok { + if f, ok := PathAttrFlags[t]; ok { if f != flags & ^BGP_ATTR_FLAG_EXTENDED_LENGTH & ^BGP_ATTR_FLAG_PARTIAL { eMsg := fmt.Sprintf("flags are invalid. attribute type: %s, expect: %s, actual: %s", t, f, flags) return false, eMsg -- cgit v1.2.3