Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258429
b: refs/heads/master
c: 0652cac
h: refs/heads/master
i:
  258427: f666987
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Jul 23, 2011
1 parent af667d4 commit 652cb89
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 0c03150e7ea8f7fcd03cfef29385e0010b22ee92
refs/heads/master: 0652cac22ce3fa0c90e35d0a2862969fc394cb02
11 changes: 11 additions & 0 deletions trunk/net/bridge/br_stp_bpdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,17 @@ void br_stp_rcv(const struct stp_proto *proto, struct sk_buff *skb,
bpdu.hello_time = br_get_ticks(buf+28);
bpdu.forward_delay = br_get_ticks(buf+30);

if (bpdu.message_age > bpdu.max_age) {
if (net_ratelimit())
br_notice(p->br,
"port %u config from %pM"
" (message_age %ul > max_age %ul)\n",
p->port_no,
eth_hdr(skb)->h_source,
bpdu.message_age, bpdu.max_age);
goto out;
}

br_received_config_bpdu(p, &bpdu);
}

Expand Down

0 comments on commit 652cb89

Please sign in to comment.