Skip to content

ndisc: honor default route parameters from RA route options

Beniamino Galvani requested to merge bg/ipv6-accept-default-route into main

Summary

RFC 4191 section-3.1 says:

  When processing a Router Advertisement, a type C host first updates a
  ::/0 route based on the Router Lifetime and Default Router Preference
  in the Router Advertisement message header. [...] The Router Preference
  and Lifetime values in a ::/0 Route Information Option override the
  preference and lifetime values in the Router Advertisement header.

Fix the RA parsing so that the parameters from a default route option are applied to the gateway.

#1666 (closed)

Fixes: c3a4656a ('rdisc: libndp implementation')

Merge request reports

Loading