iproute: problem parsing /etc/iproute2/rt_tables / tabs vs. spaces

Bastian Bittorf bittorf at bluebottle.com
Fri Feb 12 09:51:30 UTC 2016


* Bernhard Reutner-Fischer <rep.dot.nop at gmail.com> [12.02.2016 10:40]:
> > echo "50 test" >/etc/iproute2/rt_tables
> > ip route show table test
> >
> > -> error
> 
> what error exactly?

sorry:
root at box:~ echo "50 test" >>/etc/iproute2/rt_tables
root at box:~ ip route show table test
ip: invalid argument 'test' to 'table'

> What compiler are you using, what arch, what flags? which libc?
> Does it go away if you enable CONFIG_DEBUG_PESSIMIZE, i.e. build
> without optimizations?

you are right:
clib = musl from jan22 and GCC 5.2.0

> The code in question accepts both space as well as tab as separator:

i see, thank you.
strange. i will rebuild with CONFIG_DEBUG_PESSIMIZE and report.

bye, bastian


More information about the busybox mailing list