Skip to content

Commit

Permalink
Merge pull request #14 from KilianDargel/master
Browse files Browse the repository at this point in the history
Added formatting option.
  • Loading branch information
KilianDargel authored Mar 5, 2019
2 parents 2a360d1 + 2758c9b commit d9283d4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v1.1.0- Feature:

- Added formatting option

## v1.0.1

- Fix: Apply filter to all interfaces
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ENV IFACE="any"
ENV MAXFILESIZE="1000"
ENV MAXFILENUM="10"
ENV FILENAME="dump"
ENV FORMAT="pcapng"

USER root:root

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ These options are configurable:
| `MAXFILENUM` | `10` |
| `DURATION` | `""` |
| `FILENAME` | `dump` |
| `FORMAT` | `pcapng` |

`IFACE` is the interface tshark should listen on.

Expand All @@ -41,6 +42,10 @@ The `FILENAME` variable sets the filename that is used. The default value is
information). To dump on multiple interfaces simply add more interfaces to this
variable seperated by a whitespace (e.g. "eth0 eth1").

`FORMAT` sets the file-format of the written trace. Note that when you're setting
the `FORMAT` to `pcap` for example, the `FILENAME` has to be changed to `dump.pcap`.
Other formats are described in the [official tshark documentation](https://www.wireshark.org/docs/man-pages/tshark.html).

Example:

```
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ then
BUFFEROPTS="$BUFFEROPTS -b duration:$DURATION"
fi

/usr/bin/tshark $BUFFEROPTS -w "/data/$FILENAME" -f "$FILTER" $INTERFACES
/usr/bin/tshark $BUFFEROPTS -w "/data/$FILENAME" -f "$FILTER" $INTERFACES -F $FORMAT

0 comments on commit d9283d4

Please sign in to comment.