- public
Collection
<Variant
> get_known_destinations ()
Returns a list of tuple containing str(IP), str(bits)
- public
Map
<string
,string
> get_known_neighbours ()
Returns a copy of the dict {ipstr: dev} of neighbours
- public void reset_routes (
string
ip_whole_network, string
cidr_whole_network) throws Error
We have no routes
- public void outgoing_routes (
string
ip, string
cidr, RouteSolutions? route_solutions) throws Error
Maintains this default routes for this destination.
- public void forwarding_routes (
string
ip, string
cidr, string
prev_hop, RouteSolutions? route_solutions) throws Error
Maintains this routes for this destination when prev_hop is the
gateway from which we received the packet.
- protected abstract void _add_outgoing_route (
string
ip, string
cidr, RouteSolutions route_solutions)
Add a route (that was non existent) towards ip/cidr for packets
generated by this host. The gateways are route_solutions
- protected abstract void _add_forwarding_route (
string
ip, string
cidr, string
prev_hop, RouteSolutions route_solutions) throws Error
Add a route (that was non existent) towards ip/cidr for packets
coming from MAC prev_hop. The gateways are route_solutions
- protected abstract void _add_forwarding_route_unreachable (
string
ip, string
cidr, string
prev_hop) throws Error
Add a route (that was non existent) towards ip/cidr for packets
coming from MAC prev_hop. In fact this route is UNREACHABLE
- protected abstract void _add_forwarding_route_drop (
string
ip, string
cidr, string
prev_hop) throws Error
Add a route (that was non existent) towards ip/cidr for packets
coming from MAC prev_hop. In fact this route is DROP
- protected abstract void _change_outgoing_route (
string
ip, string
cidr, RouteSolutions route_solutions, RouteSolutions old_route_solutions)
Change a route (that was existent) towards ip/cidr for packets
generated by this host. The gateways are route_solutions. The old gateways were old_route_solutions
- protected abstract void _change_forwarding_route (
string
ip, string
cidr, string
prev_hop, RouteSolutions route_solutions, RouteSolutions old_route_solutions) throws Error
Change a route (that was existent) towards ip/cidr for packets
coming from MAC prev_hop. The gateways are route_solutions. The old gateways were old_route_solutions
- protected abstract void _change_forwarding_route_unreachable (
string
ip, string
cidr, string
prev_hop, RouteSolutions old_route_solutions) throws Error
Change a route (that was existent) towards ip/cidr for packets
coming from MAC prev_hop. In fact this route is UNREACHABLE The old gateways were old_route_solutions
- protected abstract void _change_forwarding_route_drop (
string
ip, string
cidr, string
prev_hop, RouteSolutions old_route_solutions) throws Error
Change a route (that was existent) towards ip/cidr for packets
coming from MAC prev_hop. In fact this route is DROP The old gateways were old_route_solutions
- protected abstract void _change_forwarding_route_was_unreachable (
string
ip, string
cidr, string
prev_hop, RouteSolutions route_solutions) throws Error
Change a route (that was existent) towards ip/cidr for packets
coming from MAC prev_hop. The gateways are route_solutions. Previously the route was UNREACHABLE
- protected abstract void _change_forwarding_route_drop_was_unreachable (
string
ip, string
cidr, string
prev_hop) throws Error
Change a route (that was existent) towards ip/cidr for packets
coming from MAC prev_hop. In fact now this route is DROP Previously the route was UNREACHABLE
- protected abstract void _change_forwarding_route_was_drop (
string
ip, string
cidr, string
prev_hop, RouteSolutions route_solutions) throws Error
Change a route (that was existent) towards ip/cidr for packets
coming from MAC prev_hop. The gateways are route_solutions. Previously the route was DROP
- protected abstract void _change_forwarding_route_unreachable_was_drop (
string
ip, string
cidr, string
prev_hop) throws Error
Change a route (that was existent) towards ip/cidr for packets
coming from MAC prev_hop. In fact now this route is UNREACHABLE Previously the route was DROP
- protected abstract void _remove_outgoing_route (
string
ip, string
cidr, RouteSolutions old_route_solutions)
Remove a route (that was existent) towards ip/cidr for packets
generated by this host. The old gateways were old_route_solutions
- protected abstract void _remove_forwarding_route (
string
ip, string
cidr, string
prev_hop, RouteSolutions old_route_solutions) throws Error
Remove a route (that was existent) towards ip/cidr for packets
coming from MAC prev_hop. The old gateways were old_route_solutions
- protected abstract void _remove_forwarding_route_was_unreachable (
string
ip, string
cidr, string
prev_hop) throws Error
Remove a route (that was existent) towards ip/cidr for packets
coming from MAC prev_hop. Previously the route was UNREACHABLE
- protected abstract void _remove_forwarding_route_was_drop (
string
ip, string
cidr, string
prev_hop) throws Error
Remove a route (that was existent) towards ip/cidr for packets
coming from MAC prev_hop. Previously the route was DROP
- public void forward_no_more_from (
string
prev_hop) throws Error
- protected abstract void _forward_no_more_from (
string
prev_hop) throws Error
Stop forwarding (in fact it means delete all rules for...) packets
coming from MAC prev_hop.
- public void forward_no_more () throws
Error
- protected abstract void _forward_no_more () throws
Error
Delete all specific rules for any prev_hop.
- public void add_neighbour (
string
ip, string
dev, string
pref_src)
- protected abstract void _add_neighbour (
string
ip, string
dev, string
pref_src)
Adds a new neighbour with corresponding properties.
- public void change_neighbour (
string
ip, string
dev, string
pref_src)
- protected abstract void _change_neighbour (
string
ip, string
dev, string
pref_src, string
old_dev)
Edits the neighbour with the corresponding properties.
- public void delete_neighbour (
string
ip)
- protected abstract void _delete_neighbour (
string
ip, string
old_dev)
Removes the neighbour with the corresponding properties.
- public
bool
igs_update_rules (string
mode, bool
announce_myself, ArrayList
<TunnelItem> list_tunnels, string
pref_src) throws Error
- protected abstract
bool
_igs_update_rules (string
prev_mode, bool
prev_announce_myself, ArrayList
<TunnelItem> prev_list_tunnels, string
mode, bool
announce_myself, ArrayList
<TunnelItem> list_tunnels, string
pref_src) throws Error
- protected abstract
bool
check_ping (string
ipstr)
- protected abstract
bool
_reset_routes (string
ip_whole_network, string
cidr_whole_network)
- public abstract void activate_multipath ()
- public abstract void ip_forward (
bool
enable)