aboutgitcodebugslistschat
path: root/tap.h
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2024-03-06 16:58:37 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-03-06 08:03:49 +0100
commit6b22e10a267768df8040092cfca76d6ecc41fbb1 (patch)
treeeeeacb36e44cfd57c880fb46746217244f4690c8 /tap.h
parent7df624e79a450ba6b737b972040d9007ecc61672 (diff)
downloadpasst-6b22e10a267768df8040092cfca76d6ecc41fbb1.tar
passt-6b22e10a267768df8040092cfca76d6ecc41fbb1.tar.gz
passt-6b22e10a267768df8040092cfca76d6ecc41fbb1.tar.bz2
passt-6b22e10a267768df8040092cfca76d6ecc41fbb1.tar.lz
passt-6b22e10a267768df8040092cfca76d6ecc41fbb1.tar.xz
passt-6b22e10a267768df8040092cfca76d6ecc41fbb1.tar.zst
passt-6b22e10a267768df8040092cfca76d6ecc41fbb1.zip
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>
Diffstat (limited to 'tap.h')
-rw-r--r--tap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tap.h b/tap.h
index 466d914..437b9aa 100644
--- a/tap.h
+++ b/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,