Signed-off-by: Andreas Mohr <and...@users.sf.net> --- package/network/config/swconfig/src/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reason: standard switch device name changed from eth0 to switch0, see e.g. http://wiki.openwrt.org/toh/buffalo/wbmr-hp-g300h#wired.stations.cannot.ping.each.other I lost quite a bit more than an hour on this research, and I don't want no more people to lose time no more! :) BTW, JFYI, the swconfig CMake config snippet I successfully used for a local ad-hoc (Q&D) build: ./CMakeLists.txt: cmake_minimum_required(VERSION 2.6) project(swconfig C) add_subdirectory(src) ./src/CMakeLists.txt: find_library(libnl nl-3) find_library(libnl_genl nl-genl-3) find_path(libnl_inc "netlink/netlink.h" PATHS "/usr/include/libnl3" ) find_path(lx_inc "linux/switch.h" PATHS "/usr/src/linux/user_headers/include" ) set(SOURCES cli.c swlib.c swlib.h # uci.c ) add_definitions(-D_GNU_SOURCE -DDEBUG) include_directories(SYSTEM "${lx_inc}" "${libnl_inc}") add_executable(swconfig ${SOURCES}) target_link_libraries(swconfig ${libnl} ${libnl_genl}) BTW, I found that at least with this config the kernel "bool" type and "true"/"false" are not known, thus to improve compatibility perhaps I should send a patch to remove such use from swconfig sources? http://stackoverflow.com/questions/18284241/unknown-type-name-bool-when-compiling-kernel-module Thanks! diff --git a/package/network/config/swconfig/src/cli.c b/package/network/config/swconfig/src/cli.c index 2eb73be..9503281 100644 --- a/package/network/config/swconfig/src/cli.c +++ b/package/network/config/swconfig/src/cli.c @@ -272,7 +272,7 @@ int main(int argc, char **argv) dev = swlib_connect(cdev); if (!dev) { - fprintf(stderr, "Failed to connect to the switch\n"); + fprintf(stderr, "Failed to connect to the switch (incorrect device specified? Try \"list\")\n"); return 1; } -- 1.8.5.2 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel