Re: [Wireshark-dev] wiretap function wtap_open_offline fails with SIGSEGV

2018-05-03 Thread Martin Sehnoutka
On 05/03/2018 10:52 AM, Guy Harris wrote: > You must initialize libwiretap before you use it. > > Call > > wtap_init(TRUE); > > first. > > Note also that the libwiretap API is subject to change, so don't rely on it > not changing out from under you in future Wireshark releases. > It

Re: [Wireshark-dev] wiretap function wtap_open_offline fails with SIGSEGV

2018-05-03 Thread Guy Harris
On May 3, 2018, at 1:38 AM, Martin Sehnoutka wrote: > I'm trying to write a simple program with the wiretap API just to test > how it works, but I'm struggling with the function wtap_open_offline. > Here is what the code looks like: > > #include > #include > #include > #include > > using st

[Wireshark-dev] wiretap function wtap_open_offline fails with SIGSEGV

2018-05-03 Thread Martin Sehnoutka
Hi, I'm trying to write a simple program with the wiretap API just to test how it works, but I'm struggling with the function wtap_open_offline. Here is what the code looks like: #include #include #include #include using std::cout; using std::endl; int main(int argc, char* argv[]) { if