mirror of
https://passt.top/passt
synced 2025-06-14 19: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
4
udp.c
4
udp.c
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue