Re: Radv proto sending adverts on wrong interface

2023-03-13 Thread Daniel Gröber
Hi Kees, On Mon, Mar 13, 2023 at 07:23:17AM +0100, Kees Meijs | Nefos wrote: > About VLAN configuration: I guess one should never ever use VLAN_DEFAULT > c.q. VLAN 1 at all. Vendors often think differently about this case, > sometimes allowing to have a .1Q tag, sometimes not. Or sort of "both"

Re: Radv proto sending adverts on wrong interface

2023-03-13 Thread Kees Meijs | Nefos via Bird-users
Hi, On 13-03-2023 05:52, d...@darkboxed.org wrote: It looks like made a mistake when testing my patch. It does in fact not fix the problem. I then did some more reading of the linux scriptures and it turns out PACKET_OUTGOING ("Out" in tcpdump) should actually be reliable so that meant that

Re: Radv proto sending adverts on wrong interface

2023-03-12 Thread dxld
Hi Ondrej, It looks like made a mistake when testing my patch. It does in fact not fix the problem. I then did some more reading of the linux scriptures and it turns out PACKET_OUTGOING ("Out" in tcpdump) should actually be reliable so that meant that the "M" means that packet is actually coming

Re: Radv proto sending adverts on wrong interface

2023-03-12 Thread Ondrej Zajicek
On Sun, Mar 12, 2023 at 02:36:50PM +0100, d...@darkboxed.org wrote: > I noticed something in tcpdump just now, when using -iany the incorrect RA > advert shows up as an "M" (multicast) as opposed to "Out" on the correct > interface. This only happens when sending an RA on enp2s0 not any of the >

Re: Radv proto sending adverts on wrong interface

2023-03-12 Thread Juliusz Chroboczek
> The field sin6_scope_id should be used only for link-local addresses (to > define their scope), not as a way to route multicasts. > > (Hmm, ff02::/16 is defined as link-local multicast address, so perhaps > setting sin6_scope_id makes sense.) FWIW, babeld uses the sin6_scope_id when sending

Re: Radv proto sending adverts on wrong interface

2023-03-12 Thread dxld
Hi Ondrej, On Sun, Mar 12, 2023 at 01:29:23PM +0100, Ondrej Zajicek wrote: > I do not really get this. For multicast, outgoing interface is defined by > setsockopt(IPV6_MULTICAST_IF) in sk_setup_multicast6(). Hmm, I hadn't seen that. That is odd indeed. Looking at this again I also noticed we

Re: Radv proto sending adverts on wrong interface

2023-03-12 Thread Ondrej Zajicek
On Sat, Mar 11, 2023 at 06:28:58AM +0100, Daniel Gröber wrote: > Hi, > > I'm using bird as a replacement for radvd since the latter has a > longstanding issue with sending adverts on unconfigured interfaces under > complex conditions. > > Turns out bird has a similar issue :) > > Looking at the

Radv proto sending adverts on wrong interface

2023-03-10 Thread Daniel Gröber
Hi, I'm using bird as a replacement for radvd since the latter has a longstanding issue with sending adverts on unconfigured interfaces under complex conditions. Turns out bird has a similar issue :) Looking at the code, when opening the socket for an interface in radv_sk_open we set sk->iface