diff options
Diffstat (limited to 'pkg/server/zclient.go')
-rw-r--r-- | pkg/server/zclient.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/server/zclient.go b/pkg/server/zclient.go index 33190591..a814e20a 100644 --- a/pkg/server/zclient.go +++ b/pkg/server/zclient.go @@ -159,10 +159,9 @@ func newIPRouteBody(dst []*table.Path) (body *zebra.IPRouteBody, isWithdraw bool msgFlags |= zebra.MESSAGE_METRIC } var flags zebra.FLAG - info := path.GetSource() - if info.AS == info.LocalAS { + if path.IsIBGP() { flags = zebra.FLAG_IBGP | zebra.FLAG_INTERNAL - } else if info.MultihopTtl > 0 { + } else if path.GetSource().MultihopTtl > 0 { flags = zebra.FLAG_INTERNAL } return &zebra.IPRouteBody{ |