Ejemplo n.º 1
0
        /// <summary>
        /// Delete specific IP address binding from adapter.
        /// </summary>
        internal void Flush(IAdapter adapter, IPv4 address)
        {
            IPBinding ipb = (IPBinding)ipBindings[address];

            if (ipb != null && ipb.Adapter == adapter)
            {
                Flush(ipb.IPConfiguration);
            }
        }
Ejemplo n.º 2
0
        public IAdapter GetAdapter(IPv4 address)
        {
            IPBinding ipb = (IPBinding)ipBindings[address];

            if (ipb == null)
            {
                return(null);
            }
            return(ipb.Adapter);
        }