diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-31 23:42:20 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-31 23:42:48 +0200 |
commit | 80b8b606c5d77b43bf748e523ccf49cd5b8b97cf (patch) | |
tree | c7721ab847f97473654a4b690c7a7c0de19489b2 /include | |
parent | 9f6127f592c979582a4d2d34627e09cfcd439778 (diff) |
osmo-pcap-server: Accept the client connection from a given host
We now read from a given system.
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-pcap/osmo_pcap_server.h | 8 |
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; |