diff options
author | Felix Fietkau <nbd@nbd.name> | 2020-07-18 16:03:18 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-07-18 17:41:46 +0200 |
commit | cb0c07b48fdd137b035fee065e1db1aa7e6c0b1a (patch) | |
tree | 04668b11ea2bb68c61a3da2912053e1999d8c14f /system-dummy.c | |
parent | c057e711b2830a393206bf3d43a69ede0f5e0945 (diff) |
system-dummy: fix resolving ifindex
Fixes bringup of devices
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'system-dummy.c')
-rw-r--r-- | system-dummy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system-dummy.c b/system-dummy.c index 0b1f1e0..080e5a2 100644 --- a/system-dummy.c +++ b/system-dummy.c @@ -107,11 +107,11 @@ void system_if_get_settings(struct device *dev, struct device_settings *s) void system_if_clear_state(struct device *dev) { + device_set_ifindex(dev, system_if_resolve(dev)); } int system_if_check(struct device *dev) { - dev->ifindex = 0; device_set_present(dev, true); device_set_link(dev, true); @@ -120,7 +120,7 @@ int system_if_check(struct device *dev) int system_if_resolve(struct device *dev) { - return 0; + return 1; } struct device * |