Ticket #45165

generate_packets.py: make packet directions an enum

Date d'ouverture: 2022-07-20 21:46 Dernière mise à jour: 2022-07-22 20:35

Rapporteur:
Propriétaire:
Type:
État:
Atteints
Composant:
Jalon:
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
1

Détails

Part of #43927. There are exactly three legal values for the Packet.dirs field; server-to-client (down) only, client-to-server (up) only, and unrestricted ~> make it an enum with three constants. If we make it appropriately (frozen)set-valued, we also get conversion from a set of "sc" and "cs" packet flags for free.

Ticket History (3/4 Histories)

2022-07-20 21:46 Updated by: alienvalkyrie
  • New Ticket "generate_packets.py: make packet directions an enum" created
2022-07-21 00:08 Updated by: alienvalkyrie
  • Résolution Update from Aucun to Accepted
2022-07-22 20:35 Updated by: alienvalkyrie
  • État Update from Ouvert to Atteints
  • Résolution Update from Accepted to Fixed

Modifier

Please login to add comment to this ticket » Connexion