Exemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of this class.
 /// </summary>
 public RoutingEntry()
 {
     ipaDestination = IPAddress.Any;
     ipaNextHop     = IPAddress.Any;
     iMetric        = 0;
     bSubnetMask    = new Subnetmask();
     reoOwner       = RoutingEntryOwner.Unknown;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a new instance of this class with the given properties.
        /// </summary>
        /// <param name="ipaDestination">The destination IP</param>
        /// <param name="ipaNextHop">The next hop's IP</param>
        /// <param name="iMetric">The metric</param>
        /// <param name="bSubnetMask">The subnetmask of the destination</param>
        /// <param name="reoOwner">The owner of this route</param>
        public RoutingEntry(IPAddress ipaDestination, IPAddress ipaNextHop, int iMetric, Subnetmask bSubnetMask, RoutingEntryOwner reoOwner)
        {
            CheckValid(ipaDestination, ipaNextHop, bSubnetMask);

            this.ipaDestination = ipaDestination;
            this.ipaNextHop     = ipaNextHop;
            this.iMetric        = iMetric;
            this.bSubnetMask    = bSubnetMask;
            this.reoOwner       = reoOwner;
        }