aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/osmo-pcap/common.h3
-rw-r--r--include/osmo-pcap/osmo_pcap_client.h5
2 files changed, 7 insertions, 1 deletions
diff --git a/include/osmo-pcap/common.h b/include/osmo-pcap/common.h
index fff452f..13c76e1 100644
--- a/include/osmo-pcap/common.h
+++ b/include/osmo-pcap/common.h
@@ -1,7 +1,7 @@
/*
* osmo-pcap common
*
- * (C) 2011 by Holger Hans Peter Freyther <zecke@selfish.org>
+ * (C) 2011-2016 by Holger Hans Peter Freyther
* (C) 2011 by On-Waves
* All Rights Reserved
*
@@ -41,6 +41,7 @@ enum {
enum {
CLIENT_NODE = _LAST_OSMOVTY_NODE + 1,
SERVER_NODE,
+ CLIENT_SERVER_NODE,
};
extern const struct log_info log_info;
diff --git a/include/osmo-pcap/osmo_pcap_client.h b/include/osmo-pcap/osmo_pcap_client.h
index fc982f3..5947615 100644
--- a/include/osmo-pcap/osmo_pcap_client.h
+++ b/include/osmo-pcap/osmo_pcap_client.h
@@ -48,6 +48,7 @@ enum {
struct osmo_pcap_client_conn {
struct llist_head entry;
+ const char *name;
char *srv_ip;
int srv_port;
@@ -108,3 +109,7 @@ void osmo_client_send_link(struct osmo_pcap_client_conn *client);
void osmo_client_connect(struct osmo_pcap_client_conn *);
void osmo_client_reconnect(struct osmo_pcap_client_conn *);
+
+struct osmo_pcap_client_conn *osmo_client_find_or_create_conn(struct osmo_pcap_client *, const char *name);
+
+void osmo_client_conn_init(struct osmo_pcap_client_conn *conn, struct osmo_pcap_client *client);