XFieldLenField( "length", None, length_of= "extensions", fmt= "H"), ReprFieldListField( "ke_modes",, ByteEnumField( "ke_mode", None, TLS_PSK_KEY_EXCHANGE_MODE),įields_desc = [XShortEnumField( "version", TLSVersion.TLS_1_3, TLS_VERSIONS), Name = "TLS Extension PSK Key Exchange Mode"įields_desc = [XFieldLenField( "length", None, length_of= "ke_modes", fmt= "B"), Return Packet.guess_payload_class(self, raw_bytes)įields_desc = Ĭlass TLSExtPSKKeyExchangeModes( PacketNoPayload): Name = "DUID - Based on Link-layer Address"įields_desc = [ShortEnumField( "type", 3, duidtypes),įields_desc = [ShortEnumField( "type", 4, duidtypes), IntEnumField( "enterprisenum", 311, IANA_ENTERPRISE_NUMBERS), Name = "DUID - Assigned by Vendor Based on Enterprise Number"įields_desc = [ShortEnumField( "type", 2, duidtypes), XShortEnumField( "hwtype", 1, duidhwtypes),
Name = "DUID - Link-layer address plus time"įields_desc = [ShortEnumField( "type", 1, duidtypes), _LLAddrField # will be modified when needed.
Class SCTPChunkParamHearbeatInfo( _SCTPChunkParam, Packet):įields_desc = [ShortEnumField( "type", 1, sctpchunkparamtypes),įieldLenField( "len", None, length_of= "data",Ĭlass SCTPChunkParamIPv4Addr( _SCTPChunkParam, Packet):įields_desc = [ShortEnumField( "type", 5, sctpchunkparamtypes),Ĭlass SCTPChunkParamIPv6Addr( _SCTPChunkParam, Packet):įields_desc = [ShortEnumField( "type", 6, sctpchunkparamtypes),Ĭlass SCTPChunkParamStateCookie( _SCTPChunkParam, Packet):įields_desc = [ShortEnumField( "type", 7, sctpchunkparamtypes),įieldLenField( "len", None, length_of= "cookie",Ĭlass SCTPChunkParamUnrocognizedParam( _SCTPChunkParam, Packet):įields_desc = [ShortEnumField( "type", 8, sctpchunkparamtypes),Ĭlass _LLAddrField( MACField): pass # XXX We only support Ethernet addresses at the moment.