summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp/validate.go
diff options
context:
space:
mode:
Diffstat (limited to 'packet/bgp/validate.go')
-rw-r--r--packet/bgp/validate.go2
1 files changed, 1 insertions, 1 deletions
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