mokomoking2501/profinet_master/lldp does not have a README file

    LldpNeighbor

    pub(all) struct LldpNeighbor {
    chassis_id : String
    port_id : String
    ttl : Int
    system_name : String
    system_description : String
    port_description : String
    management_address : String
    } derive(Eq,
    Debug
    )

    LLDP neighbor info extracted from TLVs.

    LldpTlv

    pub(all) struct LldpTlv {
    tlv_type : Int
    length : Int
    value : Bytes
    } derive(Eq,
    Debug
    )

    LLDP TLV parsed structure.

    build_lldp_frame

    fn build_lldp_frame(chassis_id : Bytes, port_id : Bytes, ttl : Int, system_name? : String) -> Bytes

    Build a minimal LLDP frame with required TLVs.

    encode_tlv

    fn encode_tlv(tlv_type : Int, value : Bytes) -> Bytes

    Encode a single LLDP TLV.

    ether_type_lldp

    let ether_type_lldp : Int

    LLDP EtherType.

    extract_neighbor

    fn extract_neighbor(tlvs : Array[LldpTlv]) -> LldpNeighbor

    Extract neighbor info from parsed TLVs.

    format_neighbor

    fn format_neighbor(n : LldpNeighbor) -> String

    Format LLDP neighbor summary.

    lldp_multicast_mac

    let lldp_multicast_mac : String

    LLDP multicast destination MAC.

    oui_ieee_802_1

    let oui_ieee_802_1 : Bytes

    oui_ieee_802_3

    let oui_ieee_802_3 : Bytes

    oui_profinet

    let oui_profinet : Bytes

    PROFINET-specific TLV organization OUI.

    parse_lldp_tlvs

    fn parse_lldp_tlvs(data : Bytes, offset : Int) -> Array[LldpTlv] raise
    FrameError

    Parse LLDP TLVs from a frame payload (after Ethernet header).

    tlv_type_chassis_id

    let tlv_type_chassis_id : Int

    tlv_type_end

    let tlv_type_end : Int

    LLDP TLV types.

    tlv_type_label

    fn tlv_type_label(tlv_type : Int) -> String

    tlv_type_management_address

    let tlv_type_management_address : Int

    tlv_type_port_description

    let tlv_type_port_description : Int

    tlv_type_port_id

    let tlv_type_port_id : Int

    tlv_type_system_capabilities

    let tlv_type_system_capabilities : Int

    tlv_type_system_description

    let tlv_type_system_description : Int

    tlv_type_system_name

    let tlv_type_system_name : Int

    tlv_type_ttl

    let tlv_type_ttl : Int

    Source Files

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io