osmo-pcap/include/osmo-pcap
Pau Espin 168949e119 client: Set snaplen to MAXIMUM_SNAPLEN
Despite this value not being exported publicly, the truth is that
tcpdump and wireshark nowadays avoid processing any file with snaplen
bigger than this value:
"tcpdump: pcap_loop: invalid packet capture length 861244, bigger than
snaplen of 262144"
It also fails to set snaplen to values bigger than that:
"tcpdump -s 262145" --> "tcpdump: invalid snaplen 262145"

pcapfix also warns about wrong packet length if bigger than same value
(defined as PCAP_MAX_SNAPLEN there).

MAXIMUM_SPANPLEN is defined in tcpdump's netdissect.h and libpcap's
pcap-int.h. It is also defined as WTAP_MAX_PACKET_SIZE in
wireshark/wiretap/wtap.h (this one being the only publicly available).

Change-Id: Ib7449d5aba9da342c150704ebd0e1f09e7f7276c
2018-10-08 20:20:43 +02:00
..
Makefile.am client: Initial support for TLS in the client 2016-09-08 16:16:55 +02:00
common.h client: Set snaplen to MAXIMUM_SNAPLEN 2018-10-08 20:20:43 +02:00
osmo_pcap_client.h Add support for generating IPIP to osmo-pcap-client 2018-02-09 12:07:50 +01:00
osmo_pcap_server.h server: Add vty interface for the TLS configuration 2016-09-08 16:17:02 +02:00
osmo_tls.h client: Prepare to have multiple server connections 2016-11-09 00:20:29 +01:00
wireformat.h Use enum for PKT_LINK_* 2018-10-08 20:20:43 +02:00