mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 05:13:54 -06:00
linux-user: handle AF_PACKET sockaddrs in target_to_host_sockaddr
Implement conversion of the AF_PACKET sockaddr subtype in target_to_host_sockaddr. Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
This commit is contained in:
parent
451aaf688c
commit
33a29b51c9
2 changed files with 17 additions and 0 deletions
|
@ -121,6 +121,16 @@ struct target_sockaddr {
|
|||
uint8_t sa_data[14];
|
||||
};
|
||||
|
||||
struct target_sockaddr_ll {
|
||||
uint16_t sll_family; /* Always AF_PACKET */
|
||||
uint16_t sll_protocol; /* Physical layer protocol */
|
||||
int sll_ifindex; /* Interface number */
|
||||
uint16_t sll_hatype; /* ARP hardware type */
|
||||
uint8_t sll_pkttype; /* Packet type */
|
||||
uint8_t sll_halen; /* Length of address */
|
||||
uint8_t sll_addr[8]; /* Physical layer address */
|
||||
};
|
||||
|
||||
struct target_sock_filter {
|
||||
abi_ushort code;
|
||||
uint8_t jt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue