mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
batman-adv: add broadcast duplicate check
When multiple backbone gateways relay the same broadcast from the backbone into the mesh, other nodes in the mesh may receive this broadcast multiple times. To avoid this, the crc checksums of received broadcasts are recorded and new broadcast packets with the same content may be dropped if received by another gateway. Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
This commit is contained in:
parent
20ff9d593f
commit
fe2da6ff27
5 changed files with 91 additions and 0 deletions
|
@ -28,6 +28,8 @@ int bla_is_backbone_gw(struct sk_buff *skb,
|
|||
struct orig_node *orig_node, int hdr_size);
|
||||
int bla_claim_table_seq_print_text(struct seq_file *seq, void *offset);
|
||||
int bla_is_backbone_gw_orig(struct bat_priv *bat_priv, uint8_t *orig);
|
||||
int bla_check_bcast_duplist(struct bat_priv *bat_priv,
|
||||
struct bcast_packet *bcast_packet, int hdr_size);
|
||||
void bla_update_orig_address(struct bat_priv *bat_priv,
|
||||
struct hard_iface *primary_if,
|
||||
struct hard_iface *oldif);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue