hpimdm/packet/PacketHPIMHelloOptions.py
def parse_bytes(data: bytes, hello_type: int = None, length: int = None):
        """
        Parse received Hello Option ChekpointSN from binary and convert it into Hello object
        """
        if hello_type is None or length is None:
            raise Exception
        (checkpoint_sn, ) = struct.unpack(PacketHPIMHelloCheckpointSN.PIM_HDR_OPT, data[:length])
        print("CheckpointSN:", checkpoint_sn)
        return PacketHPIMHelloCheckpointSN(checkpoint_sn=checkpoint_sn)

        Parse received Hello Option ChekpointSN from binary and convert it into Hello object
        
Parse received Hello Option ChekpointSN from binary and convert it into Hello object
Parse received Hello Option ChekpointSN from binary and convert it into Hello object
def parse_bytes(data: bytes, hello_type: int = None, length: int = None):
        if hello_type is None or length is None:
            raise Exception
        (checkpoint_sn, ) = struct.unpack(PacketHPIMHelloCheckpointSN.PIM_HDR_OPT, data[:length])
        print("CheckpointSN:", checkpoint_sn)
        return PacketHPIMHelloCheckpointSN(checkpoint_sn=checkpoint_sn)
def parse_bytes ( data : bytes , hello_type : int = None , length : int = None ) : if hello_type is None or length is None : raise Exception ( checkpoint_sn , ) = struct . unpack ( PacketHPIMHelloCheckpointSN . PIM_HDR_OPT , data [ : length ] ) print ( "CheckpointSN:" , checkpoint_sn ) return PacketHPIMHelloCheckpointSN ( checkpoint_sn = checkpoint_sn )
Parse received Hello Option ChekpointSN from binary and convert it into Hello object
Parse received Hello Option ChekpointSN from binary and convert it into Hello object
"""
        Parse received Hello Option ChekpointSN from binary and convert it into Hello object
        """
data
bytes
hello_type
int
length
int