projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try to grab log data more aggressively
[project/netifd.git]
/
system-linux.c
diff --git
a/system-linux.c
b/system-linux.c
index
2a85b28
..
8b9189d
100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-101,7
+101,7
@@
static void system_set_sysctl(const char *path, const char *val)
static void system_set_dev_sysctl(const char *path, const char *device, const char *val)
{
static void system_set_dev_sysctl(const char *path, const char *device, const char *val)
{
- char buf[256];
+
static
char buf[256];
snprintf(buf, sizeof(buf), path, val);
system_set_sysctl(buf, val);
snprintf(buf, sizeof(buf), path, val);
system_set_sysctl(buf, val);
@@
-367,9
+367,12
@@
out:
*/
void system_if_clear_state(struct device *dev)
{
*/
void system_if_clear_state(struct device *dev)
{
- char buf[256];
+
static
char buf[256];
char *bridge;
char *bridge;
+ if (dev->external)
+ return;
+
dev->ifindex = system_if_resolve(dev);
if (!dev->ifindex)
return;
dev->ifindex = system_if_resolve(dev);
if (!dev->ifindex)
return;