Added DIS message logger to ./examples/dis-logger#63
Added DIS message logger to ./examples/dis-logger#63jsilveradga wants to merge 2 commits intoopen-dis:masterfrom
Conversation
|
Thank-you for the contribution @jsilveradga . I will circle back to review soon. |
|
@ngjunsiang given you're one of the most active python contributors right now, would you be interested in helping review this PR? |
|
A few immediate things that need addressing first:
TestabilityThe Required: sniff(filter="udp and port 3001", iface="lo", prn=process_packet, stop_filter=stop_sniffing)Should this be the default hardcoded config for easier testing? There are also no unit tests written for the dis-logger, because it is at present a GUI. Do we want a CLI version as well, and should the GUI and CLI share a common base logic? FixesA minor change is needed to make dis-logger work, due to upstream changes; see review suggestion. |
Co-authored-by: JS Ng <ngjunsiang@gmail.com>
Good catch. 3000 is the closest thing to a standard DIS port. I recommend we update dis sender to that. |
To run the dis logger from ./examples/dis-logger, run python main.py
It currently looks for DIS traffic on port 3000 and will display the message if sniffed for. It also is currently only looking for EntityStatePdu; however, it can be configured to accept other types, this is just what is being used with the project I'm working on.