projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72ebaba
)
alias: use layer 3 device instead of main device
author
Steven Barth
<steven@midlink.org>
Wed, 16 Jan 2013 13:56:10 +0000
(14:56 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 16 Jan 2013 15:06:07 +0000
(16:06 +0100)
alias.c
patch
|
blob
|
history
interface.c
patch
|
blob
|
history
diff --git
a/alias.c
b/alias.c
index 14b4c8f0ccb96cb680944f290afd9111bfb52eec..e77defff5e42836d269a10d12c284929e964a79c 100644
(file)
--- a/
alias.c
+++ b/
alias.c
@@
-126,7
+126,7
@@
static int alias_check_state(struct device *dev)
iface = vlist_find(&interfaces, alias->name, iface, node);
if (iface && iface->state == IFS_UP)
- ndev = iface->
main
_dev.dev;
+ ndev = iface->
l3
_dev.dev;
__alias_notify_device(alias, ndev);
diff --git
a/interface.c
b/interface.c
index 352c73496bd449fc6e179709f0cb74c74a1fcb87..591c0f50a0379962dec5636aa3e7e3892cb1f318 100644
(file)
--- a/
interface.c
+++ b/
interface.c
@@
-163,7
+163,7
@@
interface_event(struct interface *iface, enum interface_event ev)
switch (ev) {
case IFEV_UP:
- adev = iface->
main
_dev.dev;
+ adev = iface->
l3
_dev.dev;
/* fall through */
case IFEV_DOWN:
alias_notify_device(iface->name, adev);