Beispiel #1
0
    def setUp_with_heartbeat_ack(self):
        self.flags = 0
        self.length = 4 + 12

        self.p_heartbeat = sctp.param_heartbeat(b"\xff\xee\xdd\xcc\xbb\xaa\x99\x88")

        self.heartbeat_ack = sctp.chunk_heartbeat_ack(info=self.p_heartbeat)

        self.chunks = [self.heartbeat_ack]

        self.sc = sctp.sctp(self.src_port, self.dst_port, self.vtag, self.csum, self.chunks)

        self.buf += b"\x05\x00\x00\x10" + b"\x00\x01\x00\x0c" + b"\xff\xee\xdd\xcc\xbb\xaa\x99\x88"
Beispiel #2
0
    def setUp_with_heartbeat(self):
        self.flags = 0
        self.length = 4 + 8

        self.p_heartbeat = sctp.param_heartbeat(b"\x01\x02\x03\x04")

        self.heartbeat = sctp.chunk_heartbeat(info=self.p_heartbeat)

        self.chunks = [self.heartbeat]

        self.sc = sctp.sctp(self.src_port, self.dst_port, self.vtag, self.csum, self.chunks)

        self.buf += b"\x04\x00\x00\x0c" + b"\x00\x01\x00\x08" + b"\x01\x02\x03\x04"