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 7173138b..2c743c44 100644
--- a/packet/bgp/validate.go
+++ b/packet/bgp/validate.go
@@ -161,7 +161,7 @@ func ValidateAttribute(a PathAttributeInterface, rfs map[RouteFamily]bool, doCon
}
case *PathAttributeUnknown:
- if p.getFlags()&BGP_ATTR_FLAG_OPTIONAL == 0 {
+ if p.GetFlags()&BGP_ATTR_FLAG_OPTIONAL == 0 {
eMsg := fmt.Sprintf("unrecognized well-known attribute %s", p.GetType())
data, _ := a.Serialize()
return false, NewMessageError(eCode, eSubCodeUnknown, data, eMsg)