Home
last modified time | relevance | path

Searched refs:length_from (Results 1 – 25 of 64) sorted by relevance

123

/external/scapy/scapy/contrib/
Dtacacs.py137 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)]
217 length_from=lambda pkt: pkt.arg_cnt),
218 StrLenField('user', '', length_from=lambda x: x.user_len),
[all …]
Deigrp.py63 def __init__(self, name, default, length=None, length_from=None): argument
65 self.length_from = length_from
67 self.length_from = lambda pkt,length=length: length
74 l = self.length_from(pkt)
86 l = self.length_from(pkt)
110 l = self.length_from(pkt)
115 l = self.length_from(pkt)
131 def __init__(self, name, default, length=None, length_from=None): argument
133 self.length_from = length_from
135 self.length_from = lambda pkt,length=length: length
[all …]
Dikev2.py470 StrLenField("SPI","",length_from=lambda pkt:pkt.SPIsize),
471 …PacketLenField("trans",conf.raw_layer(),IKEv2_payload_Transform,length_from=lambda pkt:pkt.length-…
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),
580 …PacketListField("traffic_selector",None,TrafficSelector,length_from=lambda x:x.length-8,count_from…
592 …PacketListField("traffic_selector",None,TrafficSelector,length_from=lambda x:x.length-8,count_from…
602 StrLenField("vendorID","",length_from=lambda x:x.length-4),
612 … PacketLenField("prop",conf.raw_layer(),IKEv2_payload_Proposal,length_from=lambda x:x.length-4),
622 StrLenField("load","",length_from=lambda x:x.length-4),
[all …]
Dpnio_rtc.py72 StrFixedLenField("load", "", length_from=lambda p: p[PNIORealTimeRawData].length()),
118 def __init__(self, name, default, length_from=None, count_from=None): argument
120 self.length_from = length_from
128 if self.length_from is not None:
129 val = self.length_from(pkt, s)
210 NotionalLenField("len", None, length_from=lambda p, s: len(s)),
211 NotionalLenField("dataLen", None, length_from=lambda p, s: len(s[:-4].rstrip(b"\0"))),
212 …LowerLayerBoundPacketListField("data", [], _pnio_rtc_guess_payload_class, length_from=lambda p: p.…
213 StrFixedLenField("padding", "", length_from=lambda p: p[PNIORealTime].padding_length()),
444 def __init__(self, name, default, length=None, length_from=None): argument
[all …]
Dmqtt.py94 length_from=lambda pkt: pkt.length),
112 length_from=lambda pkt: pkt.clientIdlen),
117 length_from=lambda pkt: pkt.wtoplen),
122 length_from=lambda pkt: pkt.wmsglen),
127 length_from=lambda pkt: pkt.userlen),
132 length_from=lambda pkt: pkt.passlen),
159 length_from=lambda pkt: pkt.length),
164 length_from=lambda pkt: (pkt.underlayer.len -
203 length_from=lambda pkt: pkt.length),
Dospf.py117 …FieldListField("neighbors", [], IPField("", "0.0.0.0"), length_from=lambda pkt: (pkt.underlayer.le…
131 StrLenField("val", "", length_from=lambda x: x.len)]
158 StrLenField("authdata", b"\x00" * 16, length_from=lambda x: x.len)]
306 length_from=lambda pkt: pkt.linkcount * 12)]
321 length_from=lambda pkt: pkt.len - 24)]
384 length_from = lambda pkt: pkt.underlayer.len - 24 - 8)]
408 length_from = lambda pkt:pkt.underlayer.len - 24)]
416 length_from = lambda pkt: pkt.underlayer.len - 24)]
423 length_from = lambda pkt: pkt.underlayer.len - 24)]
483 length_from=lambda pkt: (pkt.underlayer.len - 36))]
[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) ]
Disis.py173 def __init__(self, name, default, length_from): argument
175 self.length_from = length_from
195 numbytes = self.length_from(pkt)
247 BoundStrLenField("val", "", length_from=lambda pkt: pkt.len)]
431 ISIS_AreaIdField("areaid", "49", length_from=lambda pkt: pkt.arealen)]
441 PacketListField("areas", [], ISIS_AreaEntry, length_from=lambda x: x.len)]
449 … BoundStrLenField("password", "", maxlen= 254, length_from=lambda pkt: pkt.len - 1)]
470 BoundStrLenField("hostname", "", length_from=lambda pkt: pkt.len)]
480 IPPrefixField("pfx", None, wordbytes=1, length_from=lambda x: x.pfxlen),
482 …ConditionalField(PacketListField("subtlvs", [], _ISIS_GuessSubTlvClass_2, length_from=lambda x: x.…
[all …]
Dopenflow3.py545 def __init__(self, name, default, cls, length_from=None, autocomplete=prereq_autocomplete): argument
546 PacketListField.__init__(self, name, default, cls, length_from=length_from)
595 lim = self.length_from(pkt)
626 lim = self.length_from(pkt)
661 length_from=lambda pkt:pkt.length-4) ]
930 length_from=lambda pkt:pkt.len-4,
1268 length_from=lambda pkt:pkt.len-8) ]
1276 length_from=lambda pkt:pkt.len-8) ]
1426 length_from=lambda pkt:pkt.len-16) ]
1519 length_from=lambda pkt:pkt.len-8) ]
[all …]
Dhomeplugav.py180 … StrLenField("DeviceVersion", b"NoVersion\x00", length_from = lambda pkt: pkt.VersionLen),
181 …StrLenField("DeviceVersion_pad", b"\xcc\xcc\xcc\xcc\xcc"+b"\x00"*59, length_from = lambda pkt: 64-…
269 …PacketListField("NetworksInfos", "", NetworkInfoV10, length_from=lambda pkt: pkt.LogicalNetworksNu…
271 …PacketListField("StationsInfos", "", StationInfoV10, length_from=lambda pkt: pkt.StationsNumber * …
281 …PacketListField("NetworksInfos", "", NetworkInfoV11, length_from=lambda pkt: pkt.LogicalNetworksNu…
284 …PacketListField("StationsInfos", "", StationInfoV11, length_from=lambda pkt: pkt.StationsNumber * …
440 StrLenField("MACData", b"\x00", length_from = lambda pkt: pkt.MACLen),
474 StrLenField("ModuleData", b"\x00", length_from = lambda pkt: pkt.DataLen),
497 StrLenField("ModuleData", b"\x00", length_from = lambda pkt: pkt.DataLen),
545 PacketListField("ClassifierObjs", "", ClassifierObj, length_from=lambda x: 24),
[all …]
Dsend.py63 StrLenField("nonce","", length_from = lambda pkt: pkt.len*8-2) ]
78 StrLenField("signature_pad", "", length_from = lambda pkt: pkt.len*8-20) ]
86 … StrLenField("CGA_PARAMS", "", length_from = lambda pkt: pkt.len*8 - pkt.padlength - 4),
87 StrLenField("padding", None, length_from = lambda pkt: pkt.padlength) ]
Dgtp_v2.py263 length_from=lambda pkt: pkt.length)]
270 StrLenField("data", "", length_from=lambda x: x.length)]
280 length_from=lambda x: x.length)]
312 length_from=lambda x: x.length)]
332 length_from=lambda x: x.length)]
514 length_from=len_options)]
525 length_from=len_options)]
568 length_from=lambda pkt: pkt.PeerID_length),
575 length_from=lambda pkt: pkt.Password_length),
594 length_from=lambda pkt: pkt.value_size),
[all …]
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)
/external/scapy/scapy/layers/
Dsctp.py246 def __init__(self, name, default, count_from=None, length_from=None): argument
247 …Field.__init__(self, name, default, conf.raw_layer, count_from=count_from, length_from=length_from)
265 length_from=lambda pkt: pkt.len-4),
283 length_from=lambda pkt: pkt.len-4),
291 length_from=lambda pkt: pkt.len-4),
304 length_from=lambda pkt: pkt.len-4),
313 length_from=lambda pkt: pkt.len-4),
325 length_from=lambda pkt: pkt.len-4),
334 length_from=lambda pkt: pkt.len-4),
343 length_from=lambda pkt: pkt.len-4),
[all …]
Dppp.py248 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) ]
304 … PacketListField("options", [], PPP_IPCP_Option, length_from=lambda p:p.len-4,) ]
316 StrLenField("data", "", length_from=lambda p:max(0,p.len-2)) ]
336 StrLenField("data", "", length_from=lambda p:p.len-6) ]
344 PacketListField("options", [], PPP_ECP_Option, length_from=lambda p:p.len-4,) ]
[all …]
Ddhcp6.py279 length_from = lambda pkt: pkt.optlen)]
283 def __init__(self, name, default, length_from=None): argument
285 self.length_from = length_from
298 l = self.length_from(pkt)
307 length_from = lambda pkt: pkt.optlen) ]
326 length_from = lambda pkt: pkt.optlen - 24) ]
337 l = self.length_from(pkt)
360 length_from = lambda pkt: pkt.optlen-12) ]
372 length_from = lambda pkt: pkt.optlen-4) ]
419 length_from = lambda pkt: pkt.optlen) ]
[all …]
Disakmp.py224 ISAKMPTransformSetField("transforms",None,length_from=lambda x:x.length-8)
254 StrLenField("SPI","",length_from=lambda x:x.SPIsize),
255 … PacketLenField("trans",conf.raw_layer(),ISAKMP_payload_Transform,length_from=lambda x:x.length-8),
265 StrLenField("load","",length_from=lambda x:x.length-4),
276 StrLenField("vendorID","",length_from=lambda x:x.length-4),
288 … PacketLenField("prop",conf.raw_layer(),ISAKMP_payload_Proposal,length_from=lambda x:x.length-12),
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),
Deap.py204 StrLenField("identity", '', length_from=lambda pkt: pkt.len - 5),
207 StrLenField("message", '', length_from=lambda pkt: pkt.len - 5),
295 XStrLenField("value", '', length_from=lambda p: p.value_size),
296 …XStrLenField("optional_name", '', length_from=lambda p: 0 if p.len is None or p.value_size is None…
317 …XStrLenField('tls_data', '', length_from=lambda pkt: 0 if pkt.len is None else pkt.len - (6 + 4 * …
340 …XStrLenField("data", "", length_from=lambda pkt: 0 if pkt.len is None else pkt.len - (6 + 4 * pkt.…
363 …XStrLenField('data', '', length_from=lambda pkt: 0 if pkt.len is None else pkt.len - (6 + 4 * pkt.…
382 XStrLenField("challenge_response", "", length_from=lambda p: 0 or p.count),
383 StrLenField("username", "", length_from=lambda p: p.len - (8 + (0 or p.count)))
494 length_from=lambda pkt: (pkt.param_set_body_len - 28)
Dinet6.py336 def __init__(self, name, default, count_from=None, length_from=None): argument
341 self.length_from = length_from
353 if self.length_from is not None:
354 l = self.length_from(pkt)
776 length_from = lambda pkt: pkt.optlen) ]
800 length_from = lambda pkt: pkt.optlen)]
855 def __init__(self, name, default, cls, curpos, count_from=None, length_from=None): argument
857 … PacketListField.__init__(self, name, default, cls, count_from=count_from, length_from=length_from)
870 if self.length_from is not None:
871 l = self.length_from(pkt)
[all …]
/external/scapy/scapy/layers/tls/
Dhandshake.py68 length_from=lambda pkt: pkt.msglen) ]
136 def __init__(self, name, default, dico, length_from=None, itemfmt="!H"): argument
137 StrLenField.__init__(self, name, default, length_from=length_from)
230 length_from=lambda pkt:pkt.sidlen),
236 length_from=lambda pkt: pkt.cipherslen),
242 length_from=
247 length_from=lambda pkt: (pkt.msglen -
318 length_from = lambda pkt: pkt.sidlen),
324 length_from=lambda pkt: 1),
328 length_from=lambda pkt: (pkt.msglen -
[all …]
Dextensions.py66 length_from=lambda pkt: pkt.len) ]
137 length_from=lambda pkt: pkt.namelen) ]
164 length_from=lambda pkt: pkt.servernameslen)]
209 StrLenField("dn", "", length_from=lambda pkt: pkt.dnlen) ]
243 length_from=lambda pkt: pkt.talen) ]
256 length_from=lambda pkt: pkt.respidlen)]
267 length_from=lambda pkt: pkt.respidlen),
290 length_from=lambda pkt: pkt.len - 1) ]
300 length_from=lambda pkt: pkt.umlen) ]
328 length_from=lambda pkt: pkt.ctypeslen) ]
[all …]
Dkeyexchange.py151 length_from=lambda pkt: pkt.sig_len) ]
208 def __init__(self, name, default, length_from=None, remain=0): argument
209 self.length_from = length_from
213 l = self.length_from(pkt)
242 def __init__(self, name, default, length_from=None, remain=0): argument
243 self.length_from = length_from
248 l = self.length_from(pkt)
288 length_from=lambda pkt: pkt.dh_plen),
291 length_from=lambda pkt: pkt.dh_glen),
294 length_from=lambda pkt: pkt.dh_Yslen) ]
[all …]
Dhandshake_sslv2.py79 def __init__(self, name, default, dico, length_from=None): argument
81 length_from=length_from)
115 length_from=lambda pkt:pkt.sidlen),
119 length_from=lambda pkt: pkt.cipherslen),
121 length_from=lambda pkt:pkt.challengelen) ]
137 if self.length_from is not None:
138 l = self.length_from(pkt)
175 length_from=lambda pkt: pkt.certlen),
177 length_from=lambda pkt: pkt.cipherslen),
179 length_from=lambda pkt: pkt.connection_idlen) ]
[all …]
Dkeyexchange_tls13.py41 length_from=lambda pkt: pkt.kxlen) ]
135 length_from=lambda pkt: pkt.client_shares_len) ]
233 length_from=lambda pkt: pkt.encstatelen),
238 def __init__(self, name, default, length_from=None, **kargs): argument
239 self.length_from = length_from
243 l = self.length_from(pkt)
252 length_from=lambda pkt: pkt.identity_len),
260 length_from=lambda pkt: pkt.binder_len) ]
270 length_from=lambda pkt: pkt.identities_len),
274 length_from=lambda pkt: pkt.binders_len) ]
/external/scapy/scapy/
Dfields.py440 def __init__(self, name, default, cls, length_from=None): argument
442 self.length_from = length_from
444 l = self.length_from(pkt)
462 … def __init__(self, name, default, cls=None, count_from=None, length_from=None, next_cls_cb=None): argument
521 self.length_from = length_from
542 if self.length_from is not None:
543 l = self.length_from(pkt)
589 def __init__(self, name, default, length=None, length_from=None): argument
591 self.length_from = length_from
593 self.length_from = lambda pkt,length=length: length
[all …]

123