tcpdump mailing list archives
Re: [tcpdump] Sanity check on major/minor libpcap version
From: Francois-Xavier Le Bail <devel.fx.lebail () orange fr>
Date: Thu, 08 Oct 2015 22:58:46 +0200
On 08/10/2015 22:05, Michael Richardson wrote:
Guy Harris <guy () alum mit edu> wrote: > We might also want to, if major == PCAP_VERSION_MAJOR, make sure minor > <= PCAP_VERSION_MINOR, just in case somebody does a pcap 2.5 that code > that only knows up to version 2.4 can't handle. I thought that we'd have to call that 3.0... In my mind, a minor version mismatch (even one newer) might result in some bits being ignored (for instance, a TBD very very high precision timestamp data might be lost), but shouldn't result in any mis-handling.
If we have part of the the test as (major == PCAP_VERSION_MAJOR && minor <= PCAP_VERSION_MINOR),We shall know that a new version appeared somewhere and we can act accordingly ...
_______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- Re: [tcpdump] Sanity check on major/minor libpcap version Michael Richardson (Oct 08)
- Re: [tcpdump] Sanity check on major/minor libpcap version Guy Harris (Oct 08)
- Re: [tcpdump] Sanity check on major/minor libpcap version Michael Richardson (Oct 08)
- Re: [tcpdump] Sanity check on major/minor libpcap version Francois-Xavier Le Bail (Oct 08)
- Re: [tcpdump] Sanity check on major/minor libpcap version Michael Richardson (Oct 08)
- Re: [tcpdump] Sanity check on major/minor libpcap version Guy Harris (Oct 08)