aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-pcap/osmo_pcap_client.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-11-08 15:02:38 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-11-09 00:20:29 +0100
commite3d7c3e1545fcba6d14e2daef08da3400a136a32 (patch)
treea0a5dab416ab960f89c9636983817ecd7d10c4f7 /include/osmo-pcap/osmo_pcap_client.h
parentbdda28b1f5ca80bba83313fa55eba4f144b9ad3e (diff)
client: Prepare to work with a list of servers
There is no VTY code yet and no servers in the list but it looks good client this. Change-Id: Ic35748f1a95a880a9fa49dd18361592d8ac941ba
Diffstat (limited to 'include/osmo-pcap/osmo_pcap_client.h')
-rw-r--r--include/osmo-pcap/osmo_pcap_client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmo-pcap/osmo_pcap_client.h b/include/osmo-pcap/osmo_pcap_client.h
index af94086..fc982f3 100644
--- a/include/osmo-pcap/osmo_pcap_client.h
+++ b/include/osmo-pcap/osmo_pcap_client.h
@@ -25,6 +25,7 @@
#include <inttypes.h>
#include <pcap.h>
+#include <osmocom/core/linuxlist.h>
#include <osmocom/core/select.h>
#include <osmocom/core/timer.h>
#include <osmocom/core/write_queue.h>
@@ -46,6 +47,8 @@ enum {
};
struct osmo_pcap_client_conn {
+ struct llist_head entry;
+
char *srv_ip;
int srv_port;
struct osmo_wqueue wqueue;
@@ -86,6 +89,7 @@ struct osmo_pcap_client {
struct osmo_fd fd;
struct osmo_pcap_client_conn conn;
+ struct llist_head conns;
/* statistics */
struct rate_ctr_group *ctrg;