diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-07-21 18:12:01 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-09 12:07:50 +0100 |
commit | f335e37ed5018983df16c87080d810e9e4022629 (patch) | |
tree | 20936aec50d80151cc00d4a325988f9c52407a24 /include | |
parent | 53044df9d55533bde6df9a7f946ca4fade88fe42 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-pcap/osmo_pcap_client.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; |