Skip to content

Awkward FCfield API #4628

@redfast00

Description

@redfast00

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 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions