Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266104
b: refs/heads/master
c: c5bd4d8
h: refs/heads/master
v: v3
  • Loading branch information
Allan Stephens authored and Paul Gortmaker committed Sep 1, 2011
1 parent 92f0cb8 commit d18f843
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 23f0ff906af93be6edb579824474117b232c7cc0
refs/heads/master: c5bd4d85d356199ebdbc2c8bbfff86a292c65a9f
32 changes: 18 additions & 14 deletions trunk/net/tipc/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,28 +331,32 @@ static void node_lost_contact(struct tipc_node *n_ptr)
char addr_string[16];
u32 i;

/* Clean up broadcast reception remains */
n_ptr->bclink.gap_after = n_ptr->bclink.gap_to = 0;
while (n_ptr->bclink.deferred_head) {
struct sk_buff *buf = n_ptr->bclink.deferred_head;
n_ptr->bclink.deferred_head = buf->next;
buf_discard(buf);
}
if (n_ptr->bclink.defragm) {
buf_discard(n_ptr->bclink.defragm);
n_ptr->bclink.defragm = NULL;
}
info("Lost contact with %s\n",
tipc_addr_string_fill(addr_string, n_ptr->addr));

/* Flush broadcast link info associated with lost node */

if (n_ptr->bclink.supported) {
n_ptr->bclink.gap_after = n_ptr->bclink.gap_to = 0;
while (n_ptr->bclink.deferred_head) {
struct sk_buff *buf = n_ptr->bclink.deferred_head;
n_ptr->bclink.deferred_head = buf->next;
buf_discard(buf);
}

if (n_ptr->bclink.defragm) {
buf_discard(n_ptr->bclink.defragm);
n_ptr->bclink.defragm = NULL;
}

tipc_bclink_acknowledge(n_ptr,
mod(n_ptr->bclink.acked + 10000));
tipc_nmap_remove(&tipc_bcast_nmap, n_ptr->addr);
if (n_ptr->addr < tipc_own_addr)
tipc_own_tag--;
}

info("Lost contact with %s\n",
tipc_addr_string_fill(addr_string, n_ptr->addr));
n_ptr->bclink.supported = 0;
}

/* Abort link changeover */
for (i = 0; i < MAX_BEARERS; i++) {
Expand Down

0 comments on commit d18f843

Please sign in to comment.