public static byte[] TLVLinkId(Link_Id linkID) { return Serialization.SerializeToTLV(TLV_VALUES.TLV_MN_LINK_ID, linkID.ByteValue); }
/// <summary> /// Link_Register_Indication constructor. /// </summary> /// <param name="linkId">The LinkID.</param> public Link_Register_Indication(Link_Id linkId) { this.LinkID = linkId; }
private static Link_Parameters_Report ReportBuilder(ushort subType, ushort value) { //Link Identification Information Link_Addr linkAddr = new Link_Addr(Link_Addr.Address_Type.MAC_ADDR, Information.GenericInfo.PhysicalAddress.ToString()); Link_Id linkId = new Link_Id(linkType, linkAddr); Link_Tuple_Id linkTuppleId = new Link_Tuple_Id(linkId, linkAddr); Link_Tuple_Id nicTupple = new Link_Tuple_Id(linkId, linkAddr); //Specified Parameter information and report building List<Link_Param_Rpt> paramsList = new List<Link_Param_Rpt>(); Link_Param_Type linkParamType = new Link_Param_Type(Link_Param_Types.LINK_PARAM_GEN, subType); Link_Param linkParam = new Link_Param(linkParamType, value); Link_Param_Rpt reportSingle = new Link_Param_Rpt(linkParam, null); paramsList.Add(reportSingle); return new Link_Parameters_Report(nicTupple, paramsList); }
/// <summary> /// Link_Tuple_Id main constructor. /// </summary> /// <param name="link_id">The Link Id.</param> /// <param name="link_address">The Link Address.</param> public Link_Tuple_Id(Link_Id link_id, Link_Addr link_address) { this.Link_Id = link_id; this.Link_Addr = link_address; }