summaryrefslogtreecommitdiffhomepage
path: root/server/peer.go
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-07-01 14:30:21 +0900
committerHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-07-01 14:30:21 +0900
commitd045cdf59eb033ac7893bc2d65eab7f305648480 (patch)
treed5bd3f7fd5d90b3d9376c2ad8406bd6bb48127f4 /server/peer.go
parentc2709b81a2b3f9ee22c7f0049682efd829a82d96 (diff)
server: use pointer
Diffstat (limited to 'server/peer.go')
-rw-r--r--server/peer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/peer.go b/server/peer.go
index e1f5964f..56ce7e17 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -320,7 +320,7 @@ func (peer *Peer) setDistributePolicy(policyMap map[string]*policy.Policy) {
}
-func (peer *Peer) applyDistributePolicies(original table.Path) (bool, table.Path) {
+func (peer *Peer) applyDistributePolicies(original *table.Path) (bool, *table.Path) {
policies := peer.distPolicies
var d Direction = POLICY_DIRECTION_DISTRIBUTE
@@ -417,7 +417,7 @@ func (loc *LocalRib) applyPolicies(d Direction, original *table.Path) (bool, *ta
return applyPolicy("Loc", loc.OwnerName(), d, policies, original)
}
-func applyPolicy(component, owner string, d Direction, policies []*policy.Policy, original table.Path) (bool, table.Path) {
+func applyPolicy(component, owner string, d Direction, policies []*policy.Policy, original *table.Path) (bool, *table.Path) {
var applied bool = true
for _, pol := range policies {
if result, action, newpath := pol.Apply(original); result {