How to get a list of values for fields for a layer in scapy? E.g., is there an easy way to see all the values usable for the ‘options’ field of DHCP (for example)? (I know I can dig around in the objects’ dict‘s, etc. Is there a better way?).
Share
The source code is usually a good place to look, especially when the documentation is sparse. Fortunately the author was kind enough to enumerate DHCP options in
dhcp.DHCPOptions