aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-02-22 13:29:09 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-02-25 12:12:28 +0100
commit0db1d43c0d6bdf4c2e67a07ebf77923e9e191aff (patch)
tree43115ff14d48510eb0de206dcfff3562c9e6c037 /include/osmocom
parent86fc3c8787a9c29f566a44969d528a604ee7e11f (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/osmocom')
-rw-r--r--include/osmocom/abis/e1_input.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h
index e5d2991..4f73749 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 {