This is our old Q&A Site. Please post any new questions and answers at

Dear Team,

We have Linux OS installed on one of our nodes (which has SS7 stack) now if we want to filter packets which are submit towards network we use below command to do.

tcpdump -ni any sctp s0 -w filename.pcap

Now above command captures the all packets of ss7 layer, is it possible to prepare a filter on command line itself like (( == 0) && (gsm_map.imsi_digits == "404971026311824")) we do filtering in wireshark OR what type of filtering options are there.

Or can wireshark itself be helpful do so, because i tried using Interface remote but its not possible as server/node does have direct connectivity its via a different server.

asked 06 Aug '12, 23:14

creative's gravatar image

accept rate: 0%

tcpdump only supports capture filters, not Wireshark's (far richer) display filters. As such, you can't filter for things like with tcpdump. With capture filters you're limited to the things that libpcap understands. See the manual page of pcap-filter(7) or, if that doesn't exist, tcpdump(8), or, if that doesn't exist, .

permanent link

answered 07 Aug '12, 07:51

JeffMorriss's gravatar image

JeffMorriss ♦
accept rate: 27%

...and Wireshark's capture filters are the same as tcpdump's capture filters, with the same limitations.

(07 Aug '12, 11:51) Guy Harris ♦♦

Thanks Jeff for your answer.

@Harris...what ? How Wireshark filters are same as tcpdump filters ???

(07 Aug '12, 19:22) creative

There are two kinds of "Wireshark filters" - capture filters, which are what are specified when you start a capture, and "display filters" (which can also be used, for example, for colorizing packets), which are specified when you have a capture. Wireshark capture filters are implemented by libpcap/WinPcap, just as tcpdump's filters are, so they're exactly the same as tcpdump filters. Wireshark display filters are implemented by Wireshark, and are much more capable than capture filters.

(08 Aug '12, 00:01) Guy Harris ♦♦

Thanks Harris :)

(08 Aug '12, 03:20) creative
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 06 Aug '12, 23:14

question was seen: 15,428 times

last updated: 08 Aug '12, 03:20

p​o​w​e​r​e​d by O​S​Q​A