On Sat, Oct 05, 2024 at 05:37:19PM +0200, Sven Eckelmann wrote:
> On Saturday, 31 August 2024 21:45:28 CEST Linus Lüssing wrote:
> > In most setups it is sufficient for us to only send MLD reports to nodes
> > which have a multicast router attached. Which reduces overall overhead,
On Thu, Sep 12, 2024 at 01:28:16PM +0200, Antonio Quartulli wrote:
> I feel you need to answer the above questions even with two tables. No?
> The difference is that with two tables you have more information and don't
> need overwrite a DHT entry with a local one (and viceversa).
Right. Though the
Hi Antonio,
Thanks for the feedback!
> I haven't followed previous discussions, therefore my question may just
> sound redundant, but if "cache_hash" is for ARP what is the "DAT DHT"? (the
> A in DAT stands for ARP).
The dht_hash would just store what was pushed to it from remote nodes
through t
This adds a dat_dht command to query the DHT part of DAT
in batman-adv.
Signed-off-by: Linus Lüssing
---
Changelog v2:
- rebased to current main branch:
-> removed now obsolete debugfs code
Makefile| 2 +
README.rst | 27 +-
batadv_packet.h | 4 +-
batman_ad
patch the purge timeout for DAT DHT entries is increased to
30min to reduce the number of DAT ARP broadcast fallbacks.
Signed-off-by: Linus Lüssing
---
net/batman-adv/distributed-arp-table.c | 22 +-
net/batman-adv/main.h | 3 ++-
2 files changed, 19 insertions
and DAT DHT in the future.
Signed-off-by: Linus Lüssing
---
include/uapi/linux/batadv_packet.h | 4 +-
include/uapi/linux/batman_adv.h| 5 +
net/batman-adv/distributed-arp-table.c | 360 ++---
net/batman-adv/distributed-arp-table.h | 13 +-
net/batman-adv
Hi,
This is the fifth itereation to increase the DAT DHT timeout to reduce the
amount of broadcasted ARP Replies.
To increase the timeout only for DAT DHT entries added via DHT-PUT but
not for any other entry in the DAT cache the DAT cache and DAT DHT
concepts are first split into two separate ha
This patch adds an option for the new multicast_mld_rtr_only setting in
batman-adv.
Signed-off-by: Linus Lüssing
---
Makefile | 1 +
README.rst | 10 +
batman_adv.h | 9 +
event.c | 4 ++
man/batctl.8 | 18
for this
can then in turn be to set multicast_router=2 on the bat0 bridge port
on the node with the IGMP/MLD querier.)
Therefore MLD report flooding is kept the default and MLD report to
multicast routers only forwarding is considered experimental and
warned about.
Signed-off-by: Linus Lüssing
And one more thought/idea that just came to my mind:
Maybe after adding dynamic VLAN detection from traffic we
could then also exclude the annoying, actually typically
unused VID 0 from the static addition? That way we would
save quite a bit of overhead as each VLAN currently quite
significantly i
I'd be careful with just reducing timeouts... A 2 seconds purge
timeout together with a default 1 second OGM interval seems to me
like asking for a lot of route flapping in the best case. And
potential, temporary routing loops in the worst case.
What we typically do is decrease the batman-adv orig
On Wed, Jun 12, 2024 at 11:39:44PM +0200, Linus Lüssing wrote:
> So far, if we wanted to bridge VLAN tagged frames into the mesh one would
> need to manually create an according VLAN interface on top of bat0
> first, to trigger batman-adv to create the according structures
> for a VI
and added to the translation table on the fly.
Signed-off-by: Linus Lüssing
---
v2: fix a typo, a missing "to" in the commit message
net/batman-adv/hard-interface.c| 2 +-
net/batman-adv/multicast.c | 8 +-
net/batman-adv/soft-interface.
added to the translation table on the fly.
Signed-off-by: Linus Lüssing
---
net/batman-adv/hard-interface.c| 2 +-
net/batman-adv/multicast.c | 8 +-
net/batman-adv/soft-interface.c| 121 -
net/batman-adv/soft-interface.h| 6 +-
net/batman-adv
On Wed, Jun 12, 2024 at 09:06:25AM -0700, Paul E. McKenney wrote:
> We are looking into nice ways of solving this, but in the meantime,
> yes, if you are RCU-freeing slab objects into a slab that is destroyed
> at module-unload time, you currently need to stick with call_rcu()
> and rcu_barrier().
On Wed, Jun 12, 2024 at 04:39:15PM +0200, Linus Lüssing wrote:
> On Wed, Jun 12, 2024 at 07:06:04AM -0700, Paul E. McKenney wrote:
> > Let me make sure that I understand...
> >
> > You need rcu_barrier() to wait for any memory passed to kfree_rcu()
> > to actually be fr
On Wed, Jun 12, 2024 at 07:06:04AM -0700, Paul E. McKenney wrote:
> Let me make sure that I understand...
>
> You need rcu_barrier() to wait for any memory passed to kfree_rcu()
> to actually be freed? If so, please explain why you need this, as
> in what bad thing happens if the actual kfree() h
this for now until the underlying issue can be
found and better understood.
Some additional debugging information and discussions can be found
on our Redmine bugtracker, linked below.
Link: https://www.open-mesh.org/issues/428
Signed-off-by: Linus Lüssing
---
Some help / guidance for further deb
On Sun, Jan 28, 2024 at 10:29:00PM -, doug.faja...@gmail.com wrote:
> I cant seem to get A.L.F.R.E.D. to start:
> doug@dougwork:~/sdshome/alfred$ sudo alfred -b bat0
> Can't start server: interface missing
I think it's complaining because the "-i" parameter is missing.
Try using "alfread -i ba
have this
ULONG_MAX/2 difference limitation.
Fixes: b00589af3b04 ("bridge: disable snooping if there is no querier")
Signed-off-by: Linus Lüssing
---
Changelog v2:
* removed "inline" from br_multicast_query_delay_expired()
net/bridge/br_multicast.c | 20 +++-
have this
ULONG_MAX/2 difference limitation.
Fixes: b00589af3b04 ("bridge: disable snooping if there is no querier")
Signed-off-by: Linus Lüssing
---
net/bridge/br_multicast.c | 20 +++-
net/bridge/br_private.h | 4 ++--
2 files changed, 17 insertions(+), 7 deletions(
00beadc4060f0cb...@google.com/
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/batman-adv/multicast.c b/net/batman-adv/multicast.c
index c8620905c2dc..38fab5e46ae2 100644
--- a/net/batman-adv/multicast.c
+++ b/net/batman-
by reducing the according counter when such a node times out.
Fixes: be9b0169c840 ("batman-adv: mcast: implement multicast packet generation")
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/batman-adv/multicast.c b/
On Thu, Sep 28, 2023 at 02:39:36PM +0200, Remi Pommarel wrote:
> diff --git a/net/batman-adv/bat_v_ogm.c b/net/batman-adv/bat_v_ogm.c
> index 27597f4cdf3e..9b7d4de182d0 100644
> --- a/net/batman-adv/bat_v_ogm.c
> +++ b/net/batman-adv/bat_v_ogm.c
> @@ -866,10 +866,12 @@ static u32 batadv_v_get_throu
On Sat, Oct 14, 2023 at 07:10:28AM +0200, Linus Lüssing wrote:
> In the following scenario:
>
> +---+ ch.1 +---+ ch.2 +---+ ch.2 +---+
> | Orig0 | <- | Orig1 | <-- | Orig2 | <-- | Orig3 |
> +---+ 300 +---+
Hi,
Thanks for taking your time to look into this and the detailed
explanations!
Generally, the issues both patches try to address make sense to me.
On Thu, Sep 28, 2023 at 02:39:36PM +0200, Remi Pommarel wrote:
> Let's consider the below topology
[...]
> However the following formula seems to
Hi Aymetric,
Nice work!
For my part, I'd be a bit reluctant. We've had requests for batman-adv from big
companies in the past for an extra license, which we turned down.
So there might unfortunately be vultures out there who'd like
to build on top of batman-adv without giving back. And I'd feel a
eight, smaller with every interested receiver on the way and
on each splitting intersection. Which can save some valuable bandwidth.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast_forw.c | 207
1 file changed, 207 insertions(+)
diff --git a/net/batma
broadcast packet.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast.c | 79 +++-
net/batman-adv/multicast.h | 25 +-
net/batman-adv/multicast_forw.c | 732
net/batman-adv/soft-interface.c | 6 +-
net/batman-adv/types.h | 6 +
5 files
handling a batman-adv multicast packet and
multicast tracker TVLV. And that all of our hard interfaces have an MTU
of at least 1280 bytes (IPv6 minimum MTU), as a simple solution for now
to avoid MTU issues while forwarding.
Signed-off-by: Linus Lüssing
---
include/uapi/linux/batadv_packet.h | 45
In-Reply-To:
Hi,
The following patchset implements a stateless, TVLV capable batman-adv
multicast packet type.
The new batman-adv multicast packet type allows to contain several
originator destination MAC addresses within a TVLV. Routers on the way will
potentially split the batman-adv multicas
Add the new "P" flag, which signals support for the new batman-adv
multicast packet type, to the "batctl mcast_flags" and "batctl tcpdump"
outputs.
The examples in the README.rst are updated, too, including a description
for the R4 and R6 flags.
Signed-off-by:
Implement a batctl tcpdump parsing of the new batman-adv multicast
packet type, including its multicast tracker TVLV and encapsulated
payload data.
Signed-off-by: Linus Lüssing
---
tcpdump.c | 134 +++---
tcpdump.h | 1 +
2 files changed, 119
eight, smaller with every interested receiver on the way and
on each splitting intersection. Which can save some valuable bandwidth.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast_forw.c | 195
1 file changed, 195 insertions(+)
diff --git a/net/batma
broadcast packet.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast.c | 79 +++-
net/batman-adv/multicast.h | 25 +-
net/batman-adv/multicast_forw.c | 727
net/batman-adv/soft-interface.c | 6 +-
net/batman-adv/types.h | 6 +
5 files
handling a batman-adv multicast packet and
multicast tracker TVLV. And that all of our hard interfaces have an MTU
of at least 1280 bytes (IPv6 minimum MTU), as a simple solution for now
to avoid MTU issues while forwarding.
Signed-off-by: Linus Lüssing
---
include/uapi/linux/batadv_packet.h | 45
Hi,
The following patchset implements a stateless, TVLV capable batman-adv
multicast packet type.
The new batman-adv multicast packet type allows to contain several
originator destination MAC addresses within a TVLV. Routers on the way will
potentially split the batman-adv multicast packet and ad
eight, smaller with every interested receiver on the way and
on each splitting intersection. Which can save some valuable bandwidth.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast_forw.c | 194
1 file changed, 194 insertions(+)
diff --git a/net/batma
broadcast packet.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast.c | 79 +++-
net/batman-adv/multicast.h | 25 +-
net/batman-adv/multicast_forw.c | 715
net/batman-adv/soft-interface.c | 6 +-
net/batman-adv/types.h | 6 +
5 files
handling a batman-adv multicast packet and
multicast tracker TVLV. And that all of our hard interfaces have an MTU
of at least 1280 bytes (IPv6 minimum MTU), as a simple solution for now
to avoid MTU issues while forwarding.
Signed-off-by: Linus Lüssing
---
include/uapi/linux/batadv_packet.h | 45
[PATCH v5 0/3] Implementation of a Stateless Multicast Packet Type
Hi,
The following patchset implements a stateless, TVLV capable batman-adv
multicast packet type.
The new batman-adv multicast packet type allows to contain several
originator destination MAC addresses within a TVLV. Routers on t
Hi pony,
Thanks for the feedback! I've added a comment to this Wiki entry,
that you should not rely on packets being filtered.
I'm not sure if this filtering is 100% intentional or just a
byproduct of the early VLAN awareness implementation. So far we
typically advertised batman-adv as "it just w
On Mon, Jan 30, 2023 at 03:55:08PM +0100, Jiri Pirko wrote:
> Fri, Jan 27, 2023 at 11:21:29AM CET, s...@simonwunderlich.de wrote:
> >This version will contain all the (major or even only minor) changes for
> >Linux 6.3.
> >
> >The version number isn't a semantic version number with major and minor
On Thu, Jan 19, 2023 at 01:47:25PM +0100, Simon Wunderlich wrote:
> On Tuesday, December 27, 2022 8:34:07 PM CET Linus Lüssing wrote:
> > +/**
> > + * struct batadv_tvlv_mcast_tracker - payload of a multicast tracker tvlv
> > + * @num_dests: number of subsequent desti
On Sun, Jan 15, 2023 at 06:56:37PM +0100, Sven Eckelmann wrote:
> [...]
> > +static void
> > +batadv_mcast_forw_scrub_dests(struct batadv_priv *bat_priv,
> > + struct batadv_neigh_node *comp_neigh, u8 *dest,
> > + u8 *next_dest, u16 num_dests)
> > +{
eight, smaller with every interested receiver on the way and
on each splitting intersection. Which can save some valuable bandwidth.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast_forw.c | 212
1 file changed, 212 insertions(+)
diff --git a/net/batma
broadcast packet.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast.c | 79 -
net/batman-adv/multicast.h | 25 +-
net/batman-adv/multicast_forw.c | 513
net/batman-adv/soft-interface.c | 6 +-
net/batman-adv/types.h | 6 +
5 files
handling a batman-adv multicast packet and
multicast tracker TVLV. And that all of our hard interfaces have an MTU
of at least 1280 bytes (IPv6 minimum MTU), as a simple solution for now
to avoid MTU issues while forwarding.
Signed-off-by: Linus Lüssing
---
include/uapi/linux/batadv_packet.h | 48
(), as later the multicast
packet's TVLV handler will need to have access not only to the TVLV but
the full skb for forwarding. Forwarding will be invoked from the
multicast packet's TVLVs' contents later.
Signed-off-by: Linus Lüssing
---
include/uapi/linux/batadv_packet.h | 2 +
Hi,
The following patchset implements a stateless, TVLV capable batman-adv
multicast packet type.
The new batman-adv multicast packet type allows to contain several
originator destination MAC addresses within a TVLV. Routers on the way will
potentially split the batman-adv multicast packet and ad
enum to
prepare for the new batman-adv multicast packet type.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast.c | 249 ++--
net/batman-adv/multicast.h | 38 +
net/batman-adv/soft-interface.c | 26 ++--
3 files changed, 33 insertions(+), 280
\
for (typeof(num_dests) __batadv_forw_num_dests = num_dests; \
*__batadv_forw_num_dests; \
(*__batadv_forw_num_dests)--, (dest) += ETH_ALEN)
Signed-off-by: Linus Lüssing
---
checkstuff.sh | 2 +-
1 file changed, 1 inser
On Tue, Dec 27, 2022 at 10:07:36AM +0100, Sven Eckelmann wrote:
> ecsv/pu: checkpatch ./net/batman-adv/multicast_forw.c
> -
>
> CHECK: Macro argument reuse 'num_dests' - possible side-effects?
> #25: FILE: ./net/batman-adv/multicast_forw.
eight, smaller with every interested receiver on the way and
on each splitting intersection. Which can save some valuable bandwidth.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast_forw.c | 212
1 file changed, 212 insertions(+)
diff --git a/net/batma
broadcast packet.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast.c | 79 -
net/batman-adv/multicast.h | 24 +-
net/batman-adv/multicast_forw.c | 511
net/batman-adv/soft-interface.c | 6 +-
net/batman-adv/types.h | 6 +
5 files
handling a batman-adv multicast packet and
multicast tracker TVLV. And that all of our hard interfaces have an MTU
of at least 1280 bytes (IPv6 minimum MTU), as a simple solution for now
to avoid MTU issues while forwarding.
Signed-off-by: Linus Lüssing
---
include/uapi/linux/batadv_packet.h | 48
(), as later the multicast
packet's TVLV handler will need to have access not only to the TVLV but
the full skb for forwarding. Forwarding will be invoked from the
multicast packet's TVLVs' contents later.
Signed-off-by: Linus Lüssing
---
include/uapi/linux/batadv_packet.h | 2 +
enum to
prepare for the new batman-adv multicast packet type.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast.c | 249 ++--
net/batman-adv/multicast.h | 38 +
net/batman-adv/soft-interface.c | 26 ++--
3 files changed, 33 insertions(+), 280
Hi,
The following patchset implements a stateless, TVLV capable batman-adv
multicast packet type.
The new batman-adv multicast packet type allows to contain several
originator destination MAC addresses within a TVLV. Routers on the way will
potentially split the batman-adv multicast packet and ad
broadcast packet.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast.c | 79 -
net/batman-adv/multicast.h | 24 +-
net/batman-adv/multicast_forw.c | 504
net/batman-adv/soft-interface.c | 6 +-
net/batman-adv/types.h | 6 +
5 files
eight, smaller with every interested receiver on the way and
on each splitting intersection. Which can save some valuable bandwidth.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast_forw.c | 207
1 file changed, 207 insertions(+)
diff --git a/net/batma
handling a batman-adv multicast packet and
multicast tracker TVLV. And that all of our hard interfaces have an MTU
of at least 1280 bytes (IPv6 minimum MTU), as a simple solution for now
to avoid MTU issues while forwarding.
Signed-off-by: Linus Lüssing
---
include/uapi/linux/batadv_packet.h | 48
(), as later the multicast
packet's TVLV handler will need to have access not only to the TVLV but
the full skb for forwarding. Forwarding will be invoked from the
multicast packet's TVLVs' contents later.
Signed-off-by: Linus Lüssing
---
include/uapi/linux/batadv_packet.h | 2 +
enum to
prepare for the new batman-adv multicast packet type.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast.c | 248 ++--
net/batman-adv/multicast.h | 38 +
net/batman-adv/soft-interface.c | 25 ++--
3 files changed, 33 insertions(+), 278
Hi,
The following patchset implements a stateless, TVLV capable batman-adv
multicast packet type.
The new batman-adv multicast packet type allows to contain several
originator destination MAC addresses within a TVLV. Routers on the way will
potentially split the batman-adv multicast packet and ad
eight, smaller with every interested receiver on the way and
on each splitting intersection. Which can save some valuable bandwidth.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast_forw.c | 207
1 file changed, 207 insertions(+)
diff --git a/net/batma
broadcast packet.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast.c | 79 -
net/batman-adv/multicast.h | 24 +-
net/batman-adv/multicast_forw.c | 504
net/batman-adv/soft-interface.c | 6 +-
net/batman-adv/types.h | 6 +
5 files
handling a batman-adv multicast packet and
multicast tracker TVLV. And that all of our hard interfaces have an MTU
of at least 1280 bytes (IPv6 minimum MTU), as a simple solution for now
to avoid MTU issues while forwarding.
Signed-off-by: Linus Lüssing
---
include/uapi/linux/batadv_packet.h | 48
(), as later the multicast
packet's TVLV handler will need to have access not only to the TVLV but
the full skb for forwarding. Forwarding will be invoked from the
multicast packet's TVLVs' contents later.
Signed-off-by: Linus Lüssing
---
include/uapi/linux/batadv_packet.h | 2 +
enum to
prepare for the new batman-adv multicast packet type.
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast.c | 248 ++--
net/batman-adv/multicast.h | 38 +
net/batman-adv/soft-interface.c | 25 ++--
3 files changed, 33 insertions(+), 278
Hi,
The following patchset implements a stateless, TVLV capable batman-adv
multicast packet type.
The new batman-adv multicast packet type allows to contain several
originator destination MAC addresses within a TVLV. Routers on the way will
potentially split the batman-adv multicast packet and ad
On Mon, Aug 08, 2022 at 10:21:05AM -0700, Stig Venaas wrote:
> Hi 6lo and draft authors
>
> I have some concerns about this draft replacing MLD for group registration.
>
> Having 2 different protocols for the same thing can be problematic.
> Hosts or routers may need to support both protocols. Is
On Tue, May 31, 2022 at 12:09:22PM +0200, Baligh Gasmi wrote:
> Since the integration of AQL, packet TX airtime estimation is
> calculated and counted to be used for the dequeue limit.
>
> Use this estimated airtime to compute expected throughput for
> each station.
>
> It will be a generic mac80
mcast: apply optimizations for routable
packets, too")
Signed-off-by: Linus Lüssing
---
net/batman-adv/multicast.c | 15 ++-
net/batman-adv/multicast.h | 5 +++--
net/batman-adv/soft-interface.c | 7 +--
3 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/
On Fri, Nov 05, 2021 at 04:22:11PM -0700, Dweb Fan wrote:
> 4. I follow the document
> https://www.kernel.org/doc/Documentation/networking/batman-adv.txt,
> but seems like unable to see batman related files/folders under
> /sys/class/net/wlan0. Here is output:
> $ ls /sys/class/net/wlan0
Hm, seems
Hi,
Glad to see that more and more people are experimenting with WiFi
mesh networks.
On Fri, Nov 05, 2021 at 04:22:11PM -0700, Dweb Fan wrote:
> Dear all,
>
> Thanks for making such a great project!
>
> I'm following the guide from
> https://github.com/binnes/WiFiMeshRaspberryPi, and setting up
algo. Instead it is advised to
use the newly introduced "batctl if create routing_algo RA_NAME" /
IFLA_BATADV_ALGO_NAME to set the routing algorithm on interface
creation, which already works fine in an unprivileged container.
Cc: Tycho Andersen
Signed-off-by: Linus Lüssing
---
Chang
algo. Instead it is advised to
use the newly introduced "batctl if create routing_algo RA_NAME" /
IFLA_BATADV_ALGO_NAME to set the routing algorithm on interface
creation, which already works fine in an unprivileged container.
Cc: Tycho Andersen
Signed-off-by: Linus Lüssing
---
Changelog
algo. Instead it is advised to
use the newly introduced "batctl if create routing_algo RA_NAME" /
IFLA_BATADV_ALGO_NAME to set the routing algorithm on interface
creation, which already works fine in an unprivileged container.
Cc: Tycho Andersen
Signed-off-by: Linus Lüssing
---
Cc
On Wed, Sep 01, 2021 at 09:54:36PM +0200, Linus Lüssing wrote:
> On Tue, Aug 31, 2021 at 05:28:41PM -, tanner.perk...@cnftech.com wrote:
> > If this is not the best place to ask questions regarding mesh networks
> > utilizing the batman-adv kernel module, I apologies and ple
On Tue, Aug 31, 2021 at 05:28:41PM -, tanner.perk...@cnftech.com wrote:
> If this is not the best place to ask questions regarding mesh networks
> utilizing the batman-adv kernel module, I apologies and please point me to
> where I need to be.
>
> I'm looking to set up distributed mesh netwo
riteable
skb we use skb_cow() to avoid sharing skb data with the skb clones in
the forwarding calls.
Signed-off-by: Linus Lüssing
---
Changelog v3:
* newly added this patch, to move skb_copy()->skb_clone() changes from
PATCH 01/03 to a separate patch with its own explanation
net/batm
nes as it uses batadv_skb_head_push()->skb_cow_head().
Signed-off-by: Linus Lüssing
---
Changelog v3:
* newly added this patch, to move skb_copy()->skb_clone() change from
PATCH 01/03 to a separate patch with its own explanation
net/batman-adv/send.c | 2 +-
1 file changed, 1 insert
alternative strategies for
transmissions on wireless interfaces in the future (for instance sending
via unicast transmissions on wireless interfaces, without queueing in
batman-adv, if appropriate).
Signed-off-by: Linus Lüssing
---
Changelog v3:
* changed all skb_clone() calls to skb_copy(),
:2),
which every IPv6 multicast router is listening to. However this would
also include more nodes than necessary: For instance nodes which are
just a router for unicast, but not multicast would be included, too.
Signed-off-by: Linus Lüssing
---
Please double check the Linux version in
compat-inc
On Fri, May 14, 2021 at 10:28:53AM +0200, Sven Eckelmann wrote:
> On Tuesday, 27 April 2021 20:45:27 CEST Linus Lüssing wrote:
> > - * The skb is not consumed, so the caller should make sure that the
> > - * skb is freed.
> > + * This call clones the given skb, hence the call
On Tue, May 11, 2021 at 12:29:41PM +0300, Nikolay Aleksandrov wrote:
> [...]
> > -static void br_multicast_mark_router(struct net_bridge *br,
> > -struct net_bridge_port *port)
> > +#if IS_ENABLED(CONFIG_IPV6)
> > +struct hlist_node *
> > +br_ip6_multicast_get_rport_
bridge.
Signed-off-by: Linus Lüssing
---
net/bridge/br_multicast.c | 58 +++
1 file changed, 58 insertions(+)
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c
index b625fd6..e963de5 100644
--- a/net/bridge/br_multicast.c
+++ b/net/bridge
Now that we have split the multicast router state into two, one for IPv4
and one for IPv6, also add individual timers to the mdb netlink router
port dump. Leaving the old timer attribute for backwards compatibility.
Signed-off-by: Linus Lüssing
---
include/uapi/linux/if_bridge.h | 2 ++
net
include a multicast router timeout for both IPv4 and IPv6.
Signed-off-by: Linus Lüssing
---
net/bridge/br_forward.c | 8 ++
net/bridge/br_mdb.c | 10 ++
net/bridge/br_multicast.c | 197 ++
net/bridge/br_private.h | 6 +-
4 files changed, 201
avoid sending one for IPv4 and one for IPv6. For that the
split is needed.
Signed-off-by: Linus Lüssing
---
net/bridge/br_multicast.c | 40 ++-
1 file changed, 31 insertions(+), 9 deletions(-)
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c
In preparation for the upcoming split of multicast router state into
their IPv4 and IPv6 variants move the protocol specific router list
access to an ip4 wrapper function.
Signed-off-by: Linus Lüssing
---
net/bridge/br_multicast.c | 59 +++
1 file changed, 41
In preparation for the upcoming split of multicast router state into
their IPv4 and IPv6 variants move the protocol specific timer access to
an ip4 wrapper function.
Signed-off-by: Linus Lüssing
---
net/bridge/br_multicast.c | 31 ++-
1 file changed, 22 insertions
ip6_mc_router_timer later when the split is performed.
While at it also renames the "1" and "2" constants in
br_multicast_is_router() to the MDB_RTR_TYPE_TEMP_QUERY and
MDB_RTR_TYPE_PERM enums.
Signed-off-by: Linus Lüssing
---
net/bridge/br_input.c | 2 +-
net/bridge/br_multicast.c |
In preparation for the upcoming split of multicast router state into
their IPv4 and IPv6 variants and as the br_multicast_mark_router() will
be split for that remove the select querier wrapper and instead add
ip4 and ip6 variants for br_multicast_query_received().
Signed-off-by: Linus Lüssing
able put one router port entry with both the IPv4 and IPv6
multicast router info later.
Signed-off-by: Linus Lüssing
---
net/bridge/br_mdb.c | 39 ++-
1 file changed, 34 insertions(+), 5 deletions(-)
diff --git a/net/bridge/br_mdb.c b/net/bridge/br_mdb.c
index
In preparation for the upcoming split of multicast router state into
their IPv4 and IPv6 variants and to avoid IPv6 #ifdef clutter later add
two wrapper functions for router node retrieval in the payload
forwarding code.
Signed-off-by: Linus Lüssing
---
net/bridge/br_forward.c | 15
In preparation for the upcoming split of multicast router state into
their IPv4 and IPv6 variants, rename the affected variable to the IPv4
version first to avoid some renames in later commits.
Signed-off-by: Linus Lüssing
---
net/bridge/br_forward.c | 2 +-
net/bridge/br_mdb.c | 6
Hi,
The following patches are splitting the so far combined multicast router
state in the Linux bridge into two ones, one for IPv4 and one for IPv6,
for a more fine-grained detection of multicast routers. This avoids
sending IPv4 multicast packets to an IPv6-only multicast router and
avoids sendi
alternative strategies for
transmissions on wireless interfaces in the future (for instance sending
via unicast transmissions on wireless interfaces, without queueing in
batman-adv, if appropriate).
Signed-off-by: Linus Lüssing
---
Changelog v2:
* removed the other two patches from the patchset f
1 - 100 of 1468 matches
Mail list logo