diff options
author | Anders Svensson <[email protected]> | 2012-11-08 12:56:07 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2012-11-08 12:56:07 +0100 |
commit | 3a86578f9750b27ab8a42eb8880cef082e9fcec7 (patch) | |
tree | a37b501b342eae1809f12f622bdc9d8613369d4e /lib/diameter/src | |
parent | cedda10e06e39d7d08ab98ee342d7c8eed00edc9 (diff) | |
parent | e18806dce4e043837efb1ddd5e6e31b4237e618a (diff) | |
download | otp-3a86578f9750b27ab8a42eb8880cef082e9fcec7.tar.gz otp-3a86578f9750b27ab8a42eb8880cef082e9fcec7.tar.bz2 otp-3a86578f9750b27ab8a42eb8880cef082e9fcec7.zip |
Merge branch 'anders/diameter/peer_mapping/OTP-10470' into maint
* anders/diameter/peer_mapping/OTP-10470:
Document peer_ref() service_info
Use peer_ref() service_info in traffic suite
Add service_info for a peer_ref()
Diffstat (limited to 'lib/diameter/src')
-rw-r--r-- | lib/diameter/src/base/diameter_service.erl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/diameter/src/base/diameter_service.erl b/lib/diameter/src/base/diameter_service.erl index b4e54cc9f9..cffba4fc94 100644 --- a/lib/diameter/src/base/diameter_service.erl +++ b/lib/diameter/src/base/diameter_service.erl @@ -3051,6 +3051,19 @@ tagged_info(Item, S) undefined end; +tagged_info(TPid, #state{peerT = PT, connT = CT}) + when is_pid(TPid) -> + try + [#conn{peer = Pid}] = ets:lookup(CT, TPid), + [#peer{ref = Ref, type = Type, options = Opts}] = ets:lookup(PT, Pid), + [{ref, Ref}, + {type, Type}, + {options, Opts}] + catch + error:_ -> + [] + end; + tagged_info(Items, S) when is_list(Items) -> [T || I <- Items, T <- [tagged_info(I,S)], T /= undefined, T /= []]; |