Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/secdev/scapy
/ i2m
Method
i2m
scapy/layers/bluetooth4LE.py:131–134 ·
view source on GitHub ↗
(self, pkt, x)
Source
from the content-addressed store, hash-verified
129
conf.resolve.add(self)
130
131
def
i2m(self, pkt, x):
132
if
x is None:
133
return
b
"\0\0\0\0\0\0"
134
return
mac2str(
':'
.join(x.split(
':'
)[::-1]))
135
136
def
m2i(self, pkt, x):
137
return
str2mac(x[::-1])
Callers
1
addfield
Method · 0.45
Calls
2
mac2str
Function · 0.90
join
Method · 0.80
Tested by
no test coverage detected