iproute2/ip
Stephen Hemminger caae16b3b8 ip: handle flush with table > 2^31
Fixes Debian bug #700434
Need to table id in filter to be unsigned to avoid conversion to -1

The documentation for "ip" suggests that, when using multiple routing tables, the table ID can be an arbitrary 32 bit number. I've been writing a script that calculates a table Id based on an IP addresses and sets up tables accordingly based on it. This seems to work for everything I've tried except "ip route flush". If you specify a table to flush with an ID over 2^31, it flushes all IPv4 routing tables. For example:

Will delete all routing tables, including the default one. Needless to say, this is quite annoying. I think this is an upstream bug, but your opinions will be greatly appreciated.
2013-02-12 11:42:57 -08:00
..
.gitignore Another .gitignore file. 2006-08-08 12:11:23 -07:00
ifcfg Remove trailing whitespace 2006-12-05 10:10:22 -08:00
ip6tunnel.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
ip_common.h ip: use rtnelink to manage mroute 2012-12-14 10:08:17 -08:00
ip.c iproute2: add a missing return statement 2013-02-11 09:22:17 -08:00
ipaddress.c ip: make local functions static 2013-02-12 11:38:35 -08:00
ipaddrlabel.c libnetlink: remove unused junk callback 2011-12-28 10:37:12 -08:00
ipl2tp.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
iplink_can.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
iplink_ipoib.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
iplink_macvlan.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
iplink_macvtap.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
iplink_vlan.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
iplink_vxlan.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
iplink.c ip: make local functions static 2013-02-12 11:38:35 -08:00
ipmaddr.c ip: make local functions static 2013-02-12 11:38:35 -08:00
ipmonitor.c ip: make local functions static 2013-02-12 11:38:35 -08:00
ipmroute.c ip: use rtnelink to manage mroute 2012-12-14 10:08:17 -08:00
ipneigh.c ip: make local functions static 2013-02-12 11:38:35 -08:00
ipnetconf.c ip: make local functions static 2013-02-12 11:38:35 -08:00
ipnetns.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
ipntable.c include needed files 2012-12-23 11:49:06 -08:00
ipprefix.c ip: make local functions static 2013-02-12 11:38:35 -08:00
iproute.c ip: handle flush with table > 2^31 2013-02-12 11:42:57 -08:00
iprule.c Convert to use rta_getattr_ functions 2012-04-10 08:47:55 -07:00
iptunnel.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
iptuntap.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
ipxfrm.c ip: make local functions static 2013-02-12 11:38:35 -08:00
link_gre.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
link_ip6tnl.c ip: add support of 'ip link type ip6tnl' 2012-12-12 09:09:23 -08:00
link_iptnl.c ip/link_iptnl: fix indentation Logged in as shemminger 2012-12-14 09:50:33 -08:00
link_veth.c iproute2: support device group semantics 2011-02-25 12:43:14 -08:00
link_vti.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
Makefile ip: add support of 'ip link type [ipip|sit]' 2012-12-12 09:10:22 -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 ip: make local functions static 2013-02-12 11:38:35 -08: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
tcp_metrics.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
tunnel.c iproute2: improved error messages 2013-02-11 09:22:22 -08:00
tunnel.h Use standard routines for interface name to index etc 2010-11-28 10:35:28 -08:00
xfrm_monitor.c ip: make local functions static 2013-02-12 11:38:35 -08:00
xfrm_policy.c ip: make local functions static 2013-02-12 11:38:35 -08:00
xfrm_state.c ip: make local functions static 2013-02-12 11:38:35 -08:00
xfrm.h xfrm security context support 2011-03-17 09:58:23 -07:00