From abc6dd83bc27da426f463919567784a44ed99fa7 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 21 Jul 2017 18:12:01 +0200 Subject: Add support for generating IPIP to osmo-pcap-client This allows the user to change the configuration between either using a) the classic OsmoPCAP protocol (over TCP with or without TLS) which is used when you want to talk to an osmo-pcap-server b) the (new) IPIP encapsulation, which will simply take the IP packet (without Ethernet or pcap header) and transmit it inside IPIP to the specified server IP address. This is useful for gettin real-time streaming into wireshark. Change-Id: I8056fc163ac2f15adcb964d867dd5e51df4e4710 --- include/osmo-pcap/osmo_pcap_client.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/osmo-pcap/osmo_pcap_client.h b/include/osmo-pcap/osmo_pcap_client.h index b4dda78..7888dfe 100644 --- a/include/osmo-pcap/osmo_pcap_client.h +++ b/include/osmo-pcap/osmo_pcap_client.h @@ -46,6 +46,11 @@ enum { CLIENT_CTR_P_IFDROP, }; +enum osmo_pcap_protocol { + PROTOCOL_OSMOPCAP, + PROTOCOL_IPIP, +}; + struct osmo_pcap_client_conn { struct llist_head entry; const char *name; @@ -55,6 +60,7 @@ struct osmo_pcap_client_conn { char *source_ip; struct osmo_wqueue wqueue; struct osmo_timer_list timer; + enum osmo_pcap_protocol protocol; /* TLS handling */ bool tls_on; -- cgit v1.2.3