linux-user,netlink: fix message translation with ip command
commitf536612dc1b5923efd794815baecf3808d07dfae
authorLaurent Vivier <laurent@vivier.eu>
Mon, 16 Nov 2020 16:36:22 +0000 (16 17:36 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 17 Nov 2020 14:22:49 +0000 (17 15:22 +0100)
tree9d3d0063c5553699d9b384499c941c3b01a523ed
parentcb5ed407a1ddadf788fd373fed41c87c9e81e5b0
linux-user,netlink: fix message translation with ip command

With iproute2-5.8.0, the route, link and addr show commands fail:

  root@sid:~# ip addr show
  RTNETLINK answers: Unknown error 352321537
  Dump terminated
  root@sid:~# ip link show
  RTNETLINK answers: Unknown error 352321537
  Dump terminated
  root@sid:~# ip route show
  RTNETLINK answers: Unknown error 352321537
  Dump terminated

This patch correctly decodes the GETROUTE and GETLINK commands and adds
the RTA_TABLE message.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20201116163622.791442-1-laurent@vivier.eu>
linux-user/fd-trans.c