diff options
author | Anders Svensson <[email protected]> | 2013-04-06 15:59:13 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2013-04-11 16:18:56 +0200 |
commit | 2e848e9290c2c912df46a7f9b4cd93ce002e9ba9 (patch) | |
tree | d94e6c260d590ff883149c806012cdd436d1541c /lib/diameter/src/base/diameter_peer.erl | |
parent | 157886e6b69e9c7cf1e0e6f8ea932a82b810ea12 (diff) | |
download | otp-2e848e9290c2c912df46a7f9b4cd93ce002e9ba9.tar.gz otp-2e848e9290c2c912df46a7f9b4cd93ce002e9ba9.tar.bz2 otp-2e848e9290c2c912df46a7f9b4cd93ce002e9ba9.zip |
Add transport interface 'connected' message with local address list
A transport module can return a local address list from its start/3
function in order to specify addresses to be used as Host-IP-Address
during capabilities exchange. Now allow addresses to be communicated in
a 'connected' message in the case of a connecting transport, so that
diameter_tcp (in particular) can make local address configuration
optional, communicating the gen_tcp default after connection
establishment instead.
Diffstat (limited to 'lib/diameter/src/base/diameter_peer.erl')
-rw-r--r-- | lib/diameter/src/base/diameter_peer.erl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/diameter/src/base/diameter_peer.erl b/lib/diameter/src/base/diameter_peer.erl index dfc76eb76e..0d2efd4d1f 100644 --- a/lib/diameter/src/base/diameter_peer.erl +++ b/lib/diameter/src/base/diameter_peer.erl @@ -24,7 +24,8 @@ %% Interface towards transport modules ... -export([recv/2, up/1, - up/2]). + up/2, + up/3]). %% ... and the stack. -export([start/1, @@ -180,7 +181,7 @@ start(Mod, Args) -> apply(Mod, start, Args). %%% --------------------------------------------------------------------------- -%%% # up/[12] +%%% # up/1-3 %%% --------------------------------------------------------------------------- up(Pid) -> %% accepting transport @@ -189,6 +190,9 @@ up(Pid) -> %% accepting transport up(Pid, Remote) -> %% connecting transport ifc_send(Pid, {self(), connected, Remote}). +up(Pid, Remote, LAddrs) -> %% connecting transport + ifc_send(Pid, {self(), connected, Remote, LAddrs}). + %%% --------------------------------------------------------------------------- %%% # recv/2 %%% --------------------------------------------------------------------------- |