Commit Graph

9 Commits (18fdaee00bf1ac508c515648da38c1ccd82e710e)

Author SHA1 Message Date
Felix Fietkau bc63786fbb swconfig: fix off-by-one error, causing segfaults on gcc 4.6+ (fixes #9765)
SVN-Revision: 30485
2012-02-12 19:27:01 +00:00
Jonas Gorski eaa935658b swconfig: Add generic switch identifiers
Also make switches available under a generic name "switch<num>" for device
name agnostic access. The old device name is used as an alias for backward
compatibility.

SVN-Revision: 27800
2011-07-27 18:00:18 +00:00
Felix Fietkau b017df3812 swconfig: avoid setting "NOVAL" attributes if "0" was provided as a value
SVN-Revision: 27374
2011-07-03 04:19:59 +00:00
Gabor Juhos 9a32655293 package/swconfig: add sanity checks to prevent a segfault
SVN-Revision: 24932
2011-01-08 17:30:33 +00:00
Gabor Juhos f7cc3d576c swconfig: Add cpu port index to help output.
Let swconfig provide the cpu port index in its help page. This is
needed as e.g. Atheros switches have their cpu port at port 0, not
port 5.

This could allow e.g. luci to get a rough overview of the layout of
the switch.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>

SVN-Revision: 20939
2010-04-16 19:32:40 +00:00
Gabor Juhos e1079c515a swconfig: Fix switch name.
This patch fixes a small typo in swconfig's client side that caused
it to print the interface name instead of the switch's device name
on the help page.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>

SVN-Revision: 20938
2010-04-16 19:32:32 +00:00
Felix Fietkau ad9d1857a5 swconfig: use libnl-tiny instead of libnl
SVN-Revision: 15508
2009-04-30 13:57:38 +00:00
Felix Fietkau 2fe29deb90 swconfig: implement uci loading support
SVN-Revision: 15315
2009-04-21 01:35:30 +00:00
Felix Fietkau 487c622ac0 add new switch configuration api
SVN-Revision: 13009
2008-10-18 20:44:53 +00:00