aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-pcap
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmo-pcap')
-rw-r--r--include/osmo-pcap/common.h2
-rw-r--r--include/osmo-pcap/osmo_pcap_client.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/osmo-pcap/common.h b/include/osmo-pcap/common.h
index 5d977f1..79080a2 100644
--- a/include/osmo-pcap/common.h
+++ b/include/osmo-pcap/common.h
@@ -63,4 +63,6 @@ extern int osmopcap_is_config_node(struct vty *vty, int node);
#define MAXIMUM_SNAPLEN 262144
#endif
+#define DEFAULT_SNAPLEN 9000
+
#endif
diff --git a/include/osmo-pcap/osmo_pcap_client.h b/include/osmo-pcap/osmo_pcap_client.h
index 7888dfe..70be8db 100644
--- a/include/osmo-pcap/osmo_pcap_client.h
+++ b/include/osmo-pcap/osmo_pcap_client.h
@@ -94,6 +94,7 @@ struct osmo_pcap_client {
char *filter_string;
int filter_itself;
int gprs_filtering;
+ int snaplen;
struct osmo_fd fd;
struct osmo_pcap_client_conn conn;
@@ -105,6 +106,7 @@ struct osmo_pcap_client {
extern struct osmo_pcap_client *pcap_client;
+struct osmo_pcap_client *osmo_pcap_client_alloc(void *tall_ctx);
int vty_client_init(struct osmo_pcap_client *);
int osmo_client_capture(struct osmo_pcap_client *client, const char *device);