* bridge, packet destination not found in fdb, how to match in ebtables?
@ 2008-01-05 6:51 Denys Fedoryshchenko
0 siblings, 0 replies; only message in thread
From: Denys Fedoryshchenko @ 2008-01-05 6:51 UTC (permalink / raw)
To: shemminger; +Cc: netdev
Hi
In few words: i have problem with bridge, that if some MAC address is not
known, even expired by age bridge will send packet as "flood".
If i am not wrong
in br_device.c
int br_dev_xmit(struct sk_buff *skb, struct net_device *dev)
...
if (dest[0] & 1)
br_flood_deliver(br, skb);
else if ((dst = __br_fdb_get(br, dest)) != NULL)
br_deliver(dst->dst, skb);
else
br_flood_deliver(br, skb);
...
Probably, because packet becoming broadcast in bridge terms, it is useful to
set it something skb->pkt_type = PACKET_BROADCAST; ?
But as i understand after looking in kernel code it can't be set
PACKET_BROADCAST, because it will mess with most of network drivers. So packet
is in ebtables pkttype is matching as "otherhost", same as "good"(non-flood)
packets.
But is there a way to set "flood packet" to some type, that i can match in
ebtables and block it as broadcast?
I had with PPPoE troubles with this, cause PPPoE acting differently than
IP+ARP, and situation when some buggy linksys router start flooding network by
PADT packet to address not existing in fdb, just killing network by "flood" of
this frames to all ports.
Here i see two solutions:
1)Change pkt_type
2)Develop additional module to handle "fdb attributes" (destination found in
fdb or unknown)
I think it is relatively trivial to implement, and it will be useful, as usual
settings available on modern switches, known as "flood limit", but i think i
am not enough programmer to do that. If possible guide me what to do.
--
Denys Fedoryshchenko
Technical Manager
Virtual ISP S.A.L.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-05 6:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-05 6:51 bridge, packet destination not found in fdb, how to match in ebtables? Denys Fedoryshchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).