diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-10-08 15:35:13 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-10-08 20:20:43 +0200 |
commit | f946fa21eec49f0e153e3f9ab5b6e94ccea05400 (patch) | |
tree | 6593397c78aee619cf4c28e2673902d6473eb6f2 /include | |
parent | 168949e119104ca1c916b3e3593ef11235380e1f (diff) |
client: Add pcap snaplen VTY cmd
Change-Id: I84fda9f27b725e031c218187ab679392dfa7ec3d
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-pcap/common.h | 2 | ||||
-rw-r--r-- | include/osmo-pcap/osmo_pcap_client.h | 2 |
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); |