Home
last modified time | relevance | path

Searched refs:lhex (Results 1 – 6 of 6) sorted by relevance

/external/scapy/scapy/
Dfields.py300 return lhex(self.i2h(pkt, x))
336 return lhex(self.i2h(pkt, x))
361 return lhex(self.i2h(pkt, x))
374 return lhex(self.i2h(pkt, x))
907 return lhex(self.i2h(pkt,x))
1049 return lhex(x)
Dutils.py75 def lhex(x): function
79 return "(%s)" % ", ".join(map(lhex, x))
81 return "[%s]" % ", ".join(map(lhex, x))
/external/scapy/scapy/layers/
Dntp.py24 from scapy.utils import lhex
66 return lhex(self.i2h(pkt, x))
Dbluetooth.py32 return lhex(self.i2h(pkt, x))
38 return lhex(self.i2h(pkt, x))
/external/scapy/test/
Dfields.uts969 lambda x: 'Foo' if x == 0 else 'Bar' if x == 1 else lhex(x),
Dregression.uts244 = Test lhex function
245 assert(lhex(42) == "0x2a")
246 assert(lhex((28,7)) == "(0x1c, 0x7)")
247 assert(lhex([28,7]) == "[0x1c, 0x7]")