[Toybox] [Patches] - IPv6 support for dumpleases, ip-link and ip-rule fixes

Sameer Pradhan sameer.p.pradhan at gmail.com
Thu Oct 8 04:36:17 PDT 2015


Hi Rob & List,

Attached are the patches.

1. *dumpleases.c:* Added IPv6 support and sync with dhcp server.
                            Added long opt for "-r" and "-a" options.

2. *ip.c:* Couple of bug fixes in different modules of IP.
            a. *IP-link:* with multiple sub-options, parsing issue was
observed.
            e.g,
                   #./toybox ip link set dummy0 mtu 1000 arp on
                    usage: ip [ OPTIONS ] OBJECT
                    { COMMAND }
                    Show / manipulate routing, devices, policy routing and
tunnels.
                    where OBJECT :=
                    {address | link | route | rule | tunnel | neigh}
                    OPTIONS := { -f[amily]
                    { inet | inet6 | link }
                    | -o[neline] }
                    ip:
            b. *ip rule:* Accepting -ve values for priority, ip rule show
had an issue, where it was displaying wrong info.
            e.g,
                   # ./toybox ip rule add from 1.2.3.4/20 to 6.7.8.9/20
pref 2 tos 2 fwmark 3 dev loopback type 3 table local realms 3
                   # ./toybox ip rule show
                   0: from all lookup local
                   2: from 1.2.3.4/20 to 6.7.8.9/20 tos mincost fwmark 0x3
iif loopback lookup local *cosmosbroadcast  --> wrong info*
                   32766: from all lookup main
                   32767: from all lookup default

Please have a look.

-- 
Thanks & Regards
Sameer Prakash Pradhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20151008/d4d2de37/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dumpleases.c.patch
Type: application/octet-stream
Size: 5060 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20151008/d4d2de37/attachment-0008.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ip.c.patch
Type: application/octet-stream
Size: 30601 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20151008/d4d2de37/attachment-0009.obj>


More information about the Toybox mailing list