Example #1
0
 public static byte[] TLVPoALinkAddress(Link_Addr la)
 {
     return Serialization.SerializeToTLV(TLV_VALUES.TLV_POA, la.ByteValue);
 }
Example #2
0
 /// <summary>
 /// MIHProtocol of a OldAccessRouter Address.
 /// </summary>
 /// <param name="linkAddr">The address of the old access router.</param>
 /// <returns>OldAccessRouter address serialization.</returns>
 public static byte[] TLVOldAccessRouter(Link_Addr linkAddr)
 {
     return Serialization.SerializeToTLV(TLV_VALUES.TLV_ACCESS_ROUTER_ADDRESS, linkAddr.ByteValue);
 }
Example #3
0
 public static byte[] TLVPOA(Link_Addr linkAddress)
 {
     return null;
 }
Example #4
0
 /// <summary>
 /// Link_Register_Indication constructor.
 /// </summary>
 /// <param name="linkType">The Link Type.</param>
 /// <param name="linkAddress">The Link Address.</param>
 public Link_Register_Indication(Link_Type linkType, Link_Addr linkAddress)
 {
     this.LinkID = new Link_Id(linkType, linkAddress);
 }
Example #5
0
        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);
        }
Example #6
0
 /// <summary>
 /// Main constructor for the Link_Action_Request object.
 /// </summary>
 /// <param name="lAct">The action to be taken.</param>
 /// <param name="eD">The execution delay.</param>
 /// <param name="lAddr">The link address to redirect the results to [NOT IMPLEMENTED]</param>
 public Link_Action_Request(Link_Action lAct, ushort eD, Link_Addr lAddr)
 {
     LinkAction = lAct;
     ExecutionDelay = eD;
     PoALinkAddress = lAddr;
 }
Example #7
0
 /// <summary>
 /// Link_Register_Indication constructor.
 /// </summary>
 /// <param name="linkType">The Link Type.</param>
 /// <param name="addressType">The Address Type.</param>
 /// <param name="addressValue">The Address Value.</param>
 public Link_Register_Indication(Link_Type linkType, Link_Addr.Address_Type addressType, String addressValue)
 {
     this.LinkID = new Link_Id(linkType, new Link_Addr(addressType, addressValue));
 }
Example #8
0
 /// <summary>
 /// The Link Down Event Class constructor.
 /// </summary>
 /// <param name="LinkIdentifier">The Link Identifier.</param>
 /// <param name="OldAccessRouter">The Old Access Router Address.</param>
 /// <param name="ReasonCode">The Reason Code, for the link down event.</param>
 public Link_Down(Link_Tuple_Id LinkIdentifier, Link_Addr OldAccessRouter, Link_Dn_Reason ReasonCode)
     : base(LinkIdentifier)
 {
     this.OldAccessRouter = OldAccessRouter;
     this.ReasonCode = ReasonCode;
 }
Example #9
0
 //IPRenewalFlag Not Implemented in this version
 //MobilityManagementSupport Not Implemented in this version
 /// <summary>
 /// Link UP Event Class constructor.
 /// </summary>
 /// <param name="LinkIdentifier">The Link Identifier.</param>
 /// <param name="OldAccessRouter">The Old Access Router Address.</param>
 /// <param name="NewAccessRouter">The New Access Router Address.</param>
 public Link_Up(Link_Tuple_Id LinkIdentifier, Link_Addr OldAccessRouter, Link_Addr NewAccessRouter)
     : base(LinkIdentifier)
 {
     this.NewAccessRouter = NewAccessRouter;
     this.OldAccessRouter = OldAccessRouter;
 }
Example #10
0
 /// <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;
 }
Example #11
0
 /// <summary>
 /// Default constructor for the Link_Scan_Rsp.
 /// </summary>
 /// <param name="la">The PoA link address.</param>
 /// <param name="nid">The network ID.</param>
 /// <param name="ss">The signal strength for the specified network ID.</param>
 public Link_Scan_Rsp(Link_Addr la, OctetString nid, ushort ss)
 {
     this.linkAddr = la;
     this.NetworkID = nid;
     this.Sig_Strength = ss;
 }
Example #12
0
 /// <summary>
 /// The Link_Id constructor.
 /// </summary>
 /// <param name="link_type">The Link Type.</param>
 /// <param name="link_address">The Link Adress.</param>
 public Link_Id(Link_Type link_type, Link_Addr link_address)
 {
     this.Link_type = link_type;
     this.Link_address = link_address;
 }