mirror of
https://passt.top/passt
synced 2025-05-25 10:35:35 +02:00
tap: make tap_update_mac() generic
Use ethhdr rather than tap_hdr. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Message-ID: <20240303135114.1023026-9-lvivier@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
7df624e79a
commit
6b22e10a26
4 changed files with 12 additions and 12 deletions
2
tap.h
2
tap.h
|
@ -74,7 +74,7 @@ void tap_icmp6_send(const struct ctx *c,
|
|||
const void *in, size_t len);
|
||||
int tap_send(const struct ctx *c, const void *data, size_t len);
|
||||
size_t tap_send_frames(const struct ctx *c, const struct iovec *iov, size_t n);
|
||||
void tap_update_mac(struct tap_hdr *taph,
|
||||
void eth_update_mac(struct ethhdr *eh,
|
||||
const unsigned char *eth_d, const unsigned char *eth_s);
|
||||
void tap_listen_handler(struct ctx *c, uint32_t events);
|
||||
void tap_handler_pasta(struct ctx *c, uint32_t events,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue