path: root/include/osmo-pcap/osmo_pcap_client.h
diff options
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-01-17 09:00:30 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-01-17 09:06:42 +0100
commit40c1e85499ec152a26bfd07433765730e3782104 (patch)
tree54b5769e4ccf08f8e6981f1c6a6d65427bc851ae /include/osmo-pcap/osmo_pcap_client.h
parentfdebd88059df3a8f717614548dcd7247e8890f9a (diff)
client: Allow to bind to a specific source_ip
Modify the osmo_sock_init (code clone to be integrated upstream) to allow binding to a specific source ip and source port. Allow the source ip to be configured but allow the kernel to pick a random port for us. This is necessary for systems with multiple interfaces where the default route is not necessarily the right one to connect to the pcap server. Change-Id: I84e728b0752213d28f970fcbbfd6565c441ccfeb
Diffstat (limited to 'include/osmo-pcap/osmo_pcap_client.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmo-pcap/osmo_pcap_client.h b/include/osmo-pcap/osmo_pcap_client.h
index 68a648d..b4dda78 100644
--- a/include/osmo-pcap/osmo_pcap_client.h
+++ b/include/osmo-pcap/osmo_pcap_client.h
@@ -52,6 +52,7 @@ struct osmo_pcap_client_conn {
char *srv_ip;
int srv_port;
+ char *source_ip;
struct osmo_wqueue wqueue;
struct osmo_timer_list timer;