summaryrefslogtreecommitdiffstats
path: root/package/network/config/swconfig
Commit message (Collapse)AuthorAgeFilesLines
* swconfig: revert the portmapping patches, they seem to cause a segfaultJohn Crispin2016-08-163-0/+104
| | | | | | | | | | | | 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 featureJohn Crispin2016-08-153-104/+0
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* swconfig: improve failure reportingJo-Philipp Wich2016-06-112-7/+7
| | | | | | Report the translated error to the user if a get/set netlink operation failed. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* treewide: replace nbd@openwrt.org with nbd@nbd.nameFelix Fietkau2016-06-075-5/+5
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* swconfig: support setting SWITCH_TYPE_LINK attributesRafał Miłecki2016-02-031-0/+51
| | | | | | | | | | 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 kernelRafał Miłecki2016-01-061-0/+28
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 48141
* swconfig: support receiving SWITCH_TYPE_LINK from kernelJohn Crispin2015-12-233-0/+92
| | | | | | | | | 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
* package: replace ifconfig-usage with ipSteven Barth2015-09-081-1/+1
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46832
* swconfig: libsw.so should be installed into /usr/lib/John Crispin2015-07-171-2/+2
| | | | | | | | | | otherwise it's not picked up by toolchain: staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.10/lib/gcc/mipsel-openwrt-linux-musl/4.8.3/../../../../mipsel-openwrt-linux-musl/bin/ld: cannot find -lsw Signed-off-by: Roman Yeryomin <roman@advem.lv> SVN-Revision: 46406
* swconfig: Split libsw out of swconfig for reuse in other packagesJohn Crispin2015-07-142-3/+15
| | | | | | | Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> SVN-Revision: 46358
* swconfig: swlib.c: Fix another memleakFelix Fietkau2015-07-081-0/+3
| | | | | | Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> SVN-Revision: 46275
* swconfig: swlib.c: free name and description of attributesJohn Crispin2015-07-072-2/+4
| | | | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> SVN-Revision: 46232
* swconfig: swlib.c: free portmaps in swlib_free()John Crispin2015-07-072-1/+15
| | | | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> SVN-Revision: 46231
* swconfig: swlib.c: remove const qualifier for val.s since this is supposed ↵John Crispin2015-07-072-2/+2
| | | | | | | | to be free'd Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> SVN-Revision: 46230
* swconfig: swlib.c: free device name and aliasJohn Crispin2015-07-072-2/+4
| | | | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> SVN-Revision: 46229
* license info - revert r43155John Crispin2014-11-031-3/+0
| | | | | | | | turns out that r43155 adds duplicate info. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43167
* Add more license tags with SPDX identifiersJohn Crispin2014-11-031-0/+3
| | | | | | | | | | | | | | | | | | Note, that licensing stuff is a nightmare: many packages does not clearly state their licenses, and often multiple source files are simply copied together - each with different licensing information in the file headers. I tried hard to ensure, that the license information extracted into the OpenWRT's makefiles fit the "spirit" of the packages, e.g. such small packages which come without a dedicated source archive "inherites" the OpenWRT's own license in my opinion. However, I can not garantee that I always picked the correct information and/or did not miss license information. Signed-off-by: Michael Heimpold <mhei@heimpold.de> SVN-Revision: 43155
* Add a few SPDX tagsSteven Barth2014-11-021-0/+1
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 43151
* package: swconfig: let variable name be localJohn Crispin2014-06-041-0/+1
| | | | | | | | | Let the first parameter of function config_get be local, because there is a chance that config_get won't export the variable. Signed-off-by: Zhao, Gang <gamerh2o@gmail.com> SVN-Revision: 41000
* swconfig: improve usability when switch device incorrectJohn Crispin2014-01-121-1/+1
| | | | | | | | http://patchwork.openwrt.org/patch/4701/ Signed-off-by: Andreas Mohr <andim2@users.sf.net> SVN-Revision: 39229
* swconfig: remove useless variables, return -1 on errorsJohn Crispin2013-12-273-11/+2
| | | | | | | | spotted with cppcheck Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> SVN-Revision: 39170
* switch: remove old switch driverHauke Mehrtens2013-10-131-1/+1
| | | | | | | | | The switch driver is not used by brcm47xx any more and can be removed, instead of this switch driver b53 is used now. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38387
* swconfig: fix dependency bug introduced by [37304]John Crispin2013-07-141-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37316
* brcm47xx: use b53 phy driver for the switch in kernel 3.10Hauke Mehrtens2013-07-141-1/+1
| | | | | | | | | | This makes it possible to use swconfig to controll the switch. This was tested with devices using b43 and bgmac. This was not tested on devices using tg3. This does not support the adm switch used in some very old devices. SVN-Revision: 37304
* add portmap support to userlandJohn Crispin2013-04-094-2/+95
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36284
* add "swconfig list" supportJohn Crispin2013-04-093-0/+41
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36282
* package/swconfig: don't use kernel headersGabor Juhos2012-12-141-2/+0
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34679
* move lots of kernel related packages to the new system/ folderJohn Crispin2012-10-177-0/+1585
SVN-Revision: 33830