diff options
Diffstat (limited to 'packet/bgp/bgp.go')
-rw-r--r-- | packet/bgp/bgp.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go index 7295ec1f..75dda14f 100644 --- a/packet/bgp/bgp.go +++ b/packet/bgp/bgp.go @@ -7086,10 +7086,16 @@ func (e *MessageError) Error() string { } func (e *TwoOctetAsSpecificExtended) Flat() map[string]string { + if e.SubType == EC_SUBTYPE_ROUTE_TARGET { + return map[string]string{"routeTarget": e.String()} + } return map[string]string{} } func (e *OpaqueExtended) Flat() map[string]string { + if e.SubType == EC_SUBTYPE_ENCAPSULATION { + return map[string]string{"encaspulation": e.Value.String()} + } return map[string]string{} } |