This patch adds save and restore commands to "ip route". Save dumps the RTNL stream to stdout which can then be passed to restore later. This may be helpful in some normal situations, and will allow C/R to migrate the routing information in userspace. Tweaking of the stream can be done by userspace helpers to convert between versions and adjust things like device indexes when restoring routes in a different environment. By factoring out some of the common bits of print_route() into filter_nlmsg(), the "save" command can use the same selection logic as "list," allowing the caller to save only specific routes as necessary. The only change since the RFC is the addition of manpage and doc material. Signed-off-by: Dan Smith <firstname.lastname@example.org>
Add initrwnd option parsing to iproute. This option uses the new rtnetlink init_rcvwnd to set the TCP initial receive window size advertised by passive and active TCP connections. Signed-off-by: Laurent Chavey <email@example.com>
Currently you can configure "equalize" and it looks all fine and dandy. The kernel has the interface defined, but apparently there's never actually been any implementation for it (only a never merged patch in the 2.4 era). I'm suggesting to drop the code to give any potential users of this feature the benefit of receiving a proper error message. I see it unlikely that this will be implemented in the near future, but if it ever happens reviving the iproute2 side should be as easy as git revert this patch. For more details see http://bugs.debian.org/149897
- Parse and handle the hoplimit ip route option and add it to the usage line and documentation. - Add the missing reordering ip route option to the usage line. - Add documentation for initcwnd ip route option. Tested by setting hoplimit and retreiving it via "show". Signed-off-by: Gilad Ben-Yossef <firstname.lastname@example.org> [ported to HEAD, fixed a bug with hoplimit lock handling, added documentation] Signed-off-by: Ori Finkelman <email@example.com> Signed-off-by: Yony Amit <firstname.lastname@example.org>
Hi Stephen, I resend you this patch once more. This time I updated the documentation too (may be that was the reason why you didn't take it before?). Please tell me if there are other things missing in this patch It applies on iproute2 git tree. Regards, Benjamin Description: ------------ This patch adds support for the IFLA_NET_NS_PID type. It is used to move network devices between network namespaces. The syntax is: ip link set DEVICE netns PID PID is the pid of a process in the target network namespace. (Daniel Lezcano is the original author). Signed-off-by: Daniel Lezcano <email@example.com> Signed-off-by: Benjamin Thery <firstname.lastname@example.org> Signed-off-by: Stephen Hemminger <email@example.com>
Write something about the tweak to enable promoting secondary addresses instead of deleting them together with the primary address as discussed in this thread on the netdev mailing list: http://www.spinics.net/lists/netdev/msg52294.html The claim that this is supported since 2.6.15 is based on looking at changes to net/ipv4/devinet.c in the linux-2.6 git tree: Commit to add support: 2005-05-30 Harald Welte 8f937c6099858eee15fae14009dcbd05177fa91d Commit to fix bug: 2005-11-22 Jamal Hadi Salim 0ff60a45678e67b2547256a636fd00c1667ce4fa Version 2.6.15 was released 2006-01-03 and seems to include the code from both the above commits.
update: Fix the spelling of "hexidecimal" This updates the help output to specify that CLASSID should be hexidecimal. This makes sure that a user entering "flowid 1:10" gets his flow put into band 15 (0x10) and knows why. Signed-off-by: Peter P Waskiewicz Jr <firstname.lastname@example.org> Signed-off-by: Stephen Hemminger <email@example.com>
The ip util would happily change these flags, it's just not recommended. Reflect that in the doc. The behaviour of ifconfig is exactly the same as of ip, delete the note about it. Signed-off-by: Tomas Janousek <firstname.lastname@example.org> Signed-off-by: Stephen Hemminger <email@example.com>
a small one. I have a few more but just run out of cycles for now; if you dont mind holding before releasing for a short while so i can get them out I will appreciate it. cheers, jamal [DOC]: clarify "ok" and "pass" A small fixup to elucidate the mysteries of accepting .. Signed-off-by: Stephen Hemminger <firstname.lastname@example.org>
Stephen, Heres another on top of the others i sent. If you get the time, can update your git tree with these patches? If you are planning to make a release soon, please ping me - I have at least one more patch that i need to work on. cheers, jamal Update mirred usage to fix a bug noticed by Andy Furniss <email@example.com> Also make it a little more readable.