pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcap/+/39176?usp=email )
Change subject: pcap-client: Allow recording on several interfaces
......................................................................
pcap-client: Allow recording on several interfaces
This commit enables basic support for multi-interface capturing.
The transmitted data to the osmo-pcap-server is not yet in pcapng
format, which means no information regarding the iface it was captured
on is provided when opening the resulting pcap file.
Related: SYS#5822
Change-Id: I082b0bd38cf1829937c5e643f0ee31f9d56a07a7
---
M src/osmo_client_vty.c
1 file changed, 1 insertion(+), 7 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcap refs/changes/76/39176/1
diff --git a/src/osmo_client_vty.c b/src/osmo_client_vty.c
index c976a1a..009c735 100644
--- a/src/osmo_client_vty.c
+++ b/src/osmo_client_vty.c
@@ -170,14 +170,8 @@
PCAP_STRING "the device to filter\n" "device name\n")
{
struct osmo_pcap_handle *ph = osmo_client_find_handle(pcap_client, argv[0]);
- if (!ph) {
- /* Only allow max one for now:*/
- if (llist_count(&pcap_client->handles) > 0) {
- vty_out(vty, "Only one 'pcap device' allowed! Remove the old one with 'no pcap device' first!%s", VTY_NEWLINE);
- return CMD_WARNING;
- }
+ if (!ph)
osmo_pcap_handle_alloc(pcap_client, argv[0]);
- }
return CMD_SUCCESS;
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcap/+/39176?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-pcap
Gerrit-Branch: master
Gerrit-Change-Id: I082b0bd38cf1829937c5e643f0ee31f9d56a07a7
Gerrit-Change-Number: 39176
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-pcap/+/39165?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder
Change subject: pcap-client: Move conns llist initialization to constructor
......................................................................
pcap-client: Move conns llist initialization to constructor
Change-Id: Ib67efa0579755a117c7680f490916e37165204cc
---
M src/osmo_client_core.c
M src/osmo_client_main.c
2 files changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcap refs/changes/65/39165/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcap/+/39165?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-pcap
Gerrit-Branch: master
Gerrit-Change-Id: Ib67efa0579755a117c7680f490916e37165204cc
Gerrit-Change-Number: 39165
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder