aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/osmo-pcap/osmo_pcap_server.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/osmo-pcap/osmo_pcap_server.h b/include/osmo-pcap/osmo_pcap_server.h
index a94724c..b408c47 100644
--- a/include/osmo-pcap/osmo_pcap_server.h
+++ b/include/osmo-pcap/osmo_pcap_server.h
@@ -36,6 +36,10 @@
struct osmo_pcap_server;
+
+#define STATE_INITIAL 0
+#define STATE_DATA 1
+
struct osmo_pcap_conn {
/* list of connections */
struct llist_head entry;
@@ -55,6 +59,12 @@ struct osmo_pcap_conn {
/* last time */
struct tm last_write;
+
+ /* read buffering */
+ int state;
+ int pend;
+ char buf[4096];
+ struct osmo_pcap_data *data;
};
struct osmo_pcap_server {