* Bernhard Reutner-Fischer <[email protected]> [12.02.2016 10:40]:
> Does it go away if you enable CONFIG_DEBUG_PESSIMIZE, i.e. build
> without optimizations?

digging further into it:

# OK:
root@UML:/ cat /etc/iproute2/rt_tables
#
# reserved values
#
128     prelocal
255     local
254     main
253     default
0       unspec
#
# local
#
#1      inr.ruhep
50 test

# OK - there is a TAB ("0x09") between 253 and default
# and a space ("0x20") between 50 and test
root@UML:/ hexdump -C /etc/iproute2/rt_tables
00000000  23 0a 23 20 72 65 73 65  72 76 65 64 20 76 61 6c |#.# reserved val|
00000010  75 65 73 0a 23 0a 31 32  38 09 70 72 65 6c 6f 63 |ues.#.128.preloc|
00000020  61 6c 0a 32 35 35 09 6c  6f 63 61 6c 0a 32 35 34 |al.255.local.254|
00000030  09 6d 61 69 6e 0a 32 35  33 09 64 65 66 61 75 6c |.main.253.defaul|
00000040  74 0a 30 09 75 6e 73 70  65 63 0a 23 0a 23 20 6c |t.0.unspec.#.# l|
00000050  6f 63 61 6c 0a 23 0a 23  31 09 69 6e 72 2e 72 75 |ocal.#.#1.inr.ru|
00000060  68 65 70 0a 35 30 20 74  65 73 74 0a             |hep.50 test.|
0000006c

# OK:
root@UML:/ busybox ip route show table all
broadcast 127.0.0.0 dev lo  src 127.0.0.1 
local 127.0.0.0/8 dev lo  src 127.0.0.1 
local 127.0.0.1 dev lo  src 127.0.0.1 
broadcast 127.255.255.255 dev lo  src 127.0.0.1 

# OK:
root@UML:/ busybox ip route show table main

# error:
root@UML:/ busybox ip route show table default
ip: invalid argument 'default' to 'table'

root@UML:/ ip route add 1.1.1.1/32 via 127.0.0.1 table test
root@UML:/ echo $?
0
root@UML:/ busybox ip route show table test
ip: invalid argument 'test' to 'table'
root@UML:/ busybox ip route show table 50
ip: invalid argument '50' to 'table'

conclusion: seems the issue is NOT tabs VS. spaces, but ???

bye ,bastian
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to