tcpdump mailing list archives

Re: New APIs to support multiple DLT_'s on an interface


From: David Young <dyoung () ojctech com>
Date: Thu, 12 Dec 2002 01:04:38 -0600


Point taken about -D. I suggest tcpdump -y for "set data link tYpe". =)

Is there any reason tcpdump cannot adopt --options ?

For the sake of a consistent interface across platforms, I prefer
that *every* tcpdump support both -L and -y. On platforms without a
choice of DLT, however, tcpdump should not require the DLT API from
libpcap. Instead, it should provide a trivial implementation which lists
one DLT for -L and which insists that -y provide that DLT, only.

On platforms it is implemented, pcap_list_datalinks should always return
at least one DLT. Also, pcap_set_datalink should permit you to set at
least any DLT on the list, but no DLT that is not on the list.

Re: the datalinks API for libpcap, originally I had put an errbuf argument
into the API on a tcpdump-worker's suggestion, but that argument did
not make it into NetBSD.

pcap_list_datalinks belongs in whichever platform-dependent file
pcap_set_datalink is in, since it does not make sense to have one without
the other.

Dave

-- 
David Young             OJC Technologies
dyoung () ojctech com      Engineering from the Right Brain
                        Urbana, IL * (217) 278-3933
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: