diff options
author | Laurent Vivier <lvivier@redhat.com> | 2024-03-06 16:58:37 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-03-06 08:03:49 +0100 |
commit | 6b22e10a267768df8040092cfca76d6ecc41fbb1 (patch) | |
tree | eeeacb36e44cfd57c880fb46746217244f4690c8 /udp.c | |
parent | 7df624e79a450ba6b737b972040d9007ecc61672 (diff) | |
download | passt-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 'udp.c')
-rw-r--r-- | udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -288,8 +288,8 @@ void udp_update_l2_buf(const unsigned char *eth_d, const unsigned char *eth_s) struct udp4_l2_buf_t *b4 = &udp4_l2_buf[i]; struct udp6_l2_buf_t *b6 = &udp6_l2_buf[i]; - tap_update_mac(&b4->taph, eth_d, eth_s); - tap_update_mac(&b6->taph, eth_d, eth_s); + eth_update_mac(&b4->taph.eh, eth_d, eth_s); + eth_update_mac(&b6->taph.eh, eth_d, eth_s); } } |