Home
last modified time | relevance | path

Searched refs:StrLenField (Results 1 – 25 of 49) sorted by relevance

12

/external/scapy/scapy/contrib/
Dtacacs.py28 from scapy.fields import FieldLenField, ConditionalField, StrLenField
137 ConditionalField(StrLenField('user', '', length_from=lambda x: x.user_len),
139 StrLenField('port', '', length_from=lambda x: x.port_len),
140 StrLenField('rem_addr', '', length_from=lambda x: x.rem_addr_len),
141 StrLenField('data', '', length_from=lambda x: x.data_len)]
157 StrLenField('server_msg', '', length_from=lambda x: x.server_msg_len),
158 StrLenField('data', '', length_from=lambda x: x.data_len)]
173 StrLenField('user_msg', '', length_from=lambda x: x.user_msg_len),
174 StrLenField('data', '', length_from=lambda x: x.data_len)]
218 StrLenField('user', '', length_from=lambda x: x.user_len),
[all …]
Dmqtt.py8 from scapy.fields import FieldLenField, BitEnumField, StrLenField, \
93 StrLenField("protoname", "",
111 StrLenField("clientId", "",
116 ConditionalField(StrLenField("willtopic", "",
121 ConditionalField(StrLenField("willmsg", "",
126 ConditionalField(StrLenField("username", "",
131 ConditionalField(StrLenField("password", "",
158 StrLenField("topic", "",
163 StrLenField("value", "",
202 StrLenField("topic", "",
Dikev2.py470 StrLenField("SPI","",length_from=lambda pkt:pkt.SPIsize),
481 StrLenField("load","",length_from=lambda x:x.length-4),
494 StrLenField("load","",length_from=lambda x:x.length-8),
504 StrLenField("vendorID","",length_from=lambda x:x.length-4),
602 StrLenField("vendorID","",length_from=lambda x:x.length-4),
622 StrLenField("load","",length_from=lambda x:x.length-4),
635 StrLenField("SPI","",length_from=lambda x:x.SPIsize),
636 StrLenField("load","",length_from=lambda x:x.length-8),
648 StrLenField("load","",length_from=lambda x:x.length-8),
662 StrLenField("load","",length_from=lambda x:x.length-8),
[all …]
Dcdp.py106 StrLenField("val", "", length_from=lambda x:x.len - 4) ]
124 StrLenField("proto", None, length_from=lambda x:x.plen),
126 StrLenField("addr", None, length_from=lambda x:x.addrlen)]
135 StrLenField("proto", _cdp_addrrecord_proto_ip, length_from=lambda x:x.plen),
143 StrLenField("proto", _cdp_addrrecord_proto_ipv6, length_from=lambda x:x.plen),
182 StrLenField("iface", "Port 1", length_from=lambda x:x.len - 4) ]
229 StrLenField("data", "", length_from=lambda p: p.len - 9) ]
263 StrLenField("unknown2", "", length_from=lambda p: p.len - 7) ]
312 StrLenField("val", "", length_from=lambda x:x.len - 4) ]
Dsend.py63 StrLenField("nonce","", length_from = lambda pkt: pkt.len*8-2) ]
78 StrLenField("signature_pad", "", length_from = lambda pkt: pkt.len*8-20) ]
86StrLenField("CGA_PARAMS", "", length_from = lambda pkt: pkt.len*8 - pkt.padlength - 4),
87 StrLenField("padding", None, length_from = lambda pkt: pkt.padlength) ]
Ddtp.py44 StrLenField("value", "", length_from=lambda pkt:pkt.length - 4)
82 StrLenField("domain", b"\x00", length_from=lambda pkt:pkt.length - 4)
89 StrLenField("status", b"\x03", length_from=lambda pkt:pkt.length - 4)
96 StrLenField("dtptype", b"\xa5", length_from=lambda pkt:pkt.length - 4)
Drsvp.py152 fields_desc = [StrLenField("Data","",length_from= lambda pkt:pkt.underlayer.Length - 4)]
177 StrLenField("Tokens","",length_from= lambda pkt:pkt.underlayer.Length - 12) ]
194 StrLenField("Name","",length_from= lambda pkt:pkt.underlayer.Length - 8),
Dcoap.py135 StrLenField("delta_ext", None, length_from=_get_delta_ext_size),
136 StrLenField("len_ext", None, length_from=_get_len_ext_size),
137 StrLenField("opt_val", None, length_from=_get_opt_val_size)]
232 StrLenField("token", "", length_from=lambda pkt: pkt.tkl),
Dsebek.py43 StrLenField("data", "", length_from=lambda x:x.data_length) ]
59 StrLenField("data", "", length_from=lambda x:x.data_length) ]
Dlldp.py47 BitField, StrLenField, ByteEnumField, BitEnumField, \
362 StrLenField('id', '', length_from=lambda pkt: pkt._length - 1)
444 StrLenField('description', '', length_from=lambda pkt: pkt._length)
455 StrLenField('system_name', '', length_from=lambda pkt: pkt._length)
466 StrLenField('description', '', length_from=lambda pkt: pkt._length)
Dvtp.py88 StrLenField("value", None, length_from=lambda pkt : pkt.length + 1)
104StrLenField("vlanname", "default", length_from=lambda pkt:4 * ((pkt.vlannamelen + 3) / 4)),
Dwpa_eapol.py35 StrLenField("wpa_key", "", length_from=lambda pkt:pkt.wpa_key_length) ]
/external/scapy/scapy/layers/
Dppp.py24 StrFixedLenField, StrLenField, XByteField, XShortField, XStrLenField
248 StrLenField("data", "", length_from=lambda p:max(0,p.len-2)) ]
269 … ConditionalField(StrLenField("garbage","", length_from=lambda pkt:pkt.len-6), lambda p:p.len!=6) ]
276 … ConditionalField(StrLenField("garbage","", length_from=lambda pkt:pkt.len-6), lambda p:p.len!=6) ]
283 … ConditionalField(StrLenField("garbage","", length_from=lambda pkt:pkt.len-6), lambda p:p.len!=6) ]
290 … ConditionalField(StrLenField("garbage","", length_from=lambda pkt:pkt.len-6), lambda p:p.len!=6) ]
297 … ConditionalField(StrLenField("garbage","", length_from=lambda pkt:pkt.len-6), lambda p:p.len!=6) ]
316 StrLenField("data", "", length_from=lambda p:max(0,p.len-2)) ]
336 StrLenField("data", "", length_from=lambda p:p.len-6) ]
367 StrLenField("data", "",
[all …]
Disakmp.py105 class ISAKMPTransformSetField(StrLenField):
254 StrLenField("SPI","",length_from=lambda x:x.SPIsize),
265 StrLenField("load","",length_from=lambda x:x.length-4),
276 StrLenField("vendorID","",length_from=lambda x:x.length-4),
298 StrLenField("load","",length_from=lambda x:x.length-4),
308 StrLenField("load","",length_from=lambda x:x.length-4),
322 StrLenField("load","",length_from=lambda x:x.length-8),
334 StrLenField("load","",length_from=lambda x:x.length-4),
Dsctp.py264 PadField(StrLenField("data", "",
282 PadField(StrLenField("cookie", "",
290 PadField(StrLenField("param", "",
303 PadField(StrLenField("hostname", "",
324 PadField(StrLenField("random", RandBin(32),
398 PadField(StrLenField("error_causes", "",
504 PadField(StrLenField("data", None, length_from=lambda pkt: pkt.len-16),
586 PadField(StrLenField("error_causes", "", length_from=lambda pkt: pkt.len-4),
607 PadField(StrLenField("error_causes", "", length_from=lambda pkt: pkt.len-4),
615 PadField(StrLenField("cookie", "", length_from=lambda pkt: pkt.len-4),
[all …]
Dcan.py15 from scapy.fields import BitField, FieldLenField, FlagsField, StrLenField, \
32 StrLenField("data", "", length_from=lambda pkt: pkt.length),
Ddhcp6.py27 StrLenField, UTCTimeField, X3BytesField, XIntField, XShortEnumField, \
278 StrLenField("data", "",
325 StrLenField("iaaddropts", "",
377 class _OptReqListField(StrLenField):
493 StrLenField("authinfo", "",
530 StrLenField("statusmsg", "",
569 StrLenField("data", "",
606 StrLenField("optdata", "",
630 StrLenField("ifaceid", "",
700 StrLenField("iaprefopts", "",
[all …]
Dlltd.py18 PacketListField, StrLenField, StrLenFieldUtf16, ConditionalField, MACField
252 StrLenField("value", "", length_from=lambda pkt: pkt.len)
293 StrLenField("value", "", length_from=lambda pkt: pkt.len),
367 StrLenField("reserved2", "", length_from=lambda x: x.len - 2)
728 StrLenField("uuid", b"\x00" * 16, length_from=lambda pkt: pkt.len),
Ddns.py192 class RDataField(StrLenField):
358 StrLenField("optdata", "", length_from=lambda pkt: pkt.optlen) ]
620 StrLenField("salt", "", length_from=lambda x: x.saltlength),
622 StrLenField("nexthashedownername", "", length_from=lambda x: x.hashlength),
638 StrLenField("salt", "", length_from=lambda pkt: pkt.saltlength)
707 StrLenField("mac_data", "", length_from=lambda pkt: pkt.mac_len),
711 StrLenField("other_data", "", length_from=lambda pkt: pkt.other_len)
Deap.py16 ShortField, IntField, XIntField, ByteEnumField, StrLenField, XStrField,\
204 StrLenField("identity", '', length_from=lambda pkt: pkt.len - 5),
207 StrLenField("message", '', length_from=lambda pkt: pkt.len - 5),
383 StrLenField("username", "", length_from=lambda p: p.len - (8 + (0 or p.count)))
Dradius.py17 from scapy.fields import ByteField, ByteEnumField, IntField, StrLenField,\
233 StrLenField("value", "", length_from=lambda pkt: pkt.len - 2)
1053 StrLenField("value", "", length_from=lambda p: p.vendor_len - 2)
/external/scapy/scapy/layers/tls/
Dkeyexchange.py117 class SigValField(StrLenField):
287 StrLenField("dh_p", "",
290 StrLenField("dh_g", "",
293 StrLenField("dh_Ys", "",
380 StrLenField("a", "", length_from = lambda pkt: pkt.alen),
382 StrLenField("b", "", length_from = lambda pkt: pkt.blen) ]
391 StrLenField("k", "", length_from = lambda pkt: pkt.klen) ]
399 StrLenField("k1", "", length_from=lambda pkt: pkt.k1len),
401 StrLenField("k2", "", length_from=lambda pkt: pkt.k2len),
403 StrLenField("k3", "", length_from=lambda pkt: pkt.k3len) ]
[all …]
Dextensions.py65 StrLenField("val", "",
136 StrLenField("servername", "",
209 StrLenField("dn", "", length_from=lambda pkt: pkt.dnlen) ]
255 StrLenField("respid", "",
407 StrLenField("protocol", "",
430 StrLenField("padding", "",
454 StrLenField("ticket", "",
535 StrLenField("renegotiated_connection", "",
613 class _ExtensionsField(StrLenField):
Dhandshake.py67 StrLenField("msg", "",
126 class _SessionIDField(StrLenField):
133 class _CipherSuitesField(StrLenField):
137 StrLenField.__init__(self, name, default, length_from=length_from)
503 class _ASN1CertListField(StrLenField):
555 class _ASN1CertField(StrLenField):
643 StrLenField("cert_req_ctxt", "",
773 class _CertAuthoritiesField(StrLenField):
954 class _VerifyDataField(StrLenField):
1047 StrLenField("cookie", "",
[all …]
Dtools.py12 FieldLenField, StrLenField)
24 StrLenField("fragment", "",

12