Skip to content
Snippets Groups Projects
Commit 7139f015 authored by Robin Jarry's avatar Robin Jarry
Browse files

layers/inet6/routes: fix ndp resolution without default route


Sending a IPv6 packet without Ether.dst mac defined fails when there is
not default IPv6 route defined with the following message:

WARNING: No route found for IPv6 destination fd00:200::1 (no default route?)

Because, when there is no default IPv6 route defined, conf.iface6 is
initialized to the loopback interface and the conf.route6.route() method
is called with dev=conf.iface6.

According to the docstring of conf.route6.route():

  if optional 'dev' parameter is provided a specific interface,
  filtering is performed to limit search to route associated to
  that interface.

This will result in the system never finding on which interface it
should send a NDP packet.

Do not call conf.route6.route() with dev=conf.iface6.

Signed-off-by: default avatarSamuel Gauthier <samuel.gauthier@6wind.com>
Signed-off-by: default avatarRobin Jarry <robin.jarry@6wind.com>
parent 7c271e15
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment