[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tcpdump-workers
Subject:    RE : [tcpdump-workers] Libpcap question
From:       "Jacky Buyck" <jacky.buyck () wanadoo ! fr>
Date:       2004-04-18 15:53:35
Message-ID: 00de01c4255d$4f159fe0$6df2fea9 () bjorn
[Download RAW message or body]

It work.
Really thanks for the exemple : it's really usefull.



-----Message d'origine-----
De : tcpdump-workers-owner@lists.sandelman.ca
[mailto:tcpdump-workers-owner@lists.sandelman.ca] De la part de Guy
Harris
Envoyé : vendredi 16 avril 2004 11:04
À : tcpdump-workers@lists.tcpdump.org
Cc : BUYCK Jacky FTRD/DMI/CAE
Objet : Re: [tcpdump-workers] Libpcap question


On Fri, Apr 16, 2004 at 12:17:54AM +0200, Jacky Buyck wrote:
> This last one, if I've correctly understand handle all the addresses 
> that can be use on an interface.

Yes, but note that they aren't all necessarily IPv4 addresses - you have
to check the "sa_family" member of the address before printing it as an
IPv4 address.

I've attached a sample program (based on the test program written by the
person who first implemented "pcap_findalldevs()") that lists all
interfaces - try that program.

-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic