e2b2c85bd4
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
5438678549
swconfig: fix vlan/port configs being applied to all switches
...
Check devn instead of dev (which will never be null at this point).
SVN-Revision: 28362
2011-10-03 23:39:31 +00:00
a57b0a222e
swconfig: hide inactive vlans on "swconfig dev switch0 show"
...
SVN-Revision: 28133
2011-08-30 21:00:01 +00:00
ae49a6cb3e
swconfig: fix backward compatibility
...
swconfig fails to load uci configuration after the generic switch
identifier changes.
root@OpenWrt:/# uci show network | grep switch
network.@switch[0]=switch
network.@switch[0].name=eth0
network.@switch[0].reset=1
network.@switch[0].enable_vlan=1
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device=eth0
network.@switch_vlan[0].vlan=1
network.@switch_vlan[0].ports=0t 2 3 4 5
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device=eth0
network.@switch_vlan[1].vlan=2
network.@switch_vlan[1].ports=0t 1
root@OpenWrt:/# swconfig dev eth0 load /etc/config/network
Failed to apply configuration for switch 'switch0'
root@OpenWrt:/# swconfig dev switch0 load /etc/config/network
Failed to apply configuration for switch 'switch0'
SVN-Revision: 27820
2011-07-28 19:54:11 +00:00
1dd04aa6d9
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
10a29a88df
swconfig: make reset and enable_vlan default to 1 (based on patch by Nikolay Martynov)
...
SVN-Revision: 27375
2011-07-03 04:20:18 +00:00
4ce8a04554
swconfig: avoid setting "NOVAL" attributes if "0" was provided as a value
...
SVN-Revision: 27374
2011-07-03 04:19:59 +00:00
d5835d2a20
swconfig: add -lnl-genl (patch by Philip Prindeville) - purely cosmetic, swconfig uses libnl-tiny anyway
...
SVN-Revision: 25509
2011-02-13 02:52:44 +00:00
e07a2b5371
package/swconfig: add sanity checks to prevent a segfault
...
SVN-Revision: 24932
2011-01-08 17:30:33 +00:00
94d7ee1acf
remove obsolete kernel dependencies and version checks
...
SVN-Revision: 21956
2010-06-26 20:44:28 +00:00
8c90b03d41
bump a bunch of packages updated after 10.03
...
SVN-Revision: 21477
2010-05-16 13:46:57 +00:00
d5fd588ccd
[package] swconfig: mask on brcm47xx
...
SVN-Revision: 21270
2010-04-30 15:55:08 +00:00
e98b795cae
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
51ad193674
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
7295cb660a
[package] fix swconfig build failure on brcm63xx
...
SVN-Revision: 20829
2010-04-12 14:01:55 +00:00
03740c93a7
swconfig: Remove unused code
...
Signed-off-by: Martin Mares <mj@ucw.cz>
SVN-Revision: 19758
2010-02-19 17:33:46 +00:00
466383daa4
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
88426caca3
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
6b8e4ca2db
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
aea5b150ef
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
afba8b669f
swconfig: show tagged port flag
...
SVN-Revision: 19238
2010-01-20 07:06:12 +00:00
a85519d109
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
6f5ca13a92
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
d5e28871df
[package] 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
c895ba1b4a
[package] bump some revisions and update copyrights
...
SVN-Revision: 17554
2009-09-10 10:07:04 +00:00
1a66891ff6
move /bin/swconfig to /sbin
...
SVN-Revision: 17387
2009-08-24 22:05:49 +00:00
714c8b0e3e
swconfig: fix kernel version dependency
...
SVN-Revision: 16286
2009-06-01 22:14:06 +00:00
b764fd6e8b
swconfig: use libnl-tiny instead of libnl
...
SVN-Revision: 15508
2009-04-30 13:57:38 +00:00
5d24cd94a2
automatically configure switches when swconfig is installed
...
SVN-Revision: 15328
2009-04-21 18:48:48 +00:00
2088ab8866
swconfig: implement uci loading support
...
SVN-Revision: 15315
2009-04-21 01:35:30 +00:00
8c885093a7
swconfig: fix up kernel dependencies
...
SVN-Revision: 15304
2009-04-20 18:57:50 +00:00
360629be01
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
613727d85b
[package] replace some -I & -L flags with $(TARGET_CPPFLAGS) & $(TARGET_LDFLAGS) when appropriate
...
SVN-Revision: 14651
2009-02-24 00:08:08 +00:00
08a5874446
add new switch configuration api
...
SVN-Revision: 13009
2008-10-18 20:44:53 +00:00