Wireshark-dev: Re: [Wireshark-dev] wiretap - using as a library rather than coupled with Wiresh

From: Richard Kinder <rkinder@xxxxxxxxxxxxx>
Date: Thu, 26 Nov 2015 08:47:46 +0000
Thanks a lot for the pointers Guy. Let me dig a little deeper into the code.

-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Guy Harris
Sent: Thursday, 26 November 2015 7:41 PM
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
Subject: Re: [Wireshark-dev] wiretap - using as a library rather than coupled with Wireshark?


On Nov 25, 2015, at 9:30 PM, Richard Kinder <rkinder@xxxxxxxxxxxxx> wrote:

> I’m looking at making a small tool to translate .pkt files (Wildpackets, specifically the wireless traces) to pcap/pcapng format on the command line, and it seems wiretap is one of the few options available online.
>
> Question: Can the library be built independently of Wireshark?

It can't be, and probably will never be able to be, built independently of the "Wireshark utilities" library, the source to which is in the wsutil directory.

It *might* be possible to extract both of those libraries, along with bits of the configuration/build mechanism, into a source tree that can build those two libraries, but I don't know whether anybody's actually succeeded in doing so.

And you might need to keep your own copy anyway, unless you contribute that tool to the Wireshark project for inclusion as part of Wireshark, unless you're willing to change your program as the API to libwiretap changes - it's not a stable API (there are a number of places where it really needs to change).

I'd suggest contributing it to Wireshark, at which point it becomes the job of the person who changes the libwiretap API, not your job, to change it as necessary to work with the changed API.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe


This email, including its contents and any attachment(s), may contain confidential information of Quantenna Communications, Inc. and is solely for the intended recipient(s). If you may have received this in error, please contact the sender and permanently delete this email, its contents and any attachment(s).