KimiNewt/pyshark — pull request #39 by bbayles (2014-09-07 21:14:37+00:00)
Title: Add version-dependent display filter flag

#38 refers to a problem with using display filters. This patch asks TShark for its version, then chooses a display filter flag that's appropriate for that version.

Consider this script:

```python
from __future__ import print_function
import pyshark

tshark_version = pyshark.tshark.tshark.get_tshark_version()
print(tshark_version)

parameters = pyshark.capture.capture.Capture(display_filter='something').get_parameters()
print(parameters)
```

When my config.ini points to version 1.6.7, I get output:

```
(1, 6, 7)
['-R', 'something']
```

When it points to version 1.10.6, I get output:

```
(1, 10, 6)
['-Y', 'something']
```