Skip to content

Commit

Permalink
[improve][doc] add notes to wireshark scripts README (#18563)
Browse files Browse the repository at this point in the history
  • Loading branch information
labuladong authored Nov 24, 2022
1 parent c544ea3 commit 598ca5d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions wireshark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
-->

> **Note**: This Lua script may cause a crash in the newest version of Wireshark, see [#18439](https://github.com/apache/pulsar/issues/18439). Make sure the version of Wireshark is earlier than v4.0.0.
# How to use

## Step 1: prepare PulsarApi.proto file
Expand All @@ -30,6 +32,9 @@ You need to put PulsarApi.proto to a separate path.

3. Add the path of PulsarApi.proto.

4. Check `Dissect Protobuf fields as Wireshark fields` box. When this box is checked,
you can use `pbf.pulsar.proto` to visit fields in protobuf package.

## Step 2: add pulsar.lua to plugins

1. Open Wireshark.
Expand All @@ -40,6 +45,8 @@ You need to put PulsarApi.proto to a separate path.

## Step 3: start to use

This plugin registers a Pulsar protocol automatically in 6650. You can use it to decode Pulsar messages now.

This plugin registers a Pulsar protocol automatically in 6650. You can use this Wireshark filter string to find out Pulsar packages (ignore ping/pong):

```
tcp.port eq 6650 and pulsar and pbf.pulsar.proto.BaseCommand.type ne "ping" and pbf.pulsar.proto.BaseCommand.type ne "pong"
```

0 comments on commit 598ca5d

Please sign in to comment.