protected void AddStaticBindings(DhcpLink dhcpLink, v4AddressBinding binding)
 {
     if (staticBindingMap.ContainsKey(dhcpLink.GetLinkAddress()))
     {
         V4StaticAddressBinding sb = new V4StaticAddressBinding(binding);
         staticBindingMap[dhcpLink.GetLinkAddress()].Add(sb);
     }
 }
 protected V4StaticAddressBinding BuildV4StaticBinding(v4AddressBinding binding, link link)
 {
     try
     {
         IPAddress inetAddr        = IPAddress.Parse(binding.ipAddress);
         V4StaticAddressBinding sb = new V4StaticAddressBinding(binding);
         SetIpAsUsed(link, inetAddr);
         return(sb);
     }
     catch (Exception ex)
     {
         log.Error("Invalid static binding address");
         throw new Exception("Invalid static binding address", ex);
     }
 }
        protected override List <StaticBinding> BuildStaticBindings(link link)
        {
            List <StaticBinding>    staticBindings = new List <StaticBinding>();
            List <v4AddressBinding> bindings       = link.v4AddrBindings;

            if ((bindings != null) && bindings.Count > 0)
            {
                foreach (v4AddressBinding binding in bindings)
                {
                    V4StaticAddressBinding sab = BuildV4StaticBinding(binding, link);
                    staticBindings.Add(sab);
                }
            }

            return(staticBindings);
        }