If bridge is built in kernel, /sys/module/bridge can not be used to detect
the support of bridge.
#include <gdhcp/gdhcp.h>
-#define BRIDGE_SYSFS_DIR "/sys/module/bridge"
+#define BRIDGE_PROC_DIR "/proc/sys/net/bridge"
#define BRIDGE_NAME "tether"
#define BRIDGE_IP "192.168.218.1"
{
struct stat st;
- if (stat(BRIDGE_SYSFS_DIR, &st) < 0) {
+ if (stat(BRIDGE_PROC_DIR, &st) < 0) {
connman_error("Missing support for 802.1d ethernet bridging");
return NULL;
}