summary refs log tree commit diff stats
path: root/user-exec.c
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2013-07-02 14:04:12 +0100
committerRiku Voipio <riku.voipio@linaro.org>2013-07-05 15:45:40 +0300
commit7ff7b666186a86f0121e6e7db6784222cefe22a2 (patch)
tree2964e8f4f315cafed504359f22f440f182908d5a /user-exec.c
parent463d8e7393681b300946d6bf9f9d5b7035d718c6 (diff)
downloadfocaccia-qemu-7ff7b666186a86f0121e6e7db6784222cefe22a2.tar.gz
focaccia-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 'user-exec.c')
0 files changed, 0 insertions, 0 deletions