Home
last modified time | relevance | path

Searched refs:addfield (Results 1 – 23 of 23) sorted by relevance

/external/scapy/scapy/layers/tls/
Dbasefields.py130 def addfield(self, pkt, s, val): member in _TLSIVField
158 def addfield(self, pkt, s, val): member in _TLSMACField
186 def addfield(self, pkt, s, val): member in _TLSPadField
207 def addfield(self, pkt, s, val): member in _TLSPadLenField
Dkeyexchange.py87 addfield = phantom_decorate(EnumField.addfield, False) variable in SigAndHashAlgField
93 addfield = phantom_decorate(FieldLenField.addfield, False) variable in SigAndHashAlgsLenField
99 addfield = phantom_decorate(FieldListField.addfield, False) variable in SigAndHashAlgsField
110 def addfield(self, pkt, s, val): member in SigLenField
115 return super(SigLenField, self).addfield(pkt, s, val)
Dextensions.py150 def addfield(self, pkt, s, val): member in ServerLenField
154 return super(ServerLenField, self).addfield(pkt, s, val)
589 def addfield(self, pkt, s, i): member in _ExtensionsLenField
Dhandshake.py496 def addfield(self, pkt, s, val): member in _ASN1CertLenField
798 def addfield(self, pkt, s, val): member in _CertAuthoritiesField
1096 def addfield(self, pkt, s, val): member in ThreeBytesLenField
Drecord_sslv2.py59 def addfield(self, pkt, s, val): member in _SSLv2MsgListField
Dhandshake_sslv2.py211 def addfield(self, pkt, s, val): member in _SSLv2CipherSuiteField
Drecord.py183 def addfield(self, pkt, s, val): member in _TLSMsgListField
/external/scapy/scapy/contrib/
Dpnio_rtc.py123 def addfield(self, pkt, s, val): member in NotionalLenField
230 return max(0, pkt_len - len(fld.addfield(self, b"", val)) - 4)
234 return max(0, 12 - len(fld.addfield(self, b"", val)))
236 return max(0, 40 - len(fld.addfield(self, b"", val)))
450 def addfield(self, pkt, s, val): member in XVarBytesField
Ddtp.py68 def addfield(self, pkt, s, val): member in RepeatedTlvListField
Dhttp2.uts129 = HTTP/2 UVarIntField.addfield on full byte
134 assert(f.addfield(None, b'Toto', 0) == b'Toto\x00')
135 assert(f.addfield(None, b'Toto', 3) == b'Toto\x03')
136 assert(f.addfield(None, b'Toto', 254).lower() == b'toto\xfe')
137 assert(f.addfield(None, b'Toto', 255).lower() == b'toto\xff\x00')
138 assert(f.addfield(None, b'Toto', 766).lower() == b'toto\xff\xff\x03')
140 = HTTP/2 UVarIntField.addfield on partial byte
145 assert(f.addfield(None, (b'Toto', 3, 4), 0) == b'Toto\x80')
146 assert(f.addfield(None, (b'Toto', 3, 4), 3) == b'Toto\x83')
147 assert(f.addfield(None, (b'Toto', 3, 4), 30).lower() == b'toto\x9e')
[all …]
Dhttp2.py82 def addfield(self, pkt, s, val): member in HPackMagicBitField
93 return super(HPackMagicBitField, self).addfield(pkt, s, self._magic)
365 def addfield(self, pkt, s, val): member in AbstractUVarIntField
579 def addfield(self, pkt, s, val): member in FieldUVarLenField
596 return super(FieldUVarLenField, self).addfield(pkt, s, val)
1199 def addfield(self, pkt, s, val): member in HPackStrLenField
Dmqtt.py19 def addfield(self, pkt, s, val): member in VariableFieldLenField
Deigrp.py439 def addfield(self, pkt, s, val): member in RepeatedTlvListField
Dbgp.py135 def addfield(self, pkt, s, val): member in BGPFieldIPv4
179 def addfield(self, pkt, s, val): member in BGPFieldIPv6
Disis.py190 def addfield(self, pkt, s, val): member in ISIS_AreaIdField
Dopenflow3.py590 def addfield(self, pkt, s, val): member in OXMPacketListField
/external/scapy/scapy/
Dfields.py78 def addfield(self, pkt, s, val): member in Field
153 def addfield(self, pkt, s, val): member in ConditionalField
155 return self.fld.addfield(pkt,s,val)
179 def addfield(self, pkt, s, val): member in PadField
180 sval = self._fld.addfield(pkt, b"", val)
309 def addfield(self, pkt, s, val): member in X3BytesField
407 def addfield(self, pkt, s, val): member in StrField
583 def addfield(self, pkt, s, val): member in PacketListField
601 def addfield(self, pkt, s, val): member in StrFixedLenField
729 def addfield(self, pkt, s, val): member in FieldListField
[all …]
Dpacket.py399 p = f.addfield(self, p, val)
461 p = f.addfield(self, p, self.getfieldval(f.name) )
/external/lua/src/
Dltablib.c160 static void addfield (lua_State *L, luaL_Buffer *b, lua_Integer i) { in addfield() function
178 addfield(L, &b, i); in tconcat()
182 addfield(L, &b, i); in tconcat()
/external/scapy/doc/scapy/
Dbuild_dissect.rst157 - ``addfield(self, pkt, s, val)``: copy the network representation of
161 def addfield(self, pkt, s, val):
175 ``*2*()`` methods, and sometimes also the ``addfield()`` and ``getfield()``.
233 def addfield(self, pkt, s, val):
569 p = f.addfield(self, p, self.getfieldval(f))
572 The core function to build a field is ``addfield()``. It takes the
606 def addfield(self, pkt, s, val):
617 The glue is provided by ``Packet.do_build()`` which calls ``Field.addfield()``
/external/scapy/test/
Dfields.uts13 #Field("foo", None, fmt="B").addfield(None, "FOO", 0x12)
25 assert LELongField("test", None).addfield(None, b"", 0x44434241) == b'ABCD\x00\x00\x00\x00'
34 m.addfield(None, b"FOO", "c0:01:be:ef:ba:be")
58 i.addfield(None, b"FOO", "1.2.3.4")
/external/scapy/scapy/layers/
Dinet6.py937 def addfield(self, pkt, s, val): member in _HopByHopOptionsField
941 def addfield(self, pkt, s, val): member in _PhantomAutoPadField
1849 def addfield(self, pkt, s, val): member in _IP6PrefixField
2294 def addfield(self, pkt, s, val): member in NIQueryDataField
2434 def addfield(self, pkt, s, val): member in NIReplyDataField
2966 def addfield(self, pkt, s, val): member in _MobilityOptionsField
Ddhcp.py269 lval = [f.addfield(pkt,b"",f.any2i(pkt,val)) for val in lval]