linux-user: add socketcall() strace

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Laurent Vivier 2016-06-11 02:19:45 +02:00 committed by Riku Voipio
parent 7e3b92ece0
commit fb3aabf384
3 changed files with 568 additions and 5 deletions

View file

@ -135,6 +135,24 @@ struct target_sockaddr_ll {
uint8_t sll_addr[8]; /* Physical layer address */
};
struct target_sockaddr_un {
uint16_t su_family;
uint8_t sun_path[108];
};
struct target_in_addr {
uint32_t s_addr; /* big endian */
};
struct target_sockaddr_in {
uint16_t sin_family;
int16_t sin_port; /* big endian */
struct target_in_addr sin_addr;
uint8_t __pad[sizeof(struct target_sockaddr) -
sizeof(uint16_t) - sizeof(int16_t) -
sizeof(struct target_in_addr)];
};
struct target_sock_filter {
abi_ushort code;
uint8_t jt;
@ -147,10 +165,6 @@ struct target_sock_fprog {
abi_ulong filter;
};
struct target_in_addr {
uint32_t s_addr; /* big endian */
};
struct target_ip_mreq {
struct target_in_addr imr_multiaddr;
struct target_in_addr imr_address;