Exemple #1
0
        public static bool CreateRoute(NetRoute o)
        {
            Log.Verbose("CreateRoute {InterNetwork} {Address} {Cidr} {Gateway} {Interface} {Metric}",
                        AddressFamily.InterNetwork,
                        o.Network,
                        o.Cidr,
                        o.Gateway,
                        (ulong)o.InterfaceIndex,
                        o.Metric);

            return(RouteHelper.CreateRoute(AddressFamily.InterNetwork, o.Network, o.Cidr, o.Gateway, (ulong)o.InterfaceIndex, o.Metric));
        }
Exemple #2
0
 public static bool CreateRoute(NetRoute o)
 {
     return(RouteHelper.CreateRoute(AddressFamily.InterNetwork, o.Network, o.Cidr, o.Gateway, (ulong)o.InterfaceIndex, o.Metric));
 }