On 10/02/15(Tue) 03:04, Claudio Jeker wrote:
> There is no need to not allow the same network to be configured more then
> once. Instead just rely on the multipath and priority handling of the
> routing table to select the right route.
> Additionally this removes cloned routes (arp/npd cache) when the interface
> goes down or when the any of the multipath cloning route is changed.
> 
> With this it is possible to run 2 dhclients on wired and wireless with a
> bridged network. Active TCP sessions still fail when the cable is
> unplugged. To fix this more is needed.
> 
> This changes a fundamental part of the network stack and therefor broad
> testing is needed to find all the hidden dragons.

I like this a lot.  Should should also kill the IFA_ROUTE flag.  It was
only used to indicate which ifa was owning the cloning route of its
corresponding subnet.

One more comment:

> @@ -1655,6 +1675,9 @@ rt_if_track(struct ifnet *ifp)
>               return;
>  
>       for (tid = 0; tid <= rtbl_id_max; tid++) {
> +             /* skip rtables that are not in the rdomain of the ifp */
> +             if (rtable_l2(tid) != ifp->if_rdomain)
> +                     continue;

This chunk is not strictly related an should already go in.

Reply via email to