Home
last modified time | relevance | path

Searched refs:ByteEnumField (Results 1 – 25 of 60) sorted by relevance

123

/external/scapy/scapy/contrib/
Dopenflow.py499 fields_desc = [ ByteEnumField("version", 0x01, ofp_version),
500 ByteEnumField("type", 0, ofp_type),
531 fields_desc = [ ByteEnumField("version", 0x01, ofp_version),
532 ByteEnumField("type", 1, ofp_type),
543 fields_desc = [ ByteEnumField("version", 0x01, ofp_version),
544 ByteEnumField("type", 1, ofp_type),
562 fields_desc = [ ByteEnumField("version", 0x01, ofp_version),
563 ByteEnumField("type", 1, ofp_type),
581 fields_desc = [ ByteEnumField("version", 0x01, ofp_version),
582 ByteEnumField("type", 1, ofp_type),
[all …]
Dikev2.py412 ByteEnumField("next_payload",0,IKEv2_payload_type),
414 ByteEnumField("exch_type",0,IKEv2_exchange_type),
451 ByteEnumField("next_payload",None,{0:"last", 3:"Transform"}),
454 ByteEnumField("transform_type",None,IKEv2Transforms),
463 ByteEnumField("next_payload",None,{0:"last", 2:"Proposal"}),
467 ByteEnumField("proto",1,{1:"IKEv2", 2:"AH", 3:"ESP"}),
478 ByteEnumField("next_payload",None,IKEv2_payload_type),
489 ByteEnumField("next_payload",None,IKEv2_payload_type),
492 ByteEnumField("auth_type",None,IKEv2AuthenticationTypes),
501 ByteEnumField("next_payload",None,IKEv2_payload_type),
[all …]
Dopenflow3.py1251 ByteEnumField("table_id", 0, ofp_table),
1646 fields_desc = [ ByteEnumField("version", 0x04, ofp_version),
1647 ByteEnumField("type", 0, ofp_type),
1689 fields_desc = [ ByteEnumField("version", 0x04, ofp_version),
1690 ByteEnumField("type", 1, ofp_type),
1701 fields_desc = [ ByteEnumField("version", 0x04, ofp_version),
1702 ByteEnumField("type", 1, ofp_type),
1725 fields_desc = [ ByteEnumField("version", 0x04, ofp_version),
1726 ByteEnumField("type", 1, ofp_type),
1751 fields_desc = [ ByteEnumField("version", 0x04, ofp_version),
[all …]
Dgtp.py190 ByteEnumField("next_ex", 0, ExtensionHeadersTypes), ]
195 ByteEnumField("next_ex", 0, ExtensionHeadersTypes), ]
207 ByteEnumField("gtp_type", None, GTPmessageType),
212 …ConditionalField(ByteEnumField("next_ex", 0, ExtensionHeadersTypes), lambda pkt:pkt.E==1 or pkt.S=…
277 fields_desc = [ByteEnumField("ietype", 1, IEType),
278 ByteEnumField("CauseValue", None, CauseValues)]
283 fields_desc = [ByteEnumField("ietype", 2, IEType),
289 fields_desc = [ ByteEnumField("ietype", 3, IEType),
300 fields_desc = [ByteEnumField("ietype", 8, IEType),
301 ByteEnumField("reordering_required", 254, TrueFalse_value)]
[all …]
Dtacacs.py26 from scapy.fields import ByteEnumField, ByteField, IntField
129 fields_desc = [ByteEnumField('action', 1, TACACSAUTHENACTION),
130 ByteEnumField('priv_lvl', 1, TACACSPRIVLEVEL),
131 ByteEnumField('authen_type', 1, TACACSAUTHENTYPE),
132 ByteEnumField('authen_service', 1, TACACSAUTHENSERVICE),
153 fields_desc = [ByteEnumField('status', 1, TACACSREPLYPASS),
154 ByteEnumField('flags', 0, TACACSREPLYFLAGS),
172 ByteEnumField('flags', 1, TACACSCONTINUEFLAGS),
208 fields_desc = [ByteEnumField('authen_method', 0, TACACSAUTHORTYPE),
209 ByteEnumField('priv_lvl', 1, TACACSPRIVLEVEL),
[all …]
Dgtp_v2.py96 ByteEnumField("gtp_type", None, GTPmessageType),
122 fields_desc = [ByteEnumField("ietype", 74, IEType),
131 fields_desc = [ByteEnumField("ietype", 75, IEType),
154 fields_desc = [ByteEnumField("ietype", 73, IEType),
163 fields_desc = [ByteEnumField("ietype", 82, IEType),
167 ByteEnumField("RAT_type", None, RATType)]
172 fields_desc = [ByteEnumField("ietype", 83, IEType),
219 fields_desc = [ByteEnumField("ietype", 86, IEType),
242 fields_desc = [ByteEnumField("ietype", 87, IEType),
258 fields_desc = [ByteEnumField("ietype", 93, IEType),
[all …]
Dmodbus.py62 ByteEnumField("exceptCode", 1, _modbus_exceptions)]
92 ByteEnumField("exceptCode", 1, _modbus_exceptions)]
116 ByteEnumField("exceptCode", 1, _modbus_exceptions)]
140 ByteEnumField("exceptCode", 1, _modbus_exceptions)]
160 ByteEnumField("exceptCode", 1, _modbus_exceptions)]
183 ByteEnumField("exceptCode", 1, _modbus_exceptions)]
203 ByteEnumField("exceptCode", 1, _modbus_exceptions)]
228 ByteEnumField("exceptCode", 1, _modbus_exceptions)]
251 ByteEnumField("exceptCode", 1, _modbus_exceptions)]
274 ByteEnumField("exceptCode", 1, _modbus_exceptions)]
[all …]
Disis.py287 fields_desc = [ByteEnumField("type", 6, _isis_subtlv_names_1),
294 fields_desc = [ByteEnumField("type", 8, _isis_subtlv_names_1),
301 fields_desc = [ByteEnumField("type", 4, _isis_subtlv_names_1),
309 fields_desc = [ByteEnumField("type", 12, _isis_subtlv_names_1),
316 fields_desc = [ByteEnumField("type", 13, _isis_subtlv_names_1),
341 fields_desc = [ByteEnumField("type", 1, _isis_subtlv_names_2),
348 fields_desc = [ByteEnumField("type", 2, _isis_subtlv_names_2),
439 fields_desc = [ByteEnumField("type", 1, _isis_tlv_names),
446 fields_desc = [ByteEnumField("type", 10, _isis_tlv_names),
448 ByteEnumField("authtype", 1, {1: "Plain", 17: "HMAC-MD5"}),
[all …]
Dbgp.py30 ByteEnumField, ShortField, ShortEnumField, IntField,
399 ByteEnumField("type", 4, _bgp_message_types)
638 ByteEnumField("code", 0, _capabilities),
664 ByteEnumField("code", 1, _capabilities),
668 ByteEnumField("safi", 0, subsequent_afis)
704 ByteEnumField("orf_type", 0, _orf_types),
705 ByteEnumField("send_receive", 0, send_receive_values)
712 ByteEnumField("safi", 0, subsequent_afis),
772 ByteEnumField("code", 3, _capabilities),
804 ByteEnumField("safi", 0, subsequent_afis),
[all …]
Dhomeplugav.py168 fields_desc=[ ByteEnumField("version",0, HPAVversionList),
177 fields_desc=[ ByteEnumField("Status", 0x0, StatusCodes),
178 ByteEnumField("DeviceID",0x20, HPAVDeviceIDList),
182 ByteEnumField("Upgradable", 0, {0:"False",1:"True"}) ]
199 ByteEnumField("StationRole", 0x00, StationRole),
233 ByteEnumField("StationRole", 0x00, StationRole),
296 fields_desc=[ ByteEnumField("ActionRequired", 0x02, ActionsList) ]
307 fields_desc=[ ByteEnumField("Status", 0x0, StatusCodes),
333 fields_desc=[ ByteEnumField("Status", 0x0, SetEncKey_Status) ]
341 fields_desc=[ ByteEnumField("Status", 0x0, StatusCodes) ] #TODO : Probably a Status bytefield?
[all …]
Dvqp.py26 ByteEnumField("type", 1, {
30 ByteEnumField("errorcodeaction", 0, {
34 ByteEnumField("unknown", 2, {
/external/scapy/scapy/layers/
Dppp.py21 from scapy.fields import BitField, ByteEnumField, ByteField, \
31 ByteEnumField("code", 0, {0:"Session"}),
46ByteEnumField("code", 0x09, {0x09:"PADI",0x07:"PADO",0x19:"PADR",0x65:"PADS",0xa7:"PADT"}),
246 fields_desc = [ ByteEnumField("type" , None , _PPP_ipcpopttypes),
266 fields_desc = [ ByteEnumField("type" , 3 , _PPP_ipcpopttypes),
273 fields_desc = [ ByteEnumField("type" , 129 , _PPP_ipcpopttypes),
280 fields_desc = [ ByteEnumField("type" , 131 , _PPP_ipcpopttypes),
287 fields_desc = [ ByteEnumField("type" , 130 , _PPP_ipcpopttypes),
294 fields_desc = [ ByteEnumField("type" , 132 , _PPP_ipcpopttypes),
301 fields_desc = [ ByteEnumField("code" , 1, _PPP_conftypes),
[all …]
Deap.py15 from scapy.fields import BitField, ByteField, XByteField, ByteEnumField,\
16 ShortField, IntField, XIntField, ByteEnumField, StrLenField, XStrField,\
68 ByteEnumField("version", 1, eapol_versions),
69 ByteEnumField("type", 0, eapol_types),
195 ByteEnumField("code", 4, eap_codes),
198 ConditionalField(ByteEnumField("type", 0, eap_types),
201 ConditionalField(ByteEnumField("desired_auth_type", 0, eap_types),
289 ByteEnumField("code", 1, eap_codes),
293 ByteEnumField("type", 4, eap_types),
307 ByteEnumField("code", 1, eap_codes),
[all …]
Dsmb.py19 ByteEnumField("Command",0x25,{0x25:"Trans"}),
63 …fields_desc = [ByteEnumField("Command", 0x17, {0x12:"SAM logon request", 0x17:"SAM Active director…
107 fields_desc = [ByteEnumField("Command",0x06,{0x06:"LM 2.0 Response to logon request"}),
117 ByteEnumField("Command",0x72,{0x72:"SMB_COM_NEGOTIATE"}),
143 ByteEnumField("Command",0x72,{0x72:"SMB_COM_NEGOTIATE"}),
184 ByteEnumField("Command",0x72,{0x72:"SMB_COM_NEGOTIATE"}),
225 ByteEnumField("Command",0x72,{0x72:"SMB_COM_NEGOTIATE"}),
265 ByteEnumField("Command",0x73,{0x73:"SMB_COM_SESSION_SETUP_ANDX"}),
279 ByteEnumField("AndXCommand",0x75,{0x75:"SMB_COM_TREE_CONNECT_ANDX"}),
302 ByteEnumField("AndXCommand2",0xFF,{0xFF:"SMB_COM_NONE"}),
[all …]
Disakmp.py187 ByteEnumField("next_payload",0,ISAKMP_payload_type),
189 ByteEnumField("exch_type",0,ISAKMP_exchange_type),
217 ByteEnumField("next_payload",None,ISAKMP_payload_type),
222 ByteEnumField("id",1,{1:"KEY_IKE"}),
247 ByteEnumField("next_payload",None,ISAKMP_payload_type),
251 ByteEnumField("proto",1,{1:"ISAKMP"}),
262 ByteEnumField("next_payload",None,ISAKMP_payload_type),
273 ByteEnumField("next_payload",None,ISAKMP_payload_type),
283 ByteEnumField("next_payload",None,ISAKMP_payload_type),
295 ByteEnumField("next_payload",None,ISAKMP_payload_type),
[all …]
Dpptp.py15 from scapy.fields import ByteEnumField, FieldLenField, FlagsField, IntField, IntEnumField,\
117 ByteEnumField("result_code", 1,
119 ByteEnumField("error_code", 0, _PPTP_general_error_code),
145 ByteEnumField("reason", 1,
161 ByteEnumField("result_code", 1,
163 ByteEnumField("error_code", 0, _PPTP_general_error_code),
191 ByteEnumField("result_code", 1, _PPTP_echo_result),
192 ByteEnumField("error_code", 0, _PPTP_general_error_code),
245 ByteEnumField("result_code", 1, _PPTP_result_code),
246 ByteEnumField("error_code", 0, _PPTP_general_error_code),
[all …]
Dbluetooth.py75 fields_desc = [ ByteEnumField("type", 2, _bluetooth_packet_types) ]
128 ByteEnumField("code",8,{1:"rej",2:"conn_req",3:"conn_resp",
341 …fields_desc = [ ByteEnumField("iocap", 3, {0:"DisplayOnly", 1:"DisplayYesNo", 2:"KeyboardOnly", 3:…
342 ByteEnumField("oob", 0, {0:"Not Present", 1:"Present (from remote device)"}),
350 …fields_desc = [ ByteEnumField("iocap", 3, {0:"DisplayOnly", 1:"DisplayYesNo", 2:"KeyboardOnly", 3:…
351 ByteEnumField("oob", 0, {0:"Not Present", 1:"Present (from remote device)"}),
385 fields_desc = [ ByteEnumField("atype", 0, {0:"public"}),
397 ByteEnumField("type", 0, {
514 fields_desc = [ ByteEnumField("type", 0, {0:"clear"}), ]
535 fields_desc = [ ByteEnumField("type", 1, {1:"active"}),
[all …]
Dsctp.py333 ByteEnumField("chunk", None, sctpchunktypes),
354 ByteEnumField("supported_extensions",
493 fields_desc = [ ByteEnumField("type", 0, sctpchunktypes),
510 fields_desc = [ ByteEnumField("type", 1, sctpchunktypes),
522 fields_desc = [ ByteEnumField("type", 2, sctpchunktypes),
550 fields_desc = [ ByteEnumField("type", 3, sctpchunktypes),
568 fields_desc = [ ByteEnumField("type", 4, sctpchunktypes),
575 fields_desc = [ ByteEnumField("type", 5, sctpchunktypes),
582 fields_desc = [ ByteEnumField("type", 6, sctpchunktypes),
591 fields_desc = [ ByteEnumField("type", 7, sctpchunktypes),
[all …]
Dpflog.py22 ByteEnumField("addrfamily", 2, {socket.AF_INET: "IPv4",
24 ByteEnumField("action", 1, {0: "pass", 1: "drop",
30 ByteEnumField("reason", 0, {0: "match", 1: "bad-offset",
50 ByteEnumField("direction", 255, {0: "inout", 1: "in",
Dhsrp.py45 ByteEnumField("opcode", 0, {0: "Hello", 1: "Coup", 2: "Resign", 3: "Advertise"}),
46ByteEnumField("state", 16, {0: "Initial", 1: "Learn", 2: "Listen", 4: "Speak", 8: "Standby", 16: "…
65 ByteEnumField("type", 4, {4: "MD5 authentication"}),
67 ByteEnumField("algo", 0, {1: "MD5"}),
Dinet6.py55 from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, \
414 ByteEnumField("nh", 59, ipv6nh),
749 class _OTypeField(ByteEnumField):
955 fields_desc = [ ByteEnumField("nh", 59, ipv6nh),
968 fields_desc = [ ByteEnumField("nh", 59, ipv6nh),
981 fields_desc = [ ByteEnumField("nh", 59, ipv6nh),
1053 fields_desc = [ ByteEnumField("nh", 59, ipv6nh),
1105 fields_desc = [ ByteEnumField("nh", 59, ipv6nh),
1430 fields_desc = [ ByteEnumField("type",1, icmp6types),
1440 fields_desc = [ ByteEnumField("type",1, icmp6types),
[all …]
Dradius.py17 from scapy.fields import ByteField, ByteEnumField, IntField, StrLenField,\
230 ByteEnumField("type", 1, _radius_attribute_types),
315 ByteEnumField("type", 5, _radius_attribute_types),
514 ByteEnumField("type", 24, _radius_attribute_types),
553 ByteEnumField("type", 24, _radius_attribute_types),
587 ByteEnumField("type", 4, _radius_attribute_types),
965 ByteEnumField("type", 6, _radius_attribute_types),
1017 ByteEnumField("type", 79, _radius_attribute_types),
1036 ByteEnumField("type", 26, _radius_attribute_types),
1137 ByteEnumField("code", 1, _packet_codes),
/external/scapy/scapy/layers/tls/
Dhandshake_sslv2.py45 fields_desc = [ ByteEnumField("msgtype", None, _sslv2_handshake_type) ]
70 fields_desc = [ ByteEnumField("msgtype", 0, _sslv2_handshake_type),
104 fields_desc = [ ByteEnumField("msgtype", 1, _sslv2_handshake_type),
161 fields_desc = [ ByteEnumField("msgtype", 4, _sslv2_handshake_type),
164 ByteEnumField("certtype", 1, {1: "x509_cert"}),
235 fields_desc = [ ByteEnumField("msgtype", 2, _sslv2_handshake_type),
391 fields_desc = [ ByteEnumField("msgtype", 5, _sslv2_handshake_type),
418 fields_desc = [ ByteEnumField("msgtype", 7, _sslv2_handshake_type),
419 ByteEnumField("authtype", 1, {1: "md5_with_rsa"}),
436 fields_desc = [ ByteEnumField("msgtype", 8, _sslv2_handshake_type),
[all …]
Dhandshake.py65 fields_desc = [ ByteEnumField("msgtype", None, _tls_handshake_type),
94 fields_desc = [ ByteEnumField("msgtype", 0, _tls_handshake_type),
220 fields_desc = [ ByteEnumField("msgtype", 1, _tls_handshake_type),
308 fields_desc = [ ByteEnumField("msgtype", 2, _tls_handshake_type),
397 fields_desc = [ ByteEnumField("msgtype", 2, _tls_handshake_type),
452 fields_desc = [ ByteEnumField("msgtype", 6, _tls_handshake_type),
466 fields_desc = [ ByteEnumField("msgtype", 8, _tls_handshake_type),
601 fields_desc = [ ByteEnumField("msgtype", 11, _tls_handshake_type),
639 fields_desc = [ ByteEnumField("msgtype", 11, _tls_handshake_type),
668 fields_desc = [ ByteEnumField("msgtype", 12, _tls_handshake_type),
[all …]
Dextensions.py134 fields_desc = [ ByteEnumField("nametype", 0, _tls_server_name_types),
171 ByteEnumField("maxfraglen", 4, { 1: "2^9",
190 fields_desc = [ ByteEnumField("idtype", 0, _tls_trusted_authority_types) ]
196 fields_desc = [ ByteEnumField("idtype", 1, _tls_trusted_authority_types),
207 fields_desc = [ ByteEnumField("idtype", 2, _tls_trusted_authority_types),
215 fields_desc = [ ByteEnumField("idtype", 3, _tls_trusted_authority_types),
288 ByteEnumField("stype", None, _cert_status_type),
326 ByteEnumField("certtypes", None,
334 ByteEnumField("ctype", None, _tls_cert_types) ]
377 ByteEnumField("nc", None,
[all …]

123