Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300587
b: refs/heads/master
c: b1a8c04
h: refs/heads/master
i:
  300585: 645e176
  300583: bdfef71
v: v3
  • Loading branch information
Simon Wunderlich authored and Antonio Quartulli committed Apr 11, 2012
1 parent 9f83d20 commit 863cfd7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe2da6ff27c73c1d102ec2189f94e8bc729d1a9b
refs/heads/master: b1a8c04b8af74158e006b92a9e7e0f619e1a9409
8 changes: 8 additions & 0 deletions trunk/net/batman-adv/soft-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ static int interface_tx(struct sk_buff *skb, struct net_device *soft_iface)
struct hard_iface *primary_if = NULL;
struct bcast_packet *bcast_packet;
struct vlan_ethhdr *vhdr;
static const uint8_t stp_addr[ETH_ALEN] = {0x01, 0x80, 0xC2, 0x00, 0x00,
0x00};
unsigned int header_len = 0;
int data_len = skb->len, ret;
short vid = -1;
Expand Down Expand Up @@ -159,6 +161,12 @@ static int interface_tx(struct sk_buff *skb, struct net_device *soft_iface)
/* Register the client MAC in the transtable */
tt_local_add(soft_iface, ethhdr->h_source, skb->skb_iif);

/* don't accept stp packets. STP does not help in meshes.
* better use the bridge loop avoidance ...
*/
if (compare_eth(ethhdr->h_dest, stp_addr))
goto dropped;

if (is_multicast_ether_addr(ethhdr->h_dest)) {
do_bcast = true;

Expand Down

0 comments on commit 863cfd7

Please sign in to comment.