projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
fbb5a20
)
Fix ifaddr_byindex().
author
Rui Paulo <rpaulo@FreeBSD.org>
Fri, 19 Feb 2010 12:02:44 +0000 (12:02 +0000)
committer
Rui Paulo <rpaulo@FreeBSD.org>
Fri, 19 Feb 2010 12:02:44 +0000 (12:02 +0000)
sys/net/if.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/net/if.c
b/sys/net/if.c
index
0db6374
..
0900142
100644
(file)
--- a/
sys/net/if.c
+++ b/
sys/net/if.c
@@
-2473,5
+2473,5
@@
ifaddr_byindex(unsigned short idx)
ifp = ifnet_byindex(idx);
if (!ifp)
return NULL;
- return ifp->if_addr;
+ return TAILQ_FIRST(&ifp->if_addrheads[mycpuid])->ifa;
}