]> Git Repo - qemu.git/commitdiff
linux-user: add netlink CARRIER_UP_COUNT/CARRIER_DOWN_COUNT
authorLaurent Vivier <[email protected]>
Wed, 27 Jun 2018 21:21:51 +0000 (23:21 +0200)
committerLaurent Vivier <[email protected]>
Mon, 2 Jul 2018 18:16:35 +0000 (20:16 +0200)
Error is reported with libuv test suite:

 not ok 311 - udp_multicast_interface6
 # exit code 134
 # Output from process `udp_multicast_interface6`:
 # Unknown host QEMU_IFLA type: 47
 # Unknown host QEMU_IFLA type: 48
 # Unknown host QEMU_IFLA type: 47
 # Unknown host QEMU_IFLA type: 48
 # Unknown host QEMU_IFLA type: 47
 # Unknown host QEMU_IFLA type: 48
 # Unknown host QEMU_IFLA type: 47
 # Unknown host QEMU_IFLA type: 48
 # Unknown host QEMU_IFLA type: 47
 # Unknown host QEMU_IFLA type: 48

Signed-off-by: Laurent Vivier <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <20180627212152[email protected]>

linux-user/syscall.c

index 2117fb13b4a0ae6f706f920ce72ab6bdf1bf2500..4460f1e39a07f4a6253d1b0969fcb062a33989b6 100644 (file)
@@ -2522,6 +2522,8 @@ static abi_long host_to_target_data_link_rtattr(struct rtattr *rtattr)
     case QEMU_IFLA_NUM_VF:
     case QEMU_IFLA_GSO_MAX_SEGS:
     case QEMU_IFLA_GSO_MAX_SIZE:
+    case QEMU_IFLA_CARRIER_UP_COUNT:
+    case QEMU_IFLA_CARRIER_DOWN_COUNT:
         u32 = RTA_DATA(rtattr);
         *u32 = tswap32(*u32);
         break;
This page took 0.030315 seconds and 4 git commands to generate.