John Crispin
99a1888287
swconfig: revert the portmapping patches, they seem to cause a segfault
...
Revert "kernel/swconfig: remove obsolete portmapping feature from swconfig"
This reverts commit 675407baa4
.
Revert "swconfig: remove obsolete portmapping feature"
This reverts commit fca1eb349e
.
Signed-off-by: John Crispin <john@phrozen.org>
2016-08-16 10:20:01 +02:00
John Crispin
fca1eb349e
swconfig: remove obsolete portmapping feature
...
Signed-off-by: John Crispin <john@phrozen.org>
2016-08-15 15:32:36 +02:00
Jo-Philipp Wich
dd182011e1
swconfig: improve failure reporting
...
Report the translated error to the user if a get/set netlink operation failed.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-06-11 00:51:22 +02:00
Felix Fietkau
7eeb254cc4
treewide: replace nbd@openwrt.org with nbd@nbd.name
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-06-07 08:58:42 +02:00
Rafał Miłecki
6219b3deae
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
2016-02-03 09:38:42 +00:00
Rafał Miłecki
a09e713299
swconfig: support sending SWITCH_TYPE_LINK to kernel
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48141
2016-01-06 18:32:13 +00:00
John Crispin
8536afae6f
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
2015-12-23 19:24:45 +00:00
John Crispin
c71ef0499b
swconfig: Split libsw out of swconfig for reuse in other packages
...
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 46358
2015-07-14 09:56:59 +00:00
Felix Fietkau
7a04fd0e3a
swconfig: swlib.c: Fix another memleak
...
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 46275
2015-07-08 15:59:38 +00:00
John Crispin
5da98f3478
swconfig: swlib.c: free name and description of attributes
...
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
SVN-Revision: 46232
2015-07-07 13:46:16 +00:00
John Crispin
294907aa3a
swconfig: swlib.c: free portmaps in swlib_free()
...
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
SVN-Revision: 46231
2015-07-07 13:46:05 +00:00
John Crispin
2b9bdf4d6f
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
2015-07-07 13:45:56 +00:00
John Crispin
08d4d4921d
swconfig: swlib.c: free device name and alias
...
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
SVN-Revision: 46229
2015-07-07 13:45:44 +00:00
John Crispin
4810de8e4b
swconfig: improve usability when switch device incorrect
...
http://patchwork.openwrt.org/patch/4701/
Signed-off-by: Andreas Mohr <andim2@users.sf.net>
SVN-Revision: 39229
2014-01-12 12:07:01 +00:00
John Crispin
d1156bca0a
swconfig: remove useless variables, return -1 on errors
...
spotted with cppcheck
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
SVN-Revision: 39170
2013-12-27 21:15:20 +00:00
John Crispin
04dcd12c91
add portmap support to userland
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36284
2013-04-09 14:19:13 +00:00
John Crispin
f13ae9965c
add "swconfig list" support
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36282
2013-04-09 14:19:05 +00:00
John Crispin
a34499e095
move lots of kernel related packages to the new system/ folder
...
SVN-Revision: 33830
2012-10-17 22:45:58 +00:00