Commit Graph

24 Commits (6bc17e57b07b63370b96f4ef9fd19962a6d48690)

Author SHA1 Message Date
Nicolas Thill 7d4022d539 bump a bunch of packages updated after 10.03
SVN-Revision: 21477
2010-05-16 13:46:57 +00:00
Jo-Philipp Wich 504244e34f swconfig: mask on brcm47xx
SVN-Revision: 21270
2010-04-30 15:55:08 +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
Florian Fainelli 9ef27ce538 fix swconfig build failure on brcm63xx
SVN-Revision: 20829
2010-04-12 14:01:55 +00:00
Felix Fietkau e4dadf438e swconfig: Remove unused code
Signed-off-by: Martin Mares <mj@ucw.cz>

SVN-Revision: 19758
2010-02-19 17:33:46 +00:00
Felix Fietkau 1d1e4d1035 swconfig: add copyright for Martin Mares
Signed-off-by: Martin Mares <mj@ucw.cz>

SVN-Revision: 19642
2010-02-15 17:29:07 +00:00
Felix Fietkau 7dcd4af070 swconfig: use print_attr_val() in CMD_GET
Use the print_attr_val() function introduced by the previous patch
to simplify the get command.

Signed-off-by: Martin Mares <mj@ucw.cz>

SVN-Revision: 19641
2010-02-15 17:29:04 +00:00
Felix Fietkau b7d662dce8 swconfig: add show command
Add a "show" command, which displays all attributes of the selected port,
VLAN, or of the whole switch.

Signed-off-by: Martin Mares <mj@ucw.cz>

SVN-Revision: 19640
2010-02-15 17:29:00 +00:00
Felix Fietkau cfb74b3b81 swconfig: clean up command line parsing
The command line parser was unsystematic and it silently ignored
many illegal combinations of options. Try to clean that up.

Signed-off-by: Martin Mares <mj@ucw.cz>

SVN-Revision: 19639
2010-02-15 17:28:56 +00:00
Gabor Juhos 428f066b77 swconfig: show tagged port flag
SVN-Revision: 19238
2010-01-20 07:06:12 +00:00
Felix Fietkau 54bbc30687 swconfig: support providing the switch device name in an option instead of the section name - necessary to support switches that contain characters such as "-"
SVN-Revision: 19208
2010-01-18 00:38:04 +00:00
Nicolas Thill 08938e63d0 add _GNU_SOURCE to CPPFLAGS required to include <bits/socket.h> on recent eglibc revisions
SVN-Revision: 17749
2009-09-26 19:01:50 +00:00
Jo-Philipp Wich b75288df95 swconfig: clear ip address on the switch interface, this prevents duplicate assignments of 192.168.1.1 on the DIR-300 at least
SVN-Revision: 17597
2009-09-16 14:23:01 +00:00
Andy Boyett a5f80019ef bump some revisions and update copyrights
SVN-Revision: 17554
2009-09-10 10:07:04 +00:00
Felix Fietkau d498ff436a move /bin/swconfig to /sbin
SVN-Revision: 17387
2009-08-24 22:05:49 +00:00
Felix Fietkau 569330c102 swconfig: fix kernel version dependency
SVN-Revision: 16286
2009-06-01 22:14:06 +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 8bd7b4bb6b automatically configure switches when swconfig is installed
SVN-Revision: 15328
2009-04-21 18:48:48 +00:00
Felix Fietkau 2fe29deb90 swconfig: implement uci loading support
SVN-Revision: 15315
2009-04-21 01:35:30 +00:00
Felix Fietkau c239c9814a swconfig: fix up kernel dependencies
SVN-Revision: 15304
2009-04-20 18:57:50 +00:00
Felix Fietkau 34939cad39 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
SVN-Revision: 15242
2009-04-17 14:09:46 +00:00
Nicolas Thill 21d7852de0 replace some -I & -L flags with $(TARGET_CPPFLAGS) & $(TARGET_LDFLAGS) when appropriate
SVN-Revision: 14651
2009-02-24 00:08:08 +00:00
Felix Fietkau 487c622ac0 add new switch configuration api
SVN-Revision: 13009
2008-10-18 20:44:53 +00:00