diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-08-21 14:19:59 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-08-21 11:59:54 +0200 |
commit | 905ecd2b0b8a6ab68b66017ec47e094253233e74 (patch) | |
tree | 17b470748c32e17d690620315f293efded491fe4 /passt.c | |
parent | 066e69986b96bf83dfa2ec09f6b03b6a7ad6bbd6 (diff) | |
download | passt-905ecd2b0b8a6ab68b66017ec47e094253233e74.tar passt-905ecd2b0b8a6ab68b66017ec47e094253233e74.tar.gz passt-905ecd2b0b8a6ab68b66017ec47e094253233e74.tar.bz2 passt-905ecd2b0b8a6ab68b66017ec47e094253233e74.tar.lz passt-905ecd2b0b8a6ab68b66017ec47e094253233e74.tar.xz passt-905ecd2b0b8a6ab68b66017ec47e094253233e74.tar.zst passt-905ecd2b0b8a6ab68b66017ec47e094253233e74.zip |
treewide: Rename MAC address fields for clarity
c->mac isn't a great name, because it doesn't say whose mac address it is
and it's not necessarily obvious in all the contexts we use it. Since this
is specifically the address that we (passt/pasta) use on the tap interface,
rename it to "our_tap_mac". Rename the "mac_guest" field to "guest_mac"
to be grammatically consistent.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.c')
-rw-r--r-- | passt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -272,7 +272,7 @@ int main(int argc, char **argv) if ((!c.no_udp && udp_init(&c)) || (!c.no_tcp && tcp_init(&c))) exit(EXIT_FAILURE); - proto_update_l2_buf(c.mac_guest, c.mac); + proto_update_l2_buf(c.guest_mac, c.our_tap_mac); if (c.ifi4 && !c.no_dhcp) dhcp_init(); |