You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How am I meant to access the to-DS field in a Dot11.FCfield in a Pythonic way? I can access for example the retry field by using fcfield.retry, but of course, fcfield.to-DS is not valid syntax. getattr(fcfield, 'to-DS') and the same with setattr works, but is very ugly. Is there a better way to read/set this bit field?
Scapy version
2.6.1
Python version
3.13.1
Operating system
Linux 6.12.6
Additional environment information
No response
How to reproduce
/
Actual result
No response
Expected result
No response
Related resources
No response
The text was updated successfully, but these errors were encountered:
Good that this will be renamed :) This is not the only 'impossible' field name in the codebase, so maybe it makes sense to check the names at runtime with a regex?
Another issue I have is setting the value, but I'm using setattr in the meantime.
Brief description
How am I meant to access the to-DS field in a Dot11.FCfield in a Pythonic way? I can access for example the retry field by using
fcfield.retry
, but of course,fcfield.to-DS
is not valid syntax.getattr(fcfield, 'to-DS')
and the same withsetattr
works, but is very ugly. Is there a better way to read/set this bit field?Scapy version
2.6.1
Python version
3.13.1
Operating system
Linux 6.12.6
Additional environment information
No response
How to reproduce
/
Actual result
No response
Expected result
No response
Related resources
No response
The text was updated successfully, but these errors were encountered: