scapy.data
Global variables and functions for handling external data sets.
- class scapy.data.ManufDA(_name: str = 'DADict', **kargs: Any)[source]
Bases:
DADict
[str
,Tuple
[str
,str
]]
- scapy.data.load_ethertypes(filename: Optional[str]) EtherDA [source]
“Parse /etc/ethertypes and return values as a dictionary. If unavailable, use the copy bundled with Scapy.
- scapy.data.load_manuf(filename: str) ManufDA [source]
Loads manuf file from Wireshark.
- Parameters
filename – the file to load the manuf file from
- Returns
a ManufDA filled object
- scapy.data.load_protocols(filename: str, _fallback: Optional[bytes] = None, _integer_base: int = 10, _cls: type = scapy.dadict.DADict[int, str]) DADict[int, str] [source]
“Parse /etc/protocols and return values as a dictionary.