Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279099
b: refs/heads/master
c: 945af1c
h: refs/heads/master
i:
  279097: b6feadd
  279095: 1192d7a
v: v3
  • Loading branch information
Allan Stephens authored and Paul Gortmaker committed Dec 27, 2011
1 parent 0103ba4 commit e8be419
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: 97f1b625d133b44d38b8b55ec2cbe35d7ef94f3a
refs/heads/master: 945af1c39df00a1e5873e38145432ba752ec49a0
12 changes: 5 additions & 7 deletions trunk/net/tipc/name_distr.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,21 +322,19 @@ void tipc_named_recv(struct sk_buff *buf)
/**
* tipc_named_reinit - re-initialize local publication list
*
* This routine is called whenever TIPC networking is (re)enabled.
* This routine is called whenever TIPC networking is enabled.
* All existing publications by this node that have "cluster" or "zone" scope
* are updated to reflect the node's current network address.
* (If the node's address is unchanged, the update loop terminates immediately.)
* are updated to reflect the node's new network address.
*/

void tipc_named_reinit(void)
{
struct publication *publ;

write_lock_bh(&tipc_nametbl_lock);
list_for_each_entry(publ, &publ_root, local_list) {
if (publ->node == tipc_own_addr)
break;

list_for_each_entry(publ, &publ_root, local_list)
publ->node = tipc_own_addr;
}

write_unlock_bh(&tipc_nametbl_lock);
}

0 comments on commit e8be419

Please sign in to comment.