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

Method _is_valid

scapy/interfaces.py:76–79  ·  view source on GitHub ↗

Returns whether an interface is valid or not

(self, dev)

Source from the content-addressed store, hash-verified

74 return conf.L3socket
75
76 def _is_valid(self, dev):
77 # type: (NetworkInterface) -> bool
78 """Returns whether an interface is valid or not"""
79 return bool((dev.ips[4] or dev.ips[6]) and dev.mac)
80
81 def _format(self,
82 dev, # type: NetworkInterface

Callers 1

is_validMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected