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

How can I write a dialog that starts a capture with a specified interface, capture filter, and display filter?

0

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


One Answer:

0

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.

answered 30 Sep '16, 06:28

Mehul28's gravatar image

Mehul28
0458
accept rate: 0%