projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pass ifname to the shell proto handler
[project/netifd.git]
/
system-dummy.c
diff --git
a/system-dummy.c
b/system-dummy.c
index
f24f686
..
b3efa08
100644
(file)
--- a/
system-dummy.c
+++ b/
system-dummy.c
@@
-1,8
+1,13
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
+#ifndef DEBUG
+#define DEBUG
+#endif
+
#include "netifd.h"
#include "device.h"
#include "netifd.h"
#include "device.h"
+#include "system.h"
int system_bridge_addbr(struct device *bridge)
{
int system_bridge_addbr(struct device *bridge)
{
@@
-57,7
+62,7
@@
int system_if_check(struct device *dev)
dev->ifindex = 0;
if (!strcmp(dev->ifname, "eth0"))
dev->ifindex = 0;
if (!strcmp(dev->ifname, "eth0"))
-
set_device
_present(dev, true);
+
device_set
_present(dev, true);
return 0;
}
return 0;
}