Home
last modified time | relevance | path

Searched refs:i2repr_one (Results 1 – 5 of 5) sorted by relevance

/external/scapy/test/
Dfields.uts806 = EnumField.i2repr_one
809 assert(f.i2repr_one(None, 0) == 'Foo')
810 assert(f.i2repr_one(None, 1) == 'Bar')
811 expect_exception(KeyError, 'f.i2repr_one(None, 2)')
813 assert(rf.i2repr_one(None, 0) == 'Foo')
814 assert(rf.i2repr_one(None, 1) == 'Bar')
815 expect_exception(KeyError, 'rf.i2repr_one(None, 2)')
817 assert(lf.i2repr_one(None, 0) == 'Foo')
818 assert(lf.i2repr_one(None, 1) == 'Bar')
819 expect_exception(KeyError, 'lf.i2repr_one(None, 2)')
[all …]
/external/scapy/scapy/
Dfields.py958 def i2repr_one(self, pkt, x): member in _EnumField
978 return [self.i2repr_one(pkt, z) for z in x]
980 return self.i2repr_one(pkt,x)
1039 def i2repr_one(self, pkt, x): member in XShortEnumField
1074 def i2repr_one(self, pkt, x): member in _MultiEnumField
/external/scapy/scapy/layers/tls/
Dhandshake.py154 def i2repr_one(self, pkt, x): member in _CipherSuitesField
168 l = [self.i2repr_one(pkt, z) for z in x]
/external/scapy/scapy/contrib/
Dmodbus.py642 def i2repr_one(self, pkt, x): member in ModbusByteEnumField
Ddiameter.py106 cmd = self.i2repr_one(pkt, x)