swconfig: Add missing include Fixes these warnings: swlib.c:455:18: warning: implicit declaration of function 'isspace' swlib.c:461:9: warning: implicit declaration of function 'isdigit' Signed-off-by: Rosen Penev <rosenp@gmail.com>
swconfig: fix un-initialized return value Fix CID 1330844 Found-by: Coverity Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
swconfig: revert the portmapping patches, they seem to cause a segfault Revert "kernel/swconfig: remove obsolete portmapping feature from swconfig" This reverts commit 675407baa44a8700de20b6b2857009a552a807ba. Revert "swconfig: remove obsolete portmapping feature" This reverts commit fca1eb349ef31b133a62880cbd562d6bf17500aa. Signed-off-by: John Crispin <john@phrozen.org>
swconfig: remove obsolete portmapping feature Signed-off-by: John Crispin <john@phrozen.org>
treewide: replace nbd@openwrt.org with nbd@nbd.name Signed-off-by: Felix Fietkau <nbd@nbd.name>
swconfig: support setting SWITCH_TYPE_LINK attributes Supported syntax is inspired by ethtool. Example usages: swconfig dev switch0 port 2 set link "duplex half speed 100" swconfig dev switch0 port 2 set link "autoneg on" Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 48624
swconfig: support sending SWITCH_TYPE_LINK to kernel Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 48141
swconfig: support receiving SWITCH_TYPE_LINK from kernel When using cli, print link state the same way kernel used to do it. This will allow kernel switching PORT_LINK from SWITCH_TYPE_STRING. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 47998
swconfig: swlib.c: Fix another memleak Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> SVN-Revision: 46275
swconfig: swlib.c: free name and description of attributes Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> SVN-Revision: 46232
swconfig: swlib.c: free portmaps in swlib_free() Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> SVN-Revision: 46231
swconfig: swlib.c: remove const qualifier for val.s since this is supposed to be free'd Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> SVN-Revision: 46230
swconfig: swlib.c: free device name and alias Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> SVN-Revision: 46229
swconfig: remove useless variables, return -1 on errors spotted with cppcheck Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> SVN-Revision: 39170
add portmap support to userland Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36284
add "swconfig list" support Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36282
move lots of kernel related packages to the new system/ folder SVN-Revision: 33830