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)); }
public void DeleteRouteEntry(v4addr dest, v4addr mask, v4addr next) { IPNetHelper.DeleteIPForwardEntry(dest.ToUInt32(), mask.ToUInt32(), next.ToUInt32(), IntfIndex); }