diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-06-13 20:22:55 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-06-13 20:22:55 +0900 |
commit | c8d69a3906dc9a6ea9a7257805fbb7682362c367 (patch) | |
tree | 6b2963401bf25159f5619d545641d5801fd29c49 /packet/bgp/validate.go | |
parent | f2cea556c18da0419ee64a47653455c3c4dc6811 (diff) |
packet: export pathAttrFlags
Used to check if an attribute is known or unknown.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp/validate.go')
-rw-r--r-- | packet/bgp/validate.go | 2 |
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 |