I've developed a shell script which makes TomatoUSB capable for Dual-WAN-support.
(the script primarily modifies routing tables and iptables rules to extend configured features like port-forwarding etc. to a second WAN-device/router)
To fully support the tomato built in QOS in DUAL-WAN mode I need support to pass masked fwmark-values to the ip rule add command
[code]root@router:/tmp/home/root# ip rule add fwmark 0xFFFF0000/0xFFFF0000 table 100
Error: argument "0xFFFF0000/0xFFFF0000" is wrong: fwmark value is invalid[/code]
The command works on my Ubuntu-box, but end with the above error on TomatoUSB Mini (MIPSR2) build 52