search for: sysfs_bridge_dir

Displaying 3 results from an estimated 3 matches for "sysfs_bridge_dir".

2009 Jun 15
0
[Bridge] [PATCH] bridge-utils: fix sysfs path for setting bridge configuration parameters
...(dev, name)); } +/* Open sysfs path for writing bridge properties. */ +static FILE *br_sysfs_open(const char *bridge, const char *name) +{ + char path[SYSFS_PATH_MAX]; + + /* Try accessing /sys/class/net/$bridge/bridge/$name. */ + snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s" + SYSFS_BRIDGE_DIR "/%s", bridge, name); + if (!access(path, F_OK)) + return fopen(path, "w+"); + + /* Try using old-style of accessing bridge sysfs properties. */ + snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/%s", + bridge, name); + if (!access(path, F_OK)) + return fopen(pat...
2009 Jun 15
0
[Bridge] [PATCH] bridge-utils: fix sysfs path for setting bridge configuration parameters
...(dev, name)); } +/* Open sysfs path for writing bridge properties. */ +static FILE *br_sysfs_open(const char *bridge, const char *name) +{ + char path[SYSFS_PATH_MAX]; + + /* Try accessing /sys/class/net/$bridge/bridge/$name. */ + snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s" + SYSFS_BRIDGE_DIR "/%s", bridge, name); + if (!access(path, F_OK)) + return fopen(path, "w+"); + + /* Try using old-style of accessing bridge sysfs properties. */ + snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/%s", + bridge, name); + if (!access(path, F_OK)) + return fopen(pat...
2009 Jun 15
0
[Bridge] [PATCH] bridge-utils: fix sysfs path for setting bridge configuration parameters
...(dev, name)); } +/* Open sysfs path for writing bridge properties. */ +static FILE *br_sysfs_open(const char *bridge, const char *name) +{ + char path[SYSFS_PATH_MAX]; + + /* Try accessing /sys/class/net/$bridge/bridge/$name. */ + snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s" + SYSFS_BRIDGE_DIR "/%s", bridge, name); + if (!access(path, F_OK)) + return fopen(path, "w+"); + + /* Try using old-style of accessing bridge sysfs properties. */ + snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/%s", + bridge, name); + if (!access(path, F_OK)) + return fopen(pat...