Home
last modified time | relevance | path

Searched refs:ConditionalField (Results 1 – 25 of 37) sorted by relevance

12

/external/scapy/scapy/contrib/
Dhomeplugav.py685 ConditionalField(XByteField("FirmwareMajorVersion", 0x00),
687 ConditionalField(XByteField("PIBMinorVersion", 0x00),
689 ConditionalField(XShortField("reserved_1" , 0x0000),
691 ConditionalField(XShortField("PIBLength" , 0x0000),
693 ConditionalField(XShortField("reserved_2" , 0x0000),
695 ConditionalField(LEIntField("checksumPIB", None),
697 ConditionalField(MACField("PIBMACAddr", "00:00:00:00:00:00"),
699 ConditionalField(StrFixedLenField("DAK",
703 ConditionalField(XShortField("reserved_3" , 0x0000),
705 ConditionalField(StrFixedLenField("ManufactorID",
[all …]
Dgtp.py210ConditionalField(XBitField("seq", 0, 16), lambda pkt:pkt.E==1 or pkt.S==1 or pkt.PN==1),
211ConditionalField(ByteField("npdu", 0), lambda pkt:pkt.E==1 or pkt.S==1 or pkt.PN==1),
212ConditionalField(ByteEnumField("next_ex", 0, ExtensionHeadersTypes), lambda pkt:pkt.E==1 or pkt.S=…
398 ConditionalField(IPField("PDPAddress", RandIP()),
491 ConditionalField(XBitField("spare", 0x00, 2),
493 ConditionalField(XBitField("delay_class", 0x000, 3),
495 ConditionalField(XBitField("reliability_class", 0x000, 3),
498 ConditionalField(XBitField("peak_troughput", 0x0000, 4),
500 ConditionalField(BitField("spare", 0, 1),
502 ConditionalField(XBitField("precedence_class", 0x000, 3),
[all …]
Dgtp_v2.py98 ConditionalField(IntField("teid", 0),
230 ConditionalField(
232 ConditionalField(
234 ConditionalField(
236 ConditionalField(PacketField("ECGI", 0, ULI_ECGI),
250 ConditionalField(
252 ConditionalField(XBitField("ipv6", "2001::", 128),
358 ConditionalField(
360 ConditionalField(
362 ConditionalField(
[all …]
Dvtp.py105 ConditionalField(PacketListField("tlvlist", [], VTPVlanInfoTlv,
148 ConditionalField(ByteField("followers", 1),
150 ConditionalField(ByteField("seq", 1),
152 ConditionalField(ByteField("reserved", 0),
156 ConditionalField(SignedIntField("rev", 0),
160 ConditionalField(IPField("uid", "192.168.0.1"),
162 ConditionalField(VTPTimeStampField("timestamp", '930301000000'),
164 ConditionalField(StrFixedLenField("md5", b"\x00" * 16, 16),
166 ConditionalField(
169 ConditionalField(ShortField("startvalue", 0),
Dchdlc.py36 ConditionalField(IPField("address", "192.168.0.1"),
38 ConditionalField(IPField("mask", "255.255.255.0"),
40 ConditionalField(XShortField("unused", 0),
42 ConditionalField(IntField("mysequence", 0),
44 ConditionalField(IntField("yoursequence", 0),
46 ConditionalField(XShortField("reliability", 0xffff),
Dmqtt.py9 ShortField, ConditionalField, ByteEnumField, ByteField, StrNullField
114 ConditionalField(FieldLenField("wtoplen", None, length_of="willtopic"),
116 ConditionalField(StrLenField("willtopic", "",
119 ConditionalField(FieldLenField("wmsglen", None, length_of="willmsg"),
121 ConditionalField(StrLenField("willmsg", "",
124 ConditionalField(FieldLenField("userlen", None, length_of="username"),
126 ConditionalField(StrLenField("username", "",
129 ConditionalField(FieldLenField("passlen", None, length_of="password"),
131 ConditionalField(StrLenField("password", "",
160 ConditionalField(ShortField("msgid", None),
Dnsh.py21 from scapy.fields import ConditionalField, PacketListField, BitFieldLenField
76 ConditionalField(XIntField('NPC', 0), lambda pkt: pkt.MDType == 1),
77 ConditionalField(XIntField('NSC', 0), lambda pkt: pkt.MDType == 1),
78 ConditionalField(XIntField('SPC', 0), lambda pkt: pkt.MDType == 1),
79 ConditionalField(XIntField('SSC', 0), lambda pkt: pkt.MDType == 1),
80 ConditionalField(PacketListField("ContextHeaders", None,
Dicmp_extensions.py135 ConditionalField(
139 ConditionalField(
142 ConditionalField(
145 ConditionalField(
148 ConditionalField(
152 ConditionalField(
156 ConditionalField(
161 ConditionalField(
Dospf.py67 ConditionalField(XLongField("authdata", 0), lambda pkt:pkt.authtype != 2),
69 ConditionalField(XShortField("reserved", 0), lambda pkt:pkt.authtype == 2),
70 ConditionalField(ByteField("keyid", 1), lambda pkt:pkt.authtype == 2),
71 ConditionalField(ByteField("authdatalen", 0), lambda pkt:pkt.authtype == 2),
72 ConditionalField(XIntField("seq", 0), lambda pkt:pkt.authtype == 2),
253 ConditionalField(ByteField("tos", 0), lambda pkt: False),
254 ConditionalField(ByteField("reserved", 0), lambda pkt: False),
255 ConditionalField(ShortField("tosmetric", 0), lambda pkt: False)]
338 ConditionalField(ByteField("tos", 0), lambda pkt:False),
339 ConditionalField(X3BytesField("tosmetric", 0), lambda pkt:False)]
[all …]
Dvqp.py50 ConditionalField(IPField("datatom", "0.0.0.0"),
52 ConditionalField(MACField("data", "00:00:00:00:00:00"),
54 ConditionalField(MACField("data", "00:00:00:00:00:00"),
56 ConditionalField(StrLenField("data", None,
Dgsm_um.py3720 ConditionalField(BitField("spare", 0x0, 39),
3722 ConditionalField(BitField("spare", 0x0, 3),
3724 ConditionalField(BitField("priority", 0x0, 2),
3726 ConditionalField(BitField("rlcMode", 0x0, 1),
3728 ConditionalField(BitField("llcFrame", 0x1, 1),
3730 ConditionalField(ByteField("reqBandMsb", 0x0),
3732 ConditionalField(ByteField("reqBandLsb", 0x0),
3734 ConditionalField(ByteField("rlcMsb", 0x0),
3736 ConditionalField(ByteField("rlcLsb", 0x0),
3914 ConditionalField(BitField("spare", 0x0, 2),
[all …]
Dripng.py36 ConditionalField(IP6Field("prefix", "::"),
38 ConditionalField(IP6Field("nexthop", "::"),
Disis.py481ConditionalField(FieldLenField("subtlvslen", None, length_of="subtlvs", fmt= "B"), lambda pkt: pkt…
482ConditionalField(PacketListField("subtlvs", [], _ISIS_GuessSubTlvClass_2, length_from=lambda x: x.…
542ConditionalField(FieldLenField("subtlvslen", None, length_of="subtlvs", fmt= "B"), lambda pkt: pkt…
543ConditionalField(PacketListField("subtlvs", [], _ISIS_GuessSubTlvClass_2, length_from=lambda x: x.…
603 ConditionalField(IntField("extlocalcircuitid", None), lambda pkt: pkt.len >= 5),
604ConditionalField(ISIS_SystemIdField("neighboursystemid", None), lambda pkt: pkt.len >= 11),
605ConditionalField(IntField("neighbourextlocalcircuitid", None), lambda pkt: pkt.len == 15)]
Dbgp.py34 IPField, FlagsField, ConditionalField,
640 ConditionalField(
889 ConditionalField(
899 ConditionalField(
1844 ConditionalField(IPField("nh_v4_addr", "0.0.0.0"),
1846 ConditionalField(IP6Field("nh_v6_addr", "::"),
1848 ConditionalField(IP6Field("nh_v6_global", "::"),
1850 ConditionalField(IP6Field("nh_v6_link_local", "::"),
2023 ConditionalField(
2028 ConditionalField(
/external/scapy/scapy/layers/
Drip.py46 ConditionalField(StrFixedLenField("password", None, 16),
48 ConditionalField(ShortField("digestoffset", 0),
50 ConditionalField(ByteField("keyid", 0),
52 ConditionalField(ByteField("authdatalen", 0),
54 ConditionalField(IntField("seqnum", 0),
56 ConditionalField(StrFixedLenField("zeropad", None, 8),
58 ConditionalField(StrLenField("authdata", None,
Dvxlan.py15 ConditionalField, ShortField, ByteEnumField, X3BytesField
27 ConditionalField(
31 ConditionalField(
40 ConditionalField(
44 ConditionalField(
48 ConditionalField(
Dl2tp.py27 ConditionalField(ShortField("len", 0),
31 ConditionalField(ShortField("ns", 0),
33 ConditionalField(ShortField("nr", 0),
35 ConditionalField(
Deap.py18 PacketListField, ConditionalField, PadField
198 ConditionalField(ByteEnumField("type", 0, eap_types),
201 ConditionalField(ByteEnumField("desired_auth_type", 0, eap_types),
203 ConditionalField(
206 ConditionalField(
316 ConditionalField(IntField('tls_message_len', 0), lambda pkt: pkt.L == 1),
339 ConditionalField(IntField("message_len", 0), lambda pkt: pkt.L == 1),
362 ConditionalField(IntField('message_len', 0), lambda pkt: pkt.L == 1),
628 ConditionalField(
Dppp.py22 ConditionalField, FieldLenField, IntField, IPField, \
269ConditionalField(StrLenField("garbage","", length_from=lambda pkt:pkt.len-6), lambda p:p.len!=6) ]
276ConditionalField(StrLenField("garbage","", length_from=lambda pkt:pkt.len-6), lambda p:p.len!=6) ]
283ConditionalField(StrLenField("garbage","", length_from=lambda pkt:pkt.len-6), lambda p:p.len!=6) ]
290ConditionalField(StrLenField("garbage","", length_from=lambda pkt:pkt.len-6), lambda p:p.len!=6) ]
297ConditionalField(StrLenField("garbage","", length_from=lambda pkt:pkt.len-6), lambda p:p.len!=6) ]
466 ConditionalField(StrLenField("data", '', length_from=lambda p:p.len-4),
468 ConditionalField(ByteEnumField("algorithm", 5, _PPP_LCP_CHAP_algorithms),
Dsctp.py371 ConditionalField(
374 ConditionalField(
386 ConditionalField(
389 ConditionalField(
410 ConditionalField(
413 ConditionalField(
Dntp.py21 PacketListField, FieldListField, ConditionalField, PadField)
448 ConditionalField(IPField("id", "127.0.0.1"), lambda p: p.stratum > 1),
449 ConditionalField(
817 ConditionalField(NTPControlStatusField(
819 ConditionalField(ShortField("status", 0), lambda p: p.response == 0),
1802 ConditionalField(
1813 ConditionalField(
1824 ConditionalField(PacketField("authenticator", "", NTPPrivatePktTail),
Dl2.py338ConditionalField(XShortField("chksum",None), lambda pkt:pkt.chksum_present==1 or pkt.routing_prese…
339ConditionalField(XShortField("offset",None), lambda pkt:pkt.chksum_present==1 or pkt.routing_prese…
340 ConditionalField(XIntField("key",None), lambda pkt:pkt.key_present==1),
341ConditionalField(XIntField("seqence_number",None), lambda pkt:pkt.seqnum_present==1),
378ConditionalField(XIntField("seqence_number", None), lambda pkt: pkt.seqnum_present == 1),
379ConditionalField(XIntField("ack_number", None), lambda pkt: pkt.acknum_present == 1)]
Ddot11.py123 ConditionalField(
128 ConditionalField(
132 ConditionalField(LEShortField("SC", 0), lambda pkt: pkt.type != 1),
133 ConditionalField(
Dinet.py678ConditionalField(XShortField("id",0), lambda pkt:pkt.type in [0,8,13,14,15,16,17,18]),
679ConditionalField(XShortField("seq",0), lambda pkt:pkt.type in [0,8,13,14,15,16,17,18]),
680ConditionalField(ICMPTimeStampField("ts_ori", None), lambda pkt:pkt.type in [13,14]),
681ConditionalField(ICMPTimeStampField("ts_rx", None), lambda pkt:pkt.type in [13,14]),
682ConditionalField(ICMPTimeStampField("ts_tx", None), lambda pkt:pkt.type in [13,14]),
683 ConditionalField(IPField("gw","0.0.0.0"), lambda pkt:pkt.type==5),
684 ConditionalField(ByteField("ptr",0), lambda pkt:pkt.type==12),
685 ConditionalField(ByteField("reserved",0), lambda pkt:pkt.type in [3,11]),
686 ConditionalField(ByteField("length",0), lambda pkt:pkt.type in [3,11,12]),
687ConditionalField(IPField("addr_mask","0.0.0.0"), lambda pkt:pkt.type in [17,18]),
[all …]
Dlltd.py18 PacketListField, StrLenField, StrLenFieldUtf16, ConditionalField, MACField
86 ConditionalField(ShortField("xid", 0),
88 ConditionalField(ShortField("seq", 0),

12