iproute2/ip
Dan Smith f4ff11e3e2 Add ip route save/restore
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 <danms@us.ibm.com>
2010-12-01 11:24:58 -08:00
..
.gitignore Another .gitignore file. 2006-08-08 12:11:23 -07:00
Makefile Support 'mode' parameter when creating macvtap device 2010-11-30 10:01:41 -08:00
ifcfg Remove trailing whitespace 2006-12-05 10:10:22 -08:00
ip.c Allow 'ip addr flush' to loop more than 10 times 2010-12-01 11:13:51 -08:00
ip6tunnel.c Use standard routines for interface name to index etc 2010-11-28 10:35:28 -08:00
ip_common.h ip: add support for multicast rules 2010-06-09 08:49:24 -07:00
ipaddress.c Allow 'ip addr flush' to loop more than 10 times 2010-12-01 11:13:51 -08:00
ipaddrlabel.c iproute2: fix addrlabel interface names handling 2010-05-13 09:23:46 -07:00
iplink.c iproute2: rework SR-IOV VF support 2010-05-18 08:12:31 -07:00
iplink_can.c iproute2: netlink support for bus-error reporting and counters 2010-03-03 16:45:10 -08:00
iplink_macvlan.c iproute2/iplink: add macvlan options for bridge mode 2009-12-26 11:22:57 -08:00
iplink_macvtap.c Support 'mode' parameter when creating macvtap device 2010-11-30 10:01:41 -08:00
iplink_vlan.c iplink_vlan: add support for VLAN loose binding flag 2009-12-26 11:07:16 -08:00
ipmaddr.c ip maddr show” on an infiniband address causes a stack corruption 2009-01-06 18:56:03 -08:00
ipmonitor.c iproute2: drop equalize support. 2009-03-27 11:11:12 -07:00
ipmroute.c iproute: "ip mroute show" doesn't show all output interfaces 2009-12-01 16:15:15 -08:00
ipneigh.c Remove Changes: comments 2009-12-01 15:49:48 -08:00
ipntable.c Remove trailing whitespace 2006-12-05 10:10:22 -08:00
ipprefix.c Remove trailing whitespace 2006-12-05 10:10:22 -08:00
iproute.c Add ip route save/restore 2010-12-01 11:24:58 -08:00
iprule.c iproute2: Add dsfield as alias for tos for ip rules 2010-07-23 12:27:14 -07:00
iptunnel.c iproute2: treat gre key as number 2010-11-30 09:52:32 -08:00
iptuntap.c Add 'ip tuntap' support. 2009-09-19 12:49:41 -07:00
ipxfrm.c iproute2: support xfrm upper protocol gre key 2010-11-30 09:53:23 -08:00
link_gre.c Use standard routines for interface name to index etc 2010-11-28 10:35:28 -08:00
link_veth.c veth.h move to linux/ 2007-12-25 12:38:08 -08:00
routef ip/routef lifesaver 2007-07-10 18:29:20 -07:00
routel (Logical change 1.3) 2004-04-15 20:56:59 +00:00
rtm_map.c (Logical change 1.3) 2004-04-15 20:56:59 +00:00
rtmon.c iproute2: Support IFF_LOWER_UP and IFF_DORMANT 2007-06-19 16:40:40 -07:00
rtpr (Logical change 1.3) 2004-04-15 20:56:59 +00:00
static-syms.c support static-only systems 2009-11-10 10:44:20 -08:00
tunnel.c Use standard routines for interface name to index etc 2010-11-28 10:35:28 -08:00
tunnel.h Use standard routines for interface name to index etc 2010-11-28 10:35:28 -08:00
xfrm.h xfrm: Introduce xfrm by mark 2010-03-03 16:37:28 -08:00
xfrm_monitor.c ip: xfrm: Fix flush message. 2007-09-05 12:56:51 +01:00
xfrm_policy.c iproute2: support xfrm upper protocol gre key 2010-11-30 09:53:23 -08:00
xfrm_state.c xfrm: add support for SA by mark 2010-03-03 16:37:29 -08:00