aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-pcap
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-05-31 23:42:20 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-05-31 23:42:48 +0200
commit80b8b606c5d77b43bf748e523ccf49cd5b8b97cf (patch)
treec7721ab847f97473654a4b690c7a7c0de19489b2 /include/osmo-pcap
parent9f6127f592c979582a4d2d34627e09cfcd439778 (diff)
osmo-pcap-server: Accept the client connection from a given host
We now read from a given system.
Diffstat (limited to 'include/osmo-pcap')
-rw-r--r--include/osmo-pcap/osmo_pcap_server.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/osmo-pcap/osmo_pcap_server.h b/include/osmo-pcap/osmo_pcap_server.h
index 66ec99e..fbfadfd 100644
--- a/include/osmo-pcap/osmo_pcap_server.h
+++ b/include/osmo-pcap/osmo_pcap_server.h
@@ -26,17 +26,25 @@
#include <osmocom/core/select.h>
#include <osmocom/core/linuxlist.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
#include <pcap.h>
#include <time.h>
+struct osmo_pcap_server;
+
struct osmo_pcap_conn {
/* list of connections */
struct llist_head entry;
+ struct osmo_pcap_server *server;
/* name */
char *name;
char *remote_host;
+ struct in_addr remote_addr;
/* Remote connection */
struct osmo_fd rem_fd;