tcpdump mailing list archives

Re: libpcap: patches required for OpenSolaris/SXCE


From: Sebastien Roy <Sebastien.Roy () Sun COM>
Date: Tue, 01 Dec 2009 21:32:26 -0500

On Wed, 2009-12-02 at 13:18 +1100, Darren Reed wrote:
Guy Harris wrote:

On Dec 1, 2009, at 4:10 PM, Darren Reed wrote:

Use of libdladm is going to be required.

Required for what?  Enumerating capture interfaces?

On Solaris, yes. This is a [Open]Solaris problem because libdladm is
not yet in a state suitable for use by tcpdump.


libpcap uses SIOCGLIFCONF to get the list of interfaces.

...if

    1) you *don't* have getifaddrs()

Solaris does not appear to.

It will be in build 135; It's being added by the "Brussels II" project
(see
http://arc.opensolaris.org/caselog/PSARC/2009/306/commitment.materials/brussels2_psarc.txt)

That still won't solve the problem of capturing on interfaces that have
no addresses.  The basic logic remains the same; once you've determined
which datalink or interface to capture over, the lack of IP address
configuration for that link shouldn't cause tcpdump to throw out cryptic
warnings that have no bearing on the outcome of the command.  It doesn't
matter if you use getifaddrs() or SIOCGLIFCONF, the tool should be able
to handle supported system configurations gracefully.

-Seb


-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: