hpimdm/packet/PacketHPIMHeader.py
def bytes(self) -> bytes:
        """
        Obtain Protocol Packet in a format to be transmitted (binary)
        This method will return the Header and Payload in binary format
        """
        pim_vrs_type = (PacketHPIMHeader.PIM_VERSION << 4) + self.get_pim_type()
        msg = struct.pack(PacketHPIMHeader.PIM_HDR, self.boot_time, pim_vrs_type, self.security_id,
                          self.security_length)
        msg += self.security_value + self.payload.bytes()
        return msg

        Obtain Protocol Packet in a format to be transmitted (binary)
        This method will return the Header and Payload in binary format
        
Obtain Protocol Packet in a format to be transmitted (binary)
This method will return the Header and Payload in binary format
Obtain Protocol Packet in a format to be transmitted ( binary ) This method will return the Header and Payload in binary format
def bytes(self) -> bytes:
        pim_vrs_type = (PacketHPIMHeader.PIM_VERSION << 4) + self.get_pim_type()
        msg = struct.pack(PacketHPIMHeader.PIM_HDR, self.boot_time, pim_vrs_type, self.security_id,
                          self.security_length)
        msg += self.security_value + self.payload.bytes()
        return msg
def bytes ( self ) -> bytes : pim_vrs_type = ( PacketHPIMHeader . PIM_VERSION << 4 ) + self . get_pim_type ( ) msg = struct . pack ( PacketHPIMHeader . PIM_HDR , self . boot_time , pim_vrs_type , self . security_id , self . security_length ) msg += self . security_value + self . payload . bytes ( ) return msg
Obtain Protocol Packet in a format to be transmitted (binary)
This method will return the Header and Payload in binary format
Obtain Protocol Packet in a format to be transmitted ( binary ) This method will return the Header and Payload in binary format
"""
        Obtain Protocol Packet in a format to be transmitted (binary)
        This method will return the Header and Payload in binary format
        """
self