Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-users: Re: [Wireshark-users] capture filter

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 04 May 2007 09:18:39 -0700

Tom Greaser wrote:

How can i set my capture to allow me to put in just part of the
ethernet address ?

i read the wiki and since i have HIGH volumes of data (gig links
running at 15-50 meg)
id like to do more than just the filter  "mulitcast"
i will if i have too..

i know the source mac always ends in 0007

A capture filter of

	ether[10:2] == 0x0007

will check bytes 10 and 11 (the first byte being 0) of the packet against 00:07; that checks the last 2 bytes of the source MAC address.

See the tcpdump/WinDump man page for capture filter details; look for "expression" to find the description of filters, and look for "expr relop expr" for a description of the syntax of general comparisons such as that.

  • Follow-Ups:
    • Re: [Wireshark-users] capture filter
      • From: Tom Greaser
  • References:
    • [Wireshark-users] capture filter
      • From: Tom Greaser
  • Prev by Date: Re: [Wireshark-users] Comparing RTP stream Jitter and Max Delta
  • Next by Date: Re: [Wireshark-users] capture filter
  • Previous by thread: Re: [Wireshark-users] capture filter
  • Next by thread: Re: [Wireshark-users] capture filter
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation