Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15580
b: refs/heads/master
c: 5062430
h: refs/heads/master
v: v3
  • Loading branch information
Patrick Caulfield authored and David S. Miller committed Jan 3, 2006
1 parent 326b6cc commit cb4106c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 4b5bdf5cc3695dc5caba011b9c616b40e6299638
refs/heads/master: 5062430c5cc526655e3d10c670fc9c263656f66c
13 changes: 8 additions & 5 deletions trunk/net/decnet/dn_neigh.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,11 +408,14 @@ int dn_neigh_router_hello(struct sk_buff *skb)
}
}

if (!dn_db->router) {
dn_db->router = neigh_clone(neigh);
} else {
if (msg->priority > ((struct dn_neigh *)dn_db->router)->priority)
neigh_release(xchg(&dn_db->router, neigh_clone(neigh)));
/* Only use routers in our area */
if ((dn_ntohs(src)>>10) == dn_ntohs((decnet_address)>>10)) {
if (!dn_db->router) {
dn_db->router = neigh_clone(neigh);
} else {
if (msg->priority > ((struct dn_neigh *)dn_db->router)->priority)
neigh_release(xchg(&dn_db->router, neigh_clone(neigh)));
}
}
write_unlock(&neigh->lock);
neigh_release(neigh);
Expand Down

0 comments on commit cb4106c

Please sign in to comment.