Exemplo n.º 1
0
class RdmaDCQCNstate(scapy.Packet):
    name = "RdmaDCQCNstate"
    fields_desc = [
        scapy.BitField("last_cnp_timestamp", 0, 48),
        scapy.IntField("byte_counter_thr", 0),
        scapy.ByteField("rsvd1", 0),
        scapy.BitField("sq_msg_psn", 0, 24),
        scapy.IntField("rate_enforced", 0),
        scapy.IntField("target_rate", 0),
        scapy.BitField("alpha_value", 0, 16),
        scapy.IntField("cur_byte_counter", 0),
        scapy.BitField("byte_counter_exp_cnt", 0, 16),
        scapy.BitField("timer_exp_cnt", 0, 16),
        scapy.BitField("num_alpha_exp_cnt", 0, 16),
        scapy.ByteField("num_cnp_rcvd", 0),
        scapy.ByteField("num_cnp_processed", 0),
        scapy.BitField("max_rate_reached", 0, 1),
        scapy.BitField("log_sq_size", 0, 5),
        scapy.BitField("resp_rl_failure", 0, 1),
        scapy.BitField("rsvd0", 0, 1),
        scapy.BitField("last_sched_timestamp", 0, 48),
        scapy.BitField("delta_tokens_last_sched", 0, 16),
        scapy.BitField("cur_avail_tokens", 0, 48),
        scapy.BitField("token_bucket_size", 0, 48),
        scapy.BitField("sq_cindex", 0, 16),
        scapy.ByteField("num_sched_drop", 0),
        scapy.BitField("cur_timestamp", 0, 32),
    ]
Exemplo n.º 2
0
class Header(scapy.Packet):
    name = "Header"
    fields_desc = [
        scapy.IntField("MagicWord", 0xDEC0DED),  # 32 bit
        scapy.ByteField("MessageDataType", 0x00),  # 8 bit
        scapy.LEShortField("MessageDataSize", 0x00)  # 16 bit
    ]
Exemplo n.º 3
0
class AVTP(s.Packet):
    name = "AVTP"
    fields_desc = [
        s.XByteField("controlData", None),
        s.XByteField("flags", None),
        s.XByteField("sequence", None),
        s.XByteField("timestampUncertain", None),
        s.IntField("streamID0", None),
        s.IntField("streamID1", None),
        s.IntField("ptpTimestamp", None),
        s.IntField("gateway", None),
        s.ShortField("pktDataLength", None),
        s.XByteField("pkt1394format", None),
        s.XByteField("pkt1394tcode", None),
        s.XByteField("sourceId", None),
        s.XByteField("dataBlockSize", None),
        s.XByteField("packing", None),
        s.XByteField("DBC", None),
        s.XByteField("formatId", None),
        s.XByteField("SYT", None),
        s.IntField("ptpUpper", None),
        s.IntField("ptpLower", None),
    ]
Exemplo n.º 4
0
class TE_FCN_CONTROLS(scapy_all.Packet):
    name = "TE_FCN_CONTROLS"
    fields_desc = [
        scapy_all.IntField('constant', 0),
        LEIEEEFloatField('value', 0),
    ]
class Nonce(scp.Packet):
    name = "Nonce"
    fields_desc = [scp.IntField("nonce", 0), scp.IntField("reply", 0)]