diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-02-22 13:29:09 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-02-25 12:12:28 +0100 |
commit | 0db1d43c0d6bdf4c2e67a07ebf77923e9e191aff (patch) | |
tree | 43115ff14d48510eb0de206dcfff3562c9e6c037 /include | |
parent | 86fc3c8787a9c29f566a44969d528a604ee7e11f (diff) |
ipa driver: make bind address vty configurable
Add VTY function to set the ipa bind address:
e1_input
ipa bind A.B.C.D
Add a priv pointer to struct e1inp_driver in order to communicate the bind
address parameter to ipaccess_line_update(). Add two "internal.h" functions to
get/set it in the ipa driver struct.
Add static ip_bind_addr() to use the IP address set from the VTY or, if NULL,
use "0.0.0.0". Apply in ipaccess_line_update().
Diffstat (limited to 'include')
-rw-r--r-- | include/internal.h | 3 | ||||
-rw-r--r-- | include/osmocom/abis/e1_input.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/internal.h b/include/internal.h index 7f6e31a9..c931d4f7 100644 --- a/include/internal.h +++ b/include/internal.h @@ -13,6 +13,9 @@ extern void *libosmo_abis_ctx; /* use libosmo_abis_init, this is only for internal use. */ void e1inp_init(void); +void e1inp_ipa_set_bind_addr(const char *ip_bind_addr); +const char *e1inp_ipa_get_bind_addr(void); + /* ipaccess.c requires these functions defined here */ struct msgb; struct msgb *ipa_msg_alloc(int headroom); diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h index e5d2991d..4f737498 100644 --- a/include/osmocom/abis/e1_input.h +++ b/include/osmocom/abis/e1_input.h @@ -139,6 +139,7 @@ struct e1inp_driver { void (*vty_show)(struct vty *vty, struct e1inp_line *line); int default_delay; int has_keepalive; + const char *bind_addr; }; struct e1inp_line_ops { |