Generate TCPdump from CLI

Aperta
#45 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Start by tracing how the CLI commands such as permit receive packets and print their hex data; the issue does not name specific files or tests. The requested result is a CLI option that writes captured packets to a file in a format Wireshark can read, stopping when the command times out or is interrupted.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

good first issue help wanted

As mentioned in an earlier issue by me, I think the ability to view the data frames that are sent and received by Bellows in Wireshark. @rcloran mentioned he was open to the idea. This is something that would come in useful e.g. in #43, where an unknown type is in the data frame that is received, which results in a crash.

Having only one antenna device, I can't debug with another device while using the first one as the controller. Thus, I would like to debug the packets that the CLI application is already dumping in hex format when in verbose mode, in Wireshark.

I want to try implementing this, but I would like opinions first. My current idea is a flag for the CLI commands like permit, with which you specify a filename for the dump. This file is written as long as the CLI command is running, either until timeout (e.g. by the time mentioned in permit), or when the command is interrupted.

Does this sound like a useful feature, and the correct way to use it?

Lingua principale
Python
Stelle
221
Fork
104
Merge medio
5g 15h
PR unite (30g)
4

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di zigpy/bellows

Tutte le issue di zigpy/bellows

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.