mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-24 00:18:36 -07:00
linux-user: netlink: Add IP_PKTINFO cmsg parsing
Fixes those warnings: Unsupported host ancillary data: 0/8 Signed-off-by: Helge Deller <deller@gmx.de> Reviewed-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
b97f8d1fa5
commit
017fc6620f
2 changed files with 16 additions and 0 deletions
|
|
@ -1998,6 +1998,16 @@ static inline abi_long host_to_target_cmsg(struct target_msghdr *target_msgh,
|
|||
(void *) &errh->offender, sizeof(errh->offender));
|
||||
break;
|
||||
}
|
||||
case IP_PKTINFO:
|
||||
{
|
||||
struct in_pktinfo *pkti = data;
|
||||
struct target_in_pktinfo *target_pi = target_data;
|
||||
|
||||
__put_user(pkti->ipi_ifindex, &target_pi->ipi_ifindex);
|
||||
target_pi->ipi_spec_dst.s_addr = pkti->ipi_spec_dst.s_addr;
|
||||
target_pi->ipi_addr.s_addr = pkti->ipi_addr.s_addr;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
goto unimplemented;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue