mirror of
https://github.com/espressif/openthread.git
synced 2026-07-26 13:59:05 +00:00
[border-router] learn RA header and parameters from infra interface (#6431)
The commit enhances the Routing Manager to learn RA header and parameters from RA messages initiated from infra interface. This addresses the issue that the BR may be using different RA header against another RA daemon which is working on the same infra interface (Have BR and another RA daemon working on the same interface is common for Wi-Fi + Thread routers). We also changed to accept RS messages initiated from the infra interface: this is for case that multiple Border Routers run on the same host (as we are trying to support multiple ot-daemons on the same host).
This commit is contained in:
@@ -2812,18 +2812,21 @@ class LinuxHost():
|
||||
self.bash("""cat >/etc/radvd.conf <<EOF
|
||||
interface eth0
|
||||
{
|
||||
AdvSendAdvert on;
|
||||
AdvSendAdvert on;
|
||||
|
||||
MinRtrAdvInterval 3;
|
||||
MaxRtrAdvInterval 30;
|
||||
AdvDefaultPreference low;
|
||||
AdvReachableTime 200;
|
||||
AdvRetransTimer 200;
|
||||
AdvDefaultLifetime 1800;
|
||||
MinRtrAdvInterval 3;
|
||||
MaxRtrAdvInterval 30;
|
||||
AdvDefaultPreference low;
|
||||
|
||||
prefix %s
|
||||
{
|
||||
AdvOnLink on;
|
||||
AdvAutonomous %s;
|
||||
AdvRouterAddr off;
|
||||
};
|
||||
prefix %s
|
||||
{
|
||||
AdvOnLink on;
|
||||
AdvAutonomous %s;
|
||||
AdvRouterAddr off;
|
||||
};
|
||||
};
|
||||
EOF
|
||||
""" % (prefix, 'on' if slaac else 'off'))
|
||||
|
||||
Reference in New Issue
Block a user