MCPcopy Index your code
hub / github.com/secdev/scapy / load

Method load

scapy/arch/bpf/core.py:130–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

128 os.close(fd)
129
130 def load(self):
131 # type: () -> Dict[str, NetworkInterface]
132 data = {}
133 for iface in _get_if_list().values():
134 if_data = iface.copy()
135 if_data.update(
136 {
137 "network_name": iface["name"],
138 "description": iface["name"],
139 "ips": [x["address"] for x in iface["ips"]],
140 }
141 )
142 data[iface["name"]] = NetworkInterface(self, if_data)
143 return data
144
145
146conf.ifaces.register_provider(BPFInterfaceProvider)

Callers

nothing calls this directly

Calls 5

_get_if_listFunction · 0.90
NetworkInterfaceClass · 0.90
valuesMethod · 0.45
copyMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected