Ethereal

Re: [Ethereal-users] Filter on Local host
Google
 
Web Ethereal.com

Home | Introduction | Documentation | Lists | FAQ | Development | Wiki | Bugs

Ethereal-users: September 2001


On Sun, Sep 02, 2001 at 05:01:46PM +0200, Gilad Benjamini wrote:
> I want to do something like this
>     tethereal -c 100 -f "tcp && ! src `hostname`"
> Does tethereal have some built-in symbolic name for "hostname" ?

No, it doesn't.  Tethereal just uses the libpcap library's parser for
capture filter expressions, and that parser doesn't have any builtin
symbolic name for the current host.

> I am asking this because I want to run the same command on different
> platforms.

Then you will have to find some platform-independent way of getting that
host name, and pass it in the filter argument to Tethereal in whatever
script you're using, or abandon the idea of running the same command on
different platforms.



Powered by MHonArc 2.6.10