summaryrefslogtreecommitdiffhomepage
path: root/config/default_linux.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-08-03 04:22:05 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-04-04 22:07:46 +0900
commit806e4c250b1eca27162b1515a7f6b712c9b79f1e (patch)
treec69c4d1679284cf00b75e8f648de99acd8e93a59 /config/default_linux.go
parent6f102593b71931226d78a9f592173c4742859549 (diff)
config: enabled IPv4/IPv6 unicast for BGP unnumbered peer by default
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'config/default_linux.go')
-rw-r--r--config/default_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/default_linux.go b/config/default_linux.go
index 34a274fd..6bee2317 100644
--- a/config/default_linux.go
+++ b/config/default_linux.go
@@ -38,7 +38,7 @@ func GetIPv6LinkLocalNeighborAddress(ifname string) (string, error) {
if err != nil {
return "", err
}
- if neigh.IP.IsLinkLocalUnicast() && !local {
+ if neigh.State&netlink.NUD_FAILED == 0 && neigh.IP.IsLinkLocalUnicast() && !local {
addr = neigh.IP
cnt += 1
}