diff options
author | 2013-07-02 14:04:12 +0100 | |
---|---|---|
committer | 2013-07-05 15:45:40 +0300 | |
commit | 7ff7b666186a86f0121e6e7db6784222cefe22a2 (patch) | |
tree | 2964e8f4f315cafed504359f22f440f182908d5a /scripts/qapi.py | |
parent | linux-user: handle /proc/$$ like /proc/self (diff) | |
download | qemu-7ff7b666186a86f0121e6e7db6784222cefe22a2.tar.xz qemu-7ff7b666186a86f0121e6e7db6784222cefe22a2.zip |
linux-user: add SIOCADDRT/SIOCDELRT support
This allows to pass the device name.
You can test this with the "route" command.
WITHOUT this patch:
$ sudo route add -net default gw 10.0.3.1 eth0
SIOCADDRT: Bad address
$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Ifa
10.0.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth
WITH this patch:
$ sudo route add -net default gw 10.0.3.1 eth0
$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Ifa
0.0.0.0 10.0.3.1 0.0.0.0 UG 0 0 0 eth
10.0.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts/qapi.py')
0 files changed, 0 insertions, 0 deletions