Commit 8ef2a9a5 authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki

bridge br_multicast: Make functions less ipv4 dependent.

Introduce struct br_ip{} to store ip address and protocol
and make functions more generic so that we can support
both IPv4 and IPv6 with less pain.
Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
parent 6e7cb837
This diff is collapsed.
......@@ -45,6 +45,14 @@ struct mac_addr
unsigned char addr[6];
};
struct br_ip
{
union {
__be32 ip4;
} u;
__be16 proto;
};
struct net_bridge_fdb_entry
{
struct hlist_node hlist;
......@@ -64,7 +72,7 @@ struct net_bridge_port_group {
struct rcu_head rcu;
struct timer_list timer;
struct timer_list query_timer;
__be32 addr;
struct br_ip addr;
u32 queries_sent;
};
......@@ -77,7 +85,7 @@ struct net_bridge_mdb_entry
struct rcu_head rcu;
struct timer_list timer;
struct timer_list query_timer;
__be32 addr;
struct br_ip addr;
u32 queries_sent;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment