mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06: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;
|
||||
}
|
||||
|
|
|
@ -2622,6 +2622,12 @@ struct target_ucred {
|
|||
abi_uint gid;
|
||||
};
|
||||
|
||||
struct target_in_pktinfo {
|
||||
abi_int ipi_ifindex;
|
||||
struct target_in_addr ipi_spec_dst;
|
||||
struct target_in_addr ipi_addr;
|
||||
};
|
||||
|
||||
typedef abi_int target_timer_t;
|
||||
|
||||
#define TARGET_SIGEV_MAX_SIZE 64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue