summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso2011-06-21 12:22:49 +0200
committerPablo Neira Ayuso2011-06-21 12:22:49 +0200
commitc00ee7399d06ecaee66795e56e546cef89768cb2 (patch)
tree9992cc8848cd53a339e91b98187ac2a65aba9ecc /include
parentinput: ipaccess: add preliminary BTS-side for A-bis over IP (diff)
downloadlibosmo-abis-c00ee7399d06ecaee66795e56e546cef89768cb2.tar.gz
libosmo-abis-c00ee7399d06ecaee66795e56e546cef89768cb2.tar.xz
libosmo-abis-c00ee7399d06ecaee66795e56e546cef89768cb2.zip
e1input: add address as parameter to e1inp_line_update(...)
This patch adds a new parameter to e1inp_line_update that allows to specific the address for A-bis over IP BSC/BTS.
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/abis/e1_input.h4
-rw-r--r--include/osmocom/abis/ipa.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h
index c401baa..c52e441 100644
--- a/include/osmocom/abis/e1_input.h
+++ b/include/osmocom/abis/e1_input.h
@@ -115,7 +115,7 @@ struct e1inp_driver {
struct llist_head list;
const char *name;
int (*want_write)(struct e1inp_ts *ts);
- int (*line_update)(struct e1inp_line *line, enum e1inp_line_role role);
+ int (*line_update)(struct e1inp_line *line, enum e1inp_line_role role, const char *addr);
int default_delay;
};
@@ -206,7 +206,7 @@ void e1_set_pcap_fd(int fd);
struct subch_mux *e1inp_get_mux(uint8_t e1_nr, uint8_t ts_nr);
void e1inp_sign_link_destroy(struct e1inp_sign_link *link);
-int e1inp_line_update(struct e1inp_line *line, enum e1inp_line_role role);
+int e1inp_line_update(struct e1inp_line *line, enum e1inp_line_role role, const char *addr);
struct gsm_network;
int ipaccess_setup(struct gsm_network *gsmnet);
diff --git a/include/osmocom/abis/ipa.h b/include/osmocom/abis/ipa.h
index de1d70f..83e4472 100644
--- a/include/osmocom/abis/ipa.h
+++ b/include/osmocom/abis/ipa.h
@@ -17,11 +17,11 @@ struct ipa_link {
struct llist_head tx_queue;
struct osmo_timer_list timer;
enum ipa_link_state state;
- struct sockaddr_in addr;
+ const char *addr;
int (*process)(struct ipa_link *link, struct msgb *msg);
};
-struct ipa_link *ipa_client_link_create(void *ctx);
+struct ipa_link *ipa_client_link_create(void *ctx, const char *addr);
void ipa_client_link_destroy(struct ipa_link *link);
int ipa_client_link_open(struct ipa_link *link);