From 34fd472e9d7bd5821d6383958f7dd55648ac5daa Mon Sep 17 00:00:00 2001 From: grumvalski Date: Sat, 3 Jan 2015 08:37:02 +0100 Subject: [PATCH] modules/cdp: added src_addr parameter in peer definition --- modules/cdp/config.h | 1 + modules/cdp/configexample/ConfigExample.xml | 2 +- modules/cdp/configparser.c | 9 ++++++-- modules/cdp/peer.c | 5 ++++- modules/cdp/peer.h | 23 +++++++++++---------- modules/cdp/peermanager.c | 6 ++++-- modules/cdp/receiver.c | 21 ++++++++++++++++++- 7 files changed, 49 insertions(+), 18 deletions(-) diff --git a/modules/cdp/config.h b/modules/cdp/config.h index 394c3eb5d51..35ee4c19117 100644 --- a/modules/cdp/config.h +++ b/modules/cdp/config.h @@ -54,6 +54,7 @@ typedef struct{ str fqdn; /**< FQDN of the peer */ str realm; /**< Realm of the peer */ int port; /**< TCP port of the peer; the Diameter uri is then aaa://fqdn:port. */ + str src_addr; /**< IP address used to connect to the peer */ } peer_config; diff --git a/modules/cdp/configexample/ConfigExample.xml b/modules/cdp/configexample/ConfigExample.xml index 5f44bdc9688..da9436ac2dc 100644 --- a/modules/cdp/configexample/ConfigExample.xml +++ b/modules/cdp/configexample/ConfigExample.xml @@ -54,7 +54,7 @@ a dedicated receiver process will be forked. All other unkwnown peers will share a single receiver. --> - +