Exemplo n.º 1
0
 public void AddRouteEntry(v4addr dest, v4addr mask, v4addr next, uint metric = 0)
 {
     IPNetHelper.CreateIPForwardEntry(dest.ToUInt32(), mask.ToUInt32(), next.ToUInt32(), IntfIndex,
                                      (int)(metric == 0 ? _defaultInterfaceMetric : _defaultInterfaceMetric + metric));
 }
Exemplo n.º 2
0
 public void DeleteRouteEntry(v4addr dest, v4addr mask, v4addr next)
 {
     IPNetHelper.DeleteIPForwardEntry(dest.ToUInt32(), mask.ToUInt32(), next.ToUInt32(), IntfIndex);
 }