Skip to content

There is bug in Routing Algorithm #3

@ashkan-moghadasi

Description

@ashkan-moghadasi

Our routing algorithm must prefer more specific routes as the best route of routing algorithm however I think you act vice versa
in RoutingTable.Resolve()

if (bestRoute == null || bestRoute.NetworkMask.ToInt() > route.NetworkMask.ToInt())
{
bestRoute = route;
}
Must Be

if (bestRoute == null || bestRoute.NetworkMask.ToInt()< route.NetworkMask.ToInt())
{
bestRoute = route;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions