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

I have added one button into wireshark using GTK2 APIs.(wireshark-1.10.1)

When this button is pressed, pop-up dialog of capture + display filter appears to user.

User selects capture filter, display filter and interface.

Now, when OK button is pressed, the wireshark should start capturing with both selected capture and display filters.

I have already developed GUI part.

I don't know how to fire action event when OK is pressed ? I mean how to start capturing with selected filter ?

Regards,

Mehul

asked 22 Sep '16, 23:42

Mehul28's gravatar image

Mehul28
0458
accept rate: 0%

converted to question 23 Sep '16, 01:46

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196


Hi,

I have gone through wireshark GTK code and done development of my requirement.

I have added a new button on GUI. Clicking on this button will open pop-up dialog box of interface, capture filter, and display filter. Selecting relevant parameters and clicking ok will start capture with selected capture + display filters.

Closing this thread.

permanent link

answered 30 Sep '16, 06:28

Mehul28's gravatar image

Mehul28
0458
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×549
×46

question asked: 22 Sep '16, 23:42

question was seen: 685 times

last updated: 30 Sep '16, 06:28

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