diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-27 06:26:18 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-27 06:27:00 -0800 |
commit | eff70c21375742b44ae5ebfd845dba38d0f3fcfc (patch) | |
tree | b9d6cceaa69fc74250265f2df2262e65fe23ebda /table/destination.go | |
parent | f5447b5599060a60acbf61ab7310807d85799628 (diff) |
support IPv6_UC route family
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/destination.go')
-rw-r--r-- | table/destination.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/table/destination.go b/table/destination.go index f99af8ef..4bb77ae7 100644 --- a/table/destination.go +++ b/table/destination.go @@ -45,6 +45,7 @@ type PeerInfo struct { ID net.IP VersionNum int LocalID net.IP + RF RouteFamily } type Destination interface { @@ -185,7 +186,7 @@ func (dd *DestinationDefault) removeOldPathsFromSource(source *PeerInfo) []Path } func (dd *DestinationDefault) validatePath(path Path) { - if path == nil || path.getRouteFamily() != dd.ROUTE_FAMILY { + if path == nil || path.GetRouteFamily() != dd.ROUTE_FAMILY { log.Error("Invalid path. Expected %s path got %s.", dd.ROUTE_FAMILY, path) } } |