Ticket #45165

generate_packets.py: make packet directions an enum

Open Date: 2022-07-20 21:46 Last Update: 2022-07-22 20:35

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

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
  • Resolution Update from None to Accepted
2022-07-22 20:35 Updated by: alienvalkyrie
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login