diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-07-01 14:30:21 +0900 |
---|---|---|
committer | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-07-01 14:30:21 +0900 |
commit | d045cdf59eb033ac7893bc2d65eab7f305648480 (patch) | |
tree | d5bd3f7fd5d90b3d9376c2ad8406bd6bb48127f4 | |
parent | c2709b81a2b3f9ee22c7f0049682efd829a82d96 (diff) |
server: use pointer
-rw-r--r-- | server/peer.go | 4 |
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 { |