Displaying 2 results from an estimated 2 matches for "message_age_incr".
2007 Apr 18
0
[Bridge] [PATCH 2.6] Fix message age in bridge STP config packets
...14:45:50 -07:00
+++ b/net/bridge/br_stp.c 2004-06-29 14:45:50 -07:00
@@ -18,6 +18,11 @@
#include "br_private.h"
#include "br_private_stp.h"
+/* since time values in bpdu are in jiffies and then scaled (1/256)
+ * before sending, make sure that is at least one.
+ */
+#define MESSAGE_AGE_INCR ((HZ < 256) ? 1 : (HZ/256))
+
static const char *br_port_state_names[] = {
[BR_STATE_DISABLED] = "disabled",
[BR_STATE_LISTENING] = "listening",
@@ -157,24 +162,25 @@
bpdu.root_path_cost = br->root_path_cost;
bpdu.bridge_id = br->bridge_id;
bpdu.port_id = p-...
2007 Apr 18
1
[Bridge] [PATCH 2.4] Bridge STP message age
...5:30:32 -07:00
+++ b/net/bridge/br_stp.c 2004-06-29 15:30:32 -07:00
@@ -20,7 +20,10 @@
#include "br_private.h"
#include "br_private_stp.h"
-
+/* since time values in bpdu are in jiffies and then scaled (1/256)
+ * before sending, make sure that is at least one.
+ */
+#define MESSAGE_AGE_INCR ((HZ < 256) ? 1 : (HZ/256))
/* called under ioctl_lock or bridge lock */
int br_is_root_bridge(struct net_bridge *br)
@@ -160,24 +163,26 @@
bpdu.root_path_cost = br->root_path_cost;
bpdu.bridge_id = br->bridge_id;
bpdu.port_id = p->port_id;
- bpdu.message_age = 0;
- if (!br_is...